Releases: jdepoix/youtube-transcript-api
v0.3.1: Documentation updated
Changes:
- Typos in Documentation fixed.
v0.3.0: Cookie support
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
- API usage:
Thanks to @danielcliu for the contribution!
v0.2.1: Fixed bug in CLI
Changes:
- fixed a bug in the CLI where no videos could be retrieved if no language was specified
v0.2.0: Translate feature implemented
Changes:
- added
list_transcripts(video_id)
toYouTubeTranscriptApi
, which returns aTranscriptList
object, representing all available transcriptsTranscriptList
objects provide the methodsfind_transcript(languages)
,find_generated_transcript(languages)
andfind_manually_created_transcript(languages)
, which returnTranscript
objectsTranscript
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 aTranscript
object YouTubes translation feature can be accessed
- by calling
- 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 toyoutube_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
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
A change in the YouTube webclient did completely break this module. This is fixed as of this version.
v0.1.7: Bug fix
A Bug was fixed which caused the API to crash on empty subtitles boxes.
v0.1.6: Logging removed
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
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
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!