Downloads and updates local copies of YouTube Playlists
A simple yet powerful script to download and manage local copies of youtube music playlists
#clone the repo
git clone https://github.com/animesh-chouhan/yt-comment-scraper.git
cd youtube-playman
#run the script directly
chmod +x ./youtube-playman.sh
./youtube-playman.sh
OR
#create a hard link to the local binary folder
#this will add the downloader to the path variable
ln ./youtube-playman.sh ~/.local/bin/youtube-playman
#directly running the script
youtube-playman
To install it right away for all UNIX users (Linux, macOS, etc.), type:
curl -L https://github.com/animesh-chouhan/youtube-playman/releases/latest/download/youtube-playman -o ~/.local/bin/youtube-playman
chmod a+rx ~/.local/bin/youtube-playman
If you do not have curl, you can alternatively use a recent wget:
wget https://github.com/animesh-chouhan/youtube-playman/releases/latest/download/youtube-playman -O ~/.local/bin/youtube-playman
chmod a+rx ~/.local/bin/youtube-playman
#creating a cron job that will update the playlists automatically
crontab -e
#this will open a editor and add this entry to the file
#don't forget the newline after the last entry
PATH="/usr/local/bin:/usr/bin:/bin:/home/<your-username>/.local/bin"
@daily printf "update-all" | youtube-playman
#OR
PATH="/usr/local/bin:/usr/bin:/bin:/home/<your-username>/.local/bin"
@daily printf "update-all" | download > $HOME/Music/cron.log 2>&1;echo `date` >> $HOME/Music/cron.log
For more details refer to ubuntu cron wiki.
Click on the play button to see an example download.
For more examples and usage, please refer to the Wiki.
- youtube-dl - Command-line program to download videos from YouTube
- Fork the repo (https://github.com/animesh-chouhan/youtube-playman/)
- Create your feature branch (
git checkout -b feature/fooBar
) - Commit your changes (
git commit -am 'Add some fooBar'
) - Push to the branch (
git push origin feature/fooBar
) - Create a new Pull Request
MIT License copyright (c) 2020 Animesh Singh Chouhan. Please have a look at the license for more details.