pytubefix¶
Release v8.7.0. (Installation)
pytubefix is a lightweight, Pythonic, dependency-free, library (and command-line utility) for downloading YouTube Videos.
Behold, a perfect balance of simplicity versus flexibility:
from pytubefix import YouTube
from pytubefix.cli import on_progress
url = input("URL >")
yt = YouTube(url, on_progress_callback = on_progress)
print(yt.title)
ys = yt.streams.get_highest_resolution()
ys.download()
Features¶
Support for Both Progressive & DASH Streams
Easily Register
on_download_progress
&on_download_complete
callbacksCommand-line Interfaced Included
Caption Track Support
Outputs Caption Tracks to .srt format (SubRip Subtitle)
Ability to Capture Thumbnail URL.
Extensively Documented Source Code
No Third-Party Dependencies
The User Guide¶
This part of the documentation begins with some background information about the project, then focuses on step-by-step instructions for getting the most out of pytubefix.
- Installation of pytubefix
- Quickstart
- Working with Streams and StreamQuery
- Filtering Streams
- Downloading Streams
- Add Authentication Oauth
- Reset Cache
- M4a Download (MPEG-4 AAC audio codec)
- Subtitle/Caption Tracks
- Using Playlists
- Using Channels
- Using the Search Feature
- Additional functionality
- Using Filters
- Getting Channel Playlists
- Command-line Interface (CLI)
- Exception Handling
- Chapters
- Filtering Dubbed Streams
- Extracting key moments
- Add PoToken
- Info
- Output Path
- Using Buffer
The API Documentation¶
If you are looking for information on a specific function, class, or method, this part of the documentation is for you.