This program is based on :
- PyTube (Downloading YouTube videos)
- FFmpeg (Combining video and audio files, converting audio files to .mp3 and video files to .mp4)
- Download and install FFmpeg on your computer and make sure to add it to your system's PATH variable
- Install pytube using the following command :
python -m pip install --upgrade pytube
Sometimes, the pypi release becomes slightly outdated. So you can install pytube from the source using this command :
python -m pip install git+https://github.com/pytube/pytube
- Run the
main.py
file. - Type the url of the video/playlist.
- Type
V
orv
to for MP4 video format, andA
ora
for MP3 audio format. - Wait for the video(s) to get loaded.
- If you're downloading a single video in MP4 mode, choose from the available resolutions (e.g.
1080p
). Else, your video will start downloading automatically. - Wait for the program to finish working, then hit Enter to exit.
- Your downloaded files are within the same directory the
main.py
file is currently located.