Git Product home page Git Product logo

youtube-playlist-scraper's Introduction

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'

youtube-playlist-scraper's People

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.