Skip to main content

Download YouTube Videos and Audios

Project description

progress wakatime

                                                                   
                                                                   
                                  tttt          555555555555555555 
                               ttt:::t          5::::::::::::::::5 
                               t:::::t          5::::::::::::::::5 
                               t:::::t          5:::::555555555555 
yyyyyyy           yyyyyyyttttttt:::::ttttttt    5:::::5            
 y:::::y         y:::::y t:::::::::::::::::t    5:::::5            
  y:::::y       y:::::y  t:::::::::::::::::t    5:::::5555555555   
   y:::::y     y:::::y   tttttt:::::::tttttt    5:::::::::::::::5  
    y:::::y   y:::::y          t:::::t          555555555555:::::5 
     y:::::y y:::::y           t:::::t                      5:::::5
      y:::::y:::::y            t:::::t                      5:::::5
       y:::::::::y             t:::::t    tttttt5555555     5:::::5
        y:::::::y              t::::::tttt:::::t5::::::55555::::::5
         y:::::y               tt::::::::::::::t 55:::::::::::::55 
        y:::::y                  tt:::::::::::tt   55:::::::::55   
       y:::::y                     ttttttttttt       555555555     
      y:::::y                                                      
     y:::::y                                                       
    y:::::y                                                        
   y:::::y                                                         
  yyyyyyy                                                          
                                                                   
                                                                   
  • yt5 is a Python script that downloads YouTube Videos & audios at console environment.

Installation

  • From Github - source
git clone https://github.com/Simatwa/yt5.git
cd yt5
python setup.py install

  • From Pypi
pip install yt5

Usage

Video

  • Videos can be downloaded by parsing a URI prefixed or postfixed by its category:
  • For instances:
  1. Single video :
$ yt5 url <Video-URI>

yt52

  • Alternatively, this can be done by omitting url command since it's the default category.
$ yt5 <Video-URI>

yt51

  1. All videos in a Playlist :
$ yt5 playlist <Playlist-URI>

yt53

  1. All videos in a Channel :
$ yt5 channel <Channel-URI>

yt54

  1. Collection of single-video's URI contained in a text file :
$ yt5 fnm <file-path>

yt55

Audio

  • Audio of a video can be downloaded by adding --mp3 to the commands parsed.
    • For instance:
  1. Single audio :
$ yt5 url <Video-URI>  --mp3

yt56

  • Similarly, this can be done to other categories.

  • For further information you can run:

$ yt5 -h

  • Output :
usage: yt5 [-h] [-v] [-res [720p|480p|360p|240p|144p]] [-max MAXIMUM] [-dir DIRECTORY] [--mp3]
           [--show] [--static] [--usage]
           [[fnm|url|playlist|channel]] url

positional arguments:
  [fnm|url|playlist|channel]
                        Category of the videos referred by the link or filename[fnm] containing
                        links
  url                   Link of the video

options:
  -h, --help            show this help message and exit
  -v, --version         show program's version number and exit
  -res [720p|480p|360p|240p|144p], --resolution [720p|480p|360p|240p|144p]
                        Resolution [quality] of videos to be downloaded in
  -max MAXIMUM, --maximum MAXIMUM
                        Maximum videos to be downloaded
  -dir DIRECTORY, --directory DIRECTORY
                        Directory for saving downloaded file
  --mp3                 Specify to download audio only
  --show                Show the downloaded file-path
  --static              Restricts stdout of file-path in prose-format
  --usage               Show this help info in more stylistic way

Independencies

  1. pytube
  2. colorama
  3. tabulate

Acknowledgements

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

yt5-1.5.3.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

yt5-1.5.3-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file yt5-1.5.3.tar.gz.

File metadata

  • Download URL: yt5-1.5.3.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.0

File hashes

Hashes for yt5-1.5.3.tar.gz
Algorithm Hash digest
SHA256 0805e28af544ff7f11fb9b6883ae697d6a9687e18015ad4ff5821fcecfa02f50
MD5 023fe5765cdafe7c557f276bf8242ec7
BLAKE2b-256 4e186008aa9434b31df167be0ef41ebb93ce882a4097f8264be532590ce4f3cc

See more details on using hashes here.

File details

Details for the file yt5-1.5.3-py3-none-any.whl.

File metadata

  • Download URL: yt5-1.5.3-py3-none-any.whl
  • Upload date:
  • Size: 8.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.0

File hashes

Hashes for yt5-1.5.3-py3-none-any.whl
Algorithm Hash digest
SHA256 192597c6e9bced162044fbed01a63fd28a2f060b4149a94d45b3e365d309d83d
MD5 d0ac0c268aeb89c1227863af9a73eaa6
BLAKE2b-256 3bf5817fb7bbbf73cab881dc66ff43e3c4ec509882c93830f9daf059c2217c99

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page