Skip to main content

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.

Release files for Ydl 1.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Ydl 1.3.0
File Size Uploaded
Ydl-1.3.0.tar.gz 2.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for Ydl 1.3.0
File Interpreter ABI Platform
Ydl-1.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 5.2 kB

Release files / Ydl-1.3.0.tar.gz

Download URL Ydl-1.3.0.tar.gz
Size 2.5 kB
Tags Source
SHA-256 checksum
How to use checksums
7b486433c14a01f0384c6c30bc29714a32356b395d6881c26f96885271de1c2d
BLAKE2b-256 checksum
How to use checksums
d1893066d5ae394b33b29b5204345ceee5b90e0283141fbb718fcd35ad719e9d
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / Ydl-1.3.0-py3-none-any.whl

Download URL Ydl-1.3.0-py3-none-any.whl
Size 2.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ead9bc7154d0f3f179f55bb9c5ae6222ef9c3bcc647079273087b3a33fe13a03
BLAKE2b-256 checksum
How to use checksums
95f381326cf6437207fd9308fcb75a553e75238f69bcb2d41bcd4c8ae5a1e0f6
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

1.3.0 This release

2 release files

1.2.0

1 release file

1.1.0

1 release file

1.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page