Skip to content
This repository has been archived by the owner on Jan 27, 2019. It is now read-only.

downloading playlist on channels from youtube, seperate directory.

License

Notifications You must be signed in to change notification settings

f9n/youtube-playlist-scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

youtube-playlist-scraper

downloading playlist on channels from youtube, seperate directory.

Download YouTube playlist videos in separate directory indexed by video order in a playlist

$ youtube-dl -o '%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s' \
  https://www.youtube.com/playlist?list=PLwiyx1dc3P2JR9N8gQaQN_BCvlSlap7re

Download all playlists of YouTube channel/user keeping each playlist in separate directory:

$ youtube-dl -o '%(uploader)s/%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s' \ 
  https://www.youtube.com/user/TheLinuxFoundation/playlists

Installing

  $ git clone https://github.com/pleycpl/youtube-playlist-scraper  # First download repo
  $ cd youtube-playlist-scraper         # changed active directory to repo
  $ virtualenv -p python3 venv          # create virtual enviroment
  $ source venv/bin/active              # actived virtual environment
  $ pip install -r requirements.txt     # download requirement packages.

Usage

  $ python3 main.py https://www.youtube.com/user/<channelName>/playlists requests  .            # Crawling with request package, then download all mix in '.'
  $ python3 main.py https://www.youtube.com/user/<channelName>/playlists selenium  ~/Videos     # Crawling with selenium package, because js. Then download all mix in '~/Videos'

About

downloading playlist on channels from youtube, seperate directory.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages