Pytube Versions Save

A lightweight, dependency-free Python library (and command-line utility) for downloading YouTube Videos.

v11.0.1

2 years ago
  • Fixes RegexMatchError in n cipher
  • Added documentation for some new functionality
  • last_updated will now return the raw text if it can't parse a datetime (e.g. "X days ago")
  • change default innertube client for Search objects to WEB

v11.0.0

2 years ago
  • User InnerTube in place of get_video_info url

  • Added some additional base parameters for innertube requests.

  • Added Oauth support for innertube client

  • Add exception for age-restricted videos which can no longer be accessed without using auth.

  • Carved out and simplified code where possible due to API changes.

  • Added renderer catch -- fixes #1068

  • Additional channel name support for URL-encoded names.

  • Updated test mocks, removed region-locked test because that functionality no longer works.

Due to significant changes in how video info is accessed, certain YouTube object attributes no longer exist, which could cause breaking changes in code bases that rely on those attributes, hence the major version release.

v10.9.3

2 years ago
  • Add catch for suggested search results; accounts for edge case of no views on result.

  • Added exception handling for incorrect cached js files.

  • Now allows you to actually set filenames, instead of doing partial overrides to create safe filenames.

  • Innertube improvements, and skeleton code for future innertube work

v10.9.2

2 years ago
  • Update mock so that stream raises HTTPError, rather than head, and simplified some other mocks.

  • pep8-naming updated, adding a new ignore

v10.9.1

2 years ago
  • Removed special character from author attribute.

  • Changed -v CLI arg to have a single setting, rather than multiple.

  • Add retry functionality for IncompleteRead errors.

  • Extract contentLength from info where possible.

  • Mock open in final streams test to prevent file from being written.

  • Exception handling for accessing titles of private videos.

v10.9.0

2 years ago
  • Emulates the js player to calulate the value of n to prevent download slowdowns

  • Adds some additional debugging to HTMLParseErrors

  • Adds a helper for generating new html json files

  • Parser improvement

v10.8.5

2 years ago
  • Improved support for additional channel URLs
  • Improved metadata for channels
  • Improved channel documentation
  • Change to get_video_info call to fix 404 issue

v10.8.4

2 years ago
  • Fixes an issue where playlist lengths were not being cast to ints correctly for large playlists.

v10.8.3

2 years ago
  • Implements an actual check for whether a video is a livestream, and raises an exception if it is.
  • Fixes channel url matching for channels without canonical names.

v10.8.2

2 years ago
  • Fixes the 404 issue by adding html5=1 as an additional query parameter to the get_video_info endpoint

  • Prepends the URL used with www. to avoid the redirect that occurs.