Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save brayoh/aea3c37fa9fcd2d366ded724e5e51b60 to your computer and use it in GitHub Desktop.

Select an option

Save brayoh/aea3c37fa9fcd2d366ded724e5e51b60 to your computer and use it in GitHub Desktop.

Revisions

  1. @moaj257 moaj257 revised this gist Aug 23, 2019. No changes.
  2. @moaj257 moaj257 revised this gist Aug 22, 2019. 1 changed file with 28 additions and 28 deletions.
    56 changes: 28 additions & 28 deletions Youtube Downloader - Mac - Using terminal.md
    Original 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
    ```
    - 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
    ```
    ```
    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
    ```
    ```
    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)
  3. @moaj257 moaj257 revised this gist Aug 22, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Youtube Downloader - Mac - Using terminal.md
    Original 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)```
    ###### For more info visit [rg3/youtube-dl](https://github.com/ytdl-org/youtube-dl)
  4. @moaj257 moaj257 created this gist Aug 22, 2019.
    34 changes: 34 additions & 0 deletions Youtube Downloader - Mac - Using terminal.md
    Original 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)```