Git Product home page Git Product logo

youtube-downloader's Introduction

YouTube-Downloader

A python application used for downloading YouTube playlists and videos.

Pre-requisites

Run the following command: pip install pytubefix

Program arguments:

  1. Download type:
    • -p: for a playlist
    • -v: for a video
  2. Playlist / video URL
  3. In case of downloading a playlist, the next two arguments should be two integers:
    • The first integer is the index of the first video in the playlist (the videos are 1-indexed)
    • The second integer is the index of the last video in the playlist (enter -1 if you want to stop at the last video in the playlist)
  4. Download path directory type:
    • -c: download the playlist / video in the current working directory
    • -r: download the playlist / video using a relative path (provided in the next argument)
    • -a: download the playlist / video using an absolute path (provided in the next argument)
  5. Download path directory: The path of the directory that you want to download the videos to (if you choose "-c" in the previous argument then leave this field empty)

Example commands:

Download a full playlist:

python youtube_downloader.py -p "https://www.youtube.com/playlist?list=PL2jrku-ebl3H50FiEPr4erSJiJHURM9BX" 1 -1 -r "..\..\Courses\Cryptography"


Download a video:

python youtube_downloader.py -v "https://www.youtube.com/watch?v=2aHkqB2-46k&list=PL2jrku-ebl3H50FiEPr4erSJiJHURM9BX&index=1" -r "..\..\Courses\Cryptography"

youtube-downloader's People

Contributors

mostafa-elgendy22 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.