Do you listen to music on YouTube? Do you save your favorites to your browser bookmarks but when you come back to them later they have been deleted?
This script automatically downloads YouTube bookmarks from Chrome to your computer and turns them into MP3s.
Install dependencies
$ brew install youtube-dl libav
Download and extract the lastest ytmp3 release.
Then double-click the ytmp3
file.
Script will download all links in the ytmp3
folder in your Chrome bookmark
bar to the folder ~/Music/ytmp3/[year]/[month]/
as mp3 files.
If you get an error that this file is from an unidentified developer, don't let them tell you what to do! Open System Preferences, go to the Security&Privacy pane and on the general tab click open anyway.
Optional:
Run in the background by changing the line in crontab
file to point to
your installation directory and pasting it in your crontab with
$ crontab -e
Install deps
$ brew install youtube-dl libav python3 pip
Setup environment and clone repo
$ virtualenv -p python3 ytmp3
$ cd ytmp3
$ source bin/activate
$ git clone https://github.com/ciex/ytmp3 src
$ pip install -r src/requirements.txt
test with
$ python src/ytmp3.py
Adapt and then add the line in the cronjob
file to your crontab by executing crontab -e
See the LICENSE file.
PRs are welcome. Send a message/email if you have questions.