Forked from moaj257/Youtube Downloader - Mac - Using terminal.md
Created
March 8, 2024 01:29
-
-
Save brayoh/aea3c37fa9fcd2d366ded724e5e51b60 to your computer and use it in GitHub Desktop.
Revisions
-
moaj257 revised this gist
Aug 23, 2019 . No changes.There are no files selected for viewing
-
moaj257 revised this gist
Aug 22, 2019 . 1 changed file with 28 additions and 28 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,34 +1,34 @@ 1. Open terminal. 2. Use any one of following to install youtube-dl (A downloader written in python). - Fire these 2 command if you have curl installed. ``` sudo curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl sudo chmod a+rx /usr/local/bin/youtube-dl ``` - Fire these 2 commands ``` sudo wget https://yt-dl.org/downloads/latest/youtube-dl -O /usr/local/bin/youtube-dl sudo chmod a+rx /usr/local/bin/youtube-dl ``` - Fire this command if you have homebrew installed ``` brew install youtube-dl ``` 3. To download a youtube playlist, use the following command. ``` youtube-dl -o '%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s' PLAYLIST_LINK ``` - Example ``` youtube-dl -o '%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s' https://www.youtube.com/playlist?list=PLwiyx1dc3P2JR9N8gQaQN_BCvlSlap7re ``` 4. To Download all playlists of a youtube channel, use the following command. ``` youtube-dl -o '%(uploader)s/%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s' LINK_TO_CHANNEL_PLAYLISTS ``` - Example ``` youtube-dl -o '%(uploader)s/%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s' https://www.youtube.com/user/TheLinuxFoundation/playlists ``` ###### For more info visit [rg3/youtube-dl](https://github.com/ytdl-org/youtube-dl) -
moaj257 revised this gist
Aug 22, 2019 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -31,4 +31,4 @@ youtube-dl -o '%(uploader)s/%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s' youtube-dl -o '%(uploader)s/%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s' https://www.youtube.com/user/TheLinuxFoundation/playlists ``` ###### For more info visit [rg3/youtube-dl](https://github.com/ytdl-org/youtube-dl) -
moaj257 created this gist
Aug 22, 2019 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,34 @@ 1. Open terminal. 2. Use any one of following to install youtube-dl (A downloader written in python). - Fire these 2 command if you have curl installed. ``` sudo curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl sudo chmod a+rx /usr/local/bin/youtube-dl ``` - Fire these 2 commands ``` sudo wget https://yt-dl.org/downloads/latest/youtube-dl -O /usr/local/bin/youtube-dl sudo chmod a+rx /usr/local/bin/youtube-dl ``` - Fire this command if you have homebrew installed ``` brew install youtube-dl ``` 3. To download a youtube playlist, use the following command. ``` youtube-dl -o '%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s' PLAYLIST_LINK ``` - Example ``` youtube-dl -o '%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s' https://www.youtube.com/playlist?list=PLwiyx1dc3P2JR9N8gQaQN_BCvlSlap7re ``` 4. To Download all playlists of a youtube channel, use the following command. ``` youtube-dl -o '%(uploader)s/%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s' LINK_TO_CHANNEL_PLAYLISTS ``` - Example ``` youtube-dl -o '%(uploader)s/%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s' https://www.youtube.com/user/TheLinuxFoundation/playlists ``` #### For more info visit ```[rg3/youtube-dl](https://github.com/ytdl-org/youtube-dl)```