An open API service indexing awesome lists of open source software.

https://github.com/cafca/ytmp3

Auto-download YouTube bookmarks as MP3s
https://github.com/cafca/ytmp3

Last synced: 2 months ago
JSON representation

Auto-download YouTube bookmarks as MP3s

Awesome Lists containing this project

README

          

# ytmp3

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.

## Usage on Mac

Install dependencies

$ brew install youtube-dl libav

Download and extract the [lastest ytmp3 release](https://github.com/ciex/ytmp3/releases).
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

## Environment setup (Mac)

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`

## License

See the LICENSE file.

## Contributing

PRs are welcome. Send a message/email if you have questions.