Try: LINK = input("Enter a Facebook Video Post URL: ") html = r.get(LINK) sdvideo_url = re.search('sd_src:"(.+?)"', html.text) except r.ConnectionError as e: print("OOPS!! Connection Error.") except r.Timeout as e: print("OOPS!! Timeout Error") except r.RequestException as e: print("OOPS!! General Error or Invalid URL") except (KeyboardInterrupt, SystemExit): print("Ok ok, quitting") sys.exit(1) except TypeError: print("Video May Private or Invalid URL") else: sd_url = sdvideo_url.replace('sd_src:"', '') print("\n") print("Normal Quality: " + sd_url) print(" Video Started Downloading") wget.download(sd_url, filedir) (ERASE_LINE) print("\n") print("Video downloaded") ➡ sys for exit from the program ➡ OS - set the download path ➡ re - for search the Downloadable video URL ➡ requests - Read the URL using GET Method ➡ wget - Download the Videoįiledir = os.path.join('/home/groot/Downloads') Free Tools: Download videos from Facebook for free, allow you to download high quality Facebook videos without paying any cost.#!/usr/bin/env python3 # -*- coding: utf-8 -*- import sys import os import re import requests as r import wget.Supports all platforms: Supports download Facebook videos on all platforms and devices: PC, tablet, phone (iPhone, Android).Just paste the Facebook link and input box on SnapSave and you can download any video from Facebook without install any software. Easy to use: Download Facebook videos on a web browser.mp4 format quickly with the best quality. Support many formats: Support to save Facebook videos to your device with.Other tools only allow download Facebook videos in HD quality. Highest Quality: Allows you to download Full HD, 2k, 4k, 8k Facebook videos with audio.Just paste the Facebook link into the input box on SnapSave and you can download any video on Facebook quickly. Support download Facebook videos on all platforms and devices: PC, tablet, phone (iPhone, Android). Support download Facebook videos on web browsers without install software. SnapSave.io Facebook Downloader allows you to download Facebook videos in the highest quality: HD 1080p, 2k, 4k, 8k.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |