Media Downloader
Version: 0.11.0
Download videos and audio from the internet!
This is a wrapper for the pytube library to simplify downloading from these various sources.
This repository is actively maintained - Contributions are welcome!
Supports:
- YouTube
- Rumble
- BitChute
- Vimeo
- And More!
Usage:
Short Flag | Long Flag | Description |
---|---|---|
-h | --help | See usage |
-a | --audio | Download audio only |
-c | --channel | YouTube Channel/User - Downloads all videos |
-f | --file | File with video links |
-l | --links | Comma separated links |
-d | --directory | Location to save videos |
Example:
Run through CLI
media-downloader --file "C:\Users\videos.txt" --directory "C:\Users\Downloads" --channel "WhiteHouse" --links "URL1,URL2,URL3"
Use directly in Python
# Import library
from media_downloader import MediaDownloader
# Set URL of video/audio here
url = "https://YootToob.com/video"
# Instantiate vide_downloader_instance
video_downloader_instance = MediaDownloader()
# Set the location to save the video
video_downloader_instance.set_save_path("C:/Users/you/Downloads")
# Add URL to download
video_downloader_instance.append_link(url)
# Download all videos appended
video_downloader_instance.download_all()
# Optional - Set Audio to True, Default is False if unspecified.
video_downloader_instance.set_audio(audio=True)
# Optional - Open a file of video/audio URL(s)
video_downloader_instance.open_file("FILE")
# Optional - Enter a YouTube channel name and download their latest videos
video_downloader_instance.get_channel_videos("YT-Channel Name")
Installation Instructions:
Install Python Package
python -m pip install media-downloader