Skip to main content

wrapper of YouTube-dl

Project description

Installation

pip install Ydl

Jupyter or Colab

!pip install Ydl

Usage

import ydl

YouTube_url = "https://www.youtube.com/watch?v=xxxxxx"

itag = 22

path = '/video/foo' #Excluding the extension

ydl = ydl.YouTube_Download(YouTube_url)
print(ydl.downloadable()) #['249 - audio only (tiny)(webm)', '250 - audio only (tiny)(webm)', '251 - audio only (tiny)(webm)', '140 - audio only (tiny)(m4a)', '160 -256x144 (144p)(mp4)', '278 - 256x144 (144p)(webm)', '394 - 256x144 (144p)(mp4)', '133 - 426x240 (240p)(mp4)', '395 - 426x240 (240p)(mp4)','242 - 426x240 (240p)(webm)', '134 - 640x360 (360p)(mp4)', '243 - 640x360 (360p)(webm)', '396 - 640x360 (360p)(mp4)', '135 - 854x480 (480p)(mp4)', '244 - 854x480 (480p)(webm)', '397 - 854x480 (480p)(mp4)', '136 - 1280x720 (720p)(mp4)', '398 - 1280x720 (720p)(mp4)', '247 - 1280x720 (720p)(webm)', '399 - 1920x1080 (1080p)(mp4)', '137 - 1920x1080 (1080p)(mp4)', '248 - 1920x1080 (1080p)(webm)', '18 - 640x360 (360p)(mp4)', '22 - 1280x720 (720p)(mp4)']

print(ydl.entities) #{'title': '(title)', 'uploader': '(uploader)', 'upload_date': '(data)', 'view_count': (view_count), 'thumbnail': '(thumbnail_url)'}

print(ydl.get_url(itag)) #https://xxxxxx.googlevideo.com/videoplayback?xxxxxx

ydl.ydl(itag, path) #Download at '/video/test.(ext)'

print(ydl.get_ext(itag)) #mp4

Acknowledgments

youtube-dl

License

ydl is under MIT license.

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

Ydl-1.3.0.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

Ydl-1.3.0-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

Details for the file Ydl-1.3.0.tar.gz.

File metadata

  • Download URL: Ydl-1.3.0.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.5

File hashes

Hashes for Ydl-1.3.0.tar.gz
Algorithm Hash digest
SHA256 7b486433c14a01f0384c6c30bc29714a32356b395d6881c26f96885271de1c2d
MD5 730339bb6437640dd13cdc295121f30f
BLAKE2b-256 d1893066d5ae394b33b29b5204345ceee5b90e0283141fbb718fcd35ad719e9d

See more details on using hashes here.

File details

Details for the file Ydl-1.3.0-py3-none-any.whl.

File metadata

  • Download URL: Ydl-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 2.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.5

File hashes

Hashes for Ydl-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ead9bc7154d0f3f179f55bb9c5ae6222ef9c3bcc647079273087b3a33fe13a03
MD5 230f864b8bfea331386c1295327c059c
BLAKE2b-256 95f381326cf6437207fd9308fcb75a553e75238f69bcb2d41bcd4c8ae5a1e0f6

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