Skip to main content

Python 3 library for downloading YouTube Videos.

Project description

pytubefix

This python package is a solution to the problem with pytube regarding delays in updates

install:

pip install pytubefix 

usage:

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()

If you want to save in .mp3 just pass the mp3=True parameter in the download() method, must be used together with the get_audio_only method:

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_audio_only() # use this method -> get_audio_only()
ys.download(mp3=True) # pass the parameter mp3=Tre to save in .mp3

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytubefix-1.0rc7.tar.gz (66.6 kB view details)

Uploaded Source

File details

Details for the file pytubefix-1.0rc7.tar.gz.

File metadata

  • Download URL: pytubefix-1.0rc7.tar.gz
  • Upload date:
  • Size: 66.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.7

File hashes

Hashes for pytubefix-1.0rc7.tar.gz
Algorithm Hash digest
SHA256 cf8dc4962fbdf6b1f64ecb00f7ab5008fa50de69e416e836ff9a2c9e437d25f4
MD5 955a967f1e16183e25b471b421d80fd9
BLAKE2b-256 98a6467388bdcd19c1aed001291554fae9e8e9a360c7d610f08c7015b79cdec8

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