Skip to main content

wrapper of YouTube-dl

Project description

Installation

pip install Ydl

Jupyter or Colab

!pip install Ydl

Usage

import Ydl as 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

Author

Twitter : https://twitter.com/kakashi69425892

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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

Ydl-1.0.0-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: Ydl-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 2.7 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.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f31544302c1827f129399fda5d5e04b0029596470151a1df7ed94b966a86f4e7
MD5 7728df78fecbb5ffbc9a0935356dfe93
BLAKE2b-256 240cf086e3efc6007a80871ccd88b72d038343827b7135b1cfdd53470ed8939a

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