python script for getting mp3 files from youtube playlist.
Do your non-tech brown relatives ask you for downloading music from the internet and upload it to their mobile phones? You can't say no to them because you love them? Look no further, you are in the right repo xD
It's a simple pytube and moviepy implementation. It retrieves the URLs of the videos of the playlist and converts them to mp3 upon downloading.
- You will need have Python3
- Setup virtualenv and install dependencies from req.txt
your_pc$ virtualenv -p /usr/bin/python3 venvyour_pc$ source venv/bin/activate(venv)your_pc$ pip install -r req.txtYour Youtube playlist URL might look like this,
https://www.youtube.com/watch?v=oJ4YxVC9xk4&list=PLDfKAXSi6kUau7d9DcU2v9u7xwmSqlCyBExtract the playlist id from the query parameter of the URL. here, it's in the 'list='. After that, run below command from terminal adding the ID as argument.
(venv)your_pc$ python main.py -ID PLDfKAXSi6kUau7d9DcU2v9u7xwmSqlCyBβββ README.md <- The top-level README for developers using this project.
β
βββ download <- Directory for downloaded mp3 files
β
βββ req.txt <- The requirements file for python environment
β
βββ .gitignore <- you know what this is :P
β
βββ main.py <- contains the python script