Skip to main content

A simple yet powerful youtube downloader built in python

Project description

DownTube

Downtube : A simple CLI for downloading youtube videos in video/audio format

NOTE: I dont support downloading stuff illegally, be sure to use it for legal purposes and creative commons licensed videos only

Install

pip3 install downtube 

Dependencies

  • click
  • click_help_colors
  • pytube
  • tqdm
  • youtube_search

Built with

  • Python 3.9.6

Supported Platforms:

  • Operating System = Cross-Platform

How to use

Open powershell for Windows or Terminal for Linux/Mac and and type dtube

If the following result comes, then you have successfully installed downtube on your system

  Download Youtube Videos fast and easily with DownTube

Options:
  --version  Show the version and exit.
  --help     Show this message and exit.

Commands:
  config  Setup your default video resolution
  dayt    Download Audio by Search
  dlal    Download Audio by URL
  dlvl    Download Video by URL
  dlyt    Download Video by Search
  init    Initialize downtube to get started

else, try the above steps again!

Setup

First you need to setup downtube for yourself

Procedure:

  • Run dtube config -dr <resolution>to set your preferred default video resolution for download. You can check options for resolutions by executing dtube config

  • Now you are set up to use downtube

Most of the time only 360p and 720p videos support audio, so they are recommended over any other resolution

Download video from search terms :
dtube dlyt {Search Terms} -r {resolution(optional)}

For example:

dtube dlyt Despacito_Song -r 360p

The first result from your search terms will be downloaded to your current folder

Giving a resolution is completely optional. If you dont provide it, the video will be downloaded in your default resolution.

Most of the time only 360p and 720p videos support audio, so they are recommended over any other resolution

Download video from URL
dtube dlvl {Video URL} -r {resolution(optional)}

For example:

dtube dlvl 'https://www.youtube.com/watch?v=kJQP7kiw5Fk' -r 360p

The video redirected by your url will be downloaded to your current folder

Giving a resolution is completely optional. If you dont provide it, the video will be downloaded in your default resolution.

Most of the time only 360p and 720p videos support audio, so they are recommended over any other resolution

Download audio from Search Terms
dtube dayt {Search Terms}

For example:

dtube dayt Despacito_Song

The first result from your search terms will be downloaded to your current folder in AUDIO format

Download audio from URL
dtube dlat {Video URL}

For example:

dtube dlal 'https://www.youtube.com/watch?v=kJQP7kiw5Fk

The video redirected by your url will be downloaded to your current folder in AUDIO format

--dir flag

The dir flag ensures that your file is downloaded in the Downloads directory of your computer

For e.g.

dtube dlvl https://youtu.be/kJQP7kiw5Fk -d

The above command sets your download location as C://Downloads for windows and /home/user/Downloads for Linux/Mac. The same flag applies for dlyt, dayt and dlal.

Developers

Current Release- 0.1.6

Whats new?

  • Custom directory options and default directory awesome
  • Better handling of errors

Developer Tools

License

License © 2021-Present Arghya Sarkar

This repository is licensed under the MIT license. See LICENSE for details.

Special Notes

  • Contribution is appreciated!
  • If you see anything uncomfortable or not working, file an issue in the issue page. Issues aren't ignored by the developers
  • Thanks for seeing my project!

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

downtube-0.1.6.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

downtube-0.1.6-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file downtube-0.1.6.tar.gz.

File metadata

  • Download URL: downtube-0.1.6.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.6 CPython/3.9.5 Linux/5.12.16-1-MANJARO

File hashes

Hashes for downtube-0.1.6.tar.gz
Algorithm Hash digest
SHA256 f08f983068cf366998b3223dfe8ee6de218f321af9da12234634e8a70d3a75c8
MD5 4bfc5747f860a4f08fa2a48dd273a5f4
BLAKE2b-256 2aa110591efe2d72f9b820448651ffb0c0240628b8e605dcd34b3d86d83b84b9

See more details on using hashes here.

File details

Details for the file downtube-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: downtube-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.6 CPython/3.9.5 Linux/5.12.16-1-MANJARO

File hashes

Hashes for downtube-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 e444acd572c12cd1ad75198548f141a48e3b09ff61d1a2731e32b451bf5351c0
MD5 22c83b6e5e14093be88c99214622b4cf
BLAKE2b-256 6dc018819a8a12dc44fdaa0794f87bb9a8ed08ea2707f434835002bb623d3166

See more details on using hashes here.

Supported by

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