Last active
June 16, 2019 09:29
-
-
Save nautatva/f58ccc103d27423bcab28293847e4043 to your computer and use it in GitHub Desktop.
A Simple Shell Script To download youtube videos and playlists
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# A Simple Shell Script To download youtube videos and playlists | |
# Nautatava Navlakha - 16/Nov/2019 | |
# Always install packages in virtual enviroment | |
`python3 -m venv env` | |
# Install youtube-dl | |
# Find the documentation at https://github.com/ytdl-org/youtube-dl | |
`pip install --upgrade youtube-dl` | |
# Using ffmpeg for post-processing audio to mp3 | |
`brew install ffmpeg` | |
# Give running permissions | |
`chmod 777 Youtube_playlist_downloader.sh` | |
# Playlist: https://www.youtube.com/playlist?list=LLz-BKPzgFH_Xt0_ZgMAeFbw | |
# Vaaste: https://www.youtube.com/watch?v=JAWHVvL3-KU | |
# official(Vasste): https://www.youtube.com/watch?v=JAWHVvL3-KU | |
# Add switches --playlist-start NUMBER --playlist-end NUMBER for limits | |
youtube-dl --ignore-errors --no-overwrites --yes-playlist --no-mark-watched --extract-audio --audio-format mp3 https://www.youtube.com/playlist?list=LLz-BKPzgFH_Xt0_ZgMAeFbw |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment