A python script for converting a YouTube playlist to mp3 files and pushing them to another folder for device synchronisation
- python 2.7.12+
- pip install youtube_dl
python path/to/file/sync.py -p https://www.youtube.com/playlist?list=PLAYLIST_URL [-l path/to/sync/folder/]
The script does the following:
- downloads all of the videos in the playlist and converts them to mp3 files
- saves the mp3 files in an output directory (in the same place as the script)
- if path/to/sync/folder/ is specified, it will also copy all of the mp3 files to the sync folder
- Windows Task Scheduler to automatically run the script at 10pm every night
- sync folder is a folder in my Dropbox account
- on my phone I have "Dropsync" installed which will automatically download and delete files from my sync folder when I'm connected to WiFi