Simple Python API to download any youtube videos or playlists in any video or audio format.
- Python >= 3.7
- pip
- FFmpeg Check this out
- Clone the repository
git clone https://github.com/bryanfks-dev/YT-Downloader.git
- Modify config.py as you like
#/lib/config.py
{
"OUTPUT_FILE": {
"VIDEO": {
# The extension of the video file
# e.g mp4, mkv, etc.
"EXTENSION": "mp4",
"PATH": "./videos/",
},
"AUDIO": {
# The extension of the audio file
# e.g mp3, m4a, etc.
"EXTENSION": "mp3",
"PATH": "./audios/",
},
}
}
- Install needed depedencies
pip install requirements.txt
- Run main.py
python main.py