Skip to content

Instantly share code, notes, and snippets.

@nautatva
Last active June 16, 2019 09:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nautatva/f58ccc103d27423bcab28293847e4043 to your computer and use it in GitHub Desktop.
Save nautatva/f58ccc103d27423bcab28293847e4043 to your computer and use it in GitHub Desktop.
A Simple Shell Script To download youtube videos and playlists
#!/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