Youtube Transcript Api Versions Save

This is a python API which allows you to get the transcript/subtitles for a given YouTube video. It also works for automatically generated subtitles and it does not require an API key nor a headless browser, like other selenium based solutions do!

v0.6.2

4 months ago

Fixes

  • YouTube has made some changes which caused the translationLanguages key to sometimes be missing from the captions json. This release adjusts the fetching process to initialize translation_languages with an empty list in case that happens.

v0.6.1

11 months ago

Fixes

  • Fixed transcript list not showing display names for languages in English

v0.6.0

1 year ago

Features

  • The optional parameter preserve_formatting has been added to YouTubeTranscriptApi.get_transcript, YouTubeTranscriptApi.get_transcripts, and Transcript.fetch. If this is set to True, formatting elements such as <i> (italics) and <b> (bold) are no longer removed from the transcript. (thanks to @eseiver!)
  • Using the URL of a YouTube video instead of it's video ID will no throw a InvalidVideoId exception.

v0.5.0

1 year ago

Features

  • Added support for formatting .srt files using the SRTFormatter (thanks to @liamrs222!)
  • get_transcript and get_transcripts now assert that their input type is correct, as users commonly passed a video id (string) into get_transcripts although it expects a list. Since a string is an iterable the module tried to find a video for each character of that string, which failed with a not-so-helpful error message. (thanks to @majamil16!)

v0.4.4

2 years ago

Fixes

  • Transcript language list is now properly escaped, thereby fixing a decoding error which would occur on transcripts for languages containing " in their name (like Estnisch - "Raev")

v0.4.3

2 years ago

Fixes

  • Fixed bug where TranscriptsDisabled wasn't raised properly (thanks to @xenova!)
  • Fixed Typo in the FormatterLoader, which was preventing the WebVTTFormatter from being loaded properly (thanks to @MAJA-Lin!)

Breaking

  • Dropped support for python 2.7. While this module should currently still run on python 2.7, it has been removed from the travis builds, therefore, there is no assurance that future versions will run with python 2.7.

v0.4.2

2 years ago

Fixes:

  • Timestamp formatting in WebVTTFormatter has been fixed
  • When requests to YouTube return an error status code, a YouTubeRequestFailed exception is raised, wrapping the status code and error message

v0.4.1

3 years ago

Fixes:

As of lately YouTube will occasionally return a page which requires the user to give consent to cookies being saved. Whenever this page was returned this this module was not able to process the response. Now it is able to recognise this case and create a consent cookie if needed.

v0.4.0

3 years ago

Features:

  • Added support for different formatters, including support for WebVVT (thanks @crhowell!)
  • Added distinct error message which appears when running into rate limits (thanks @kovan)

Fixes:

  • CLI now also supports video IDs starting with a dash (thanks @crhowell)
  • Documentation improvements (thanks @dafiulh)

v0.3.1

4 years ago

Changes:

  • Typos in Documentation fixed.