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

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

Ydl-1.2.0-py3-none-any.whl (2.7 kB view hashes)

Uploaded Python 3

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