Python program that automatically downloads a single video from a URL saved in the clipboard or a list of videos from various URLs saved in a text file.
dvid.py
is a Python program that allows to download videos from various URLs.
The software currently supports videos hosted on following platforms:
- YouTube
- TikTok
- Twitch
- Vimeo
- Dailymotion
- 20 Minuten
In case a video doesn't come from one of the above-mentioned websites, the
program still tries to download it using a default method based on the
youtube_dl
Python package.
Important points to notice:
- Regarding Instagram posts, the program only downloads ".mp4" files. It does NOT download ".jpg" files (i.e. pictures and thumbnails).
- Verifying the availability of Instagram posts requires Instagram account
credentials. These can be automatically retrieved in the
instagram_downloader
function by creating aninstagram_credentials.txt
file in theutils
folder with yourusername
andpassword
on respectively the first and second line. - Downloading private Facebook videos requires Facebook account credentials.
These can be automatically retrieved in the
facebook_downloader_1
function by creating afacebook_credentials.txt
file in theutils
folder with youremail_address
andpassword
on respectively the first and second line. - The current date is added at the beginning of the name of each video.
- The corresponding URL of each video is copied to the "Comments" section of the video file meta information.
- Tested on macOS Big Sur version 11.0.1
- Python 3.7
pip install -r requirements.txt
-
To access useful help messages, type following Terminal command at the root of the project:
python3.7 dvid.py -h
-
To download a single video from a URL saved in the clipboard, issue following command at the root of the project:
python3.7 dvid.py
The program will automatically get the clipboard stored URL and download its attached video.
-
To download videos from a list of various URLs, create a text file containing all the URLs you are interested in. Make sure each URL is separated by a line break, get the path of the text file and issue following command at the root of the project:
python3.7 dvid.py --textFilePath /path/to/your/text/file/my_text_file.txt
The program will automatically scroll through the list of URLs. For each URL, it will determine the source platform and retrieve the video using a dedicated method.
- 0.1
- Initial release