Youtube-transcript-api

Latest version: v0.6.2

Safety actively analyzes 625786 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 4

0.4.2

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

0.4.1

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.

0.4.0

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)

0.3.1

Changes:

- Typos in Documentation fixed.

0.3.0

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!

0.2.1

Changes:

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

Page 2 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.