Skip to content

Releases: jdepoix/youtube-transcript-api

v0.3.1: Documentation updated

16 Feb 13:25
Compare
Choose a tag to compare

Changes:

  • Typos in Documentation fixed.

v0.3.0: Cookie support

31 Jan 10:35
Compare
Choose a tag to compare

Changes:

  • added support for using cookies, to be able to retrieve age restricted videos
    • API usage: YouTubeTranscriptApi.get_transcript(video_id, cookies='/path/to/your/cookies.txt')
    • CLI usage: youtube_transcript_api <first_video_id> <second_video_id> --cookies /path/to/your/cookies.txt

Thanks to @danielcliu for the contribution!

v0.2.1: Fixed bug in CLI

30 Dec 23:15
Compare
Choose a tag to compare

Changes:

  • fixed a bug in the CLI where no videos could be retrieved if no language was specified

v0.2.0: Translate feature implemented

30 Dec 22:57
Compare
Choose a tag to compare

Changes:

  • added list_transcripts(video_id) to YouTubeTranscriptApi, which returns a TranscriptList object, representing all available transcripts
    • TranscriptList objects provide the methods find_transcript(languages), find_generated_transcript(languages) and find_manually_created_transcript(languages), which return Transcript objects
      • Transcript objects represent a transcripts and provide metadata properties
      • by calling transcript.fetch() the actual transcript is fetched
  • added new translation feature
    • by calling transcript.translate('de') on a Transcript object YouTubes translation feature can be accessed
  • added more specific exception types and thereby vastly improved error messages
    • TranscriptsDisabled, NoTranscriptFound, VideoUnavailable, NotTranslatable, TranslationLanguageNotAvailable, NoTranscriptAvailable
    • all exceptions are subtypes of CouldNotRetrieveTranscript
  • updated CLI to make new features accessible
  • updated Documentation to explain new features and changes
  • completely reworked how the module scrapes transcripts, which makes it way more solid

BREAKING:

  • youtube_transcript_api.YouTubeTranscriptApi.CouldNotRetrieveTranscript has been move to youtube_transcript_api.CouldNotRetrieveTranscript

Special thanks to @danielcliu for his contributions and time in the reviewing process!

v0.1.9: Adjusted to changes in YouTube webclient

09 Oct 11:32
Compare
Choose a tag to compare

It turned out that the the changes in v0.1.8 were still missing some details, which only occurred under certain circumstances. This has been fixed in this version.

v0.1.8: Adjusted to changes in YouTube webclient

07 Oct 16:56
Compare
Choose a tag to compare

A change in the YouTube webclient did completely break this module. This is fixed as of this version.

v0.1.7: Bug fix

22 Jul 11:18
Compare
Choose a tag to compare

A Bug was fixed which caused the API to crash on empty subtitles boxes.

v0.1.6: Logging removed

15 Jul 13:59
Compare
Choose a tag to compare

The YouTubeTranscriptApi no longer logs errors in the get_transcript method. This way the user of the API can control wether an error should be logged or not.

v0.1.5: Improved Error message

20 Jun 15:19
Compare
Choose a tag to compare

The error message which is shown when an CouldNotRetrieveTranscript Exception is raised, now is more specific on what the cause could be.

v0.1.4: Support for specifying proxies added

27 Mar 10:13
Compare
Choose a tag to compare

Specific HTTP/HTTPS proxies can be provided using the API/CLI, which will be used during the YouTube requests.

Thanks to @DannyAziz for the contribution!