Skip to content

chore(backend/deps): bump youtube-transcript-api from 0.6.3 to 1.0.3 in /autogpt_platform/backend #9782

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Apr 7, 2025

Bumps youtube-transcript-api from 0.6.3 to 1.0.3.

Release notes

Sourced from youtube-transcript-api's releases.

v1.0.3

What's Changed

  • Refactored parsing of the JS var containing the transcript data, to make it more robust to changes in the formatting of the returned HTML

Full Changelog: jdepoix/youtube-transcript-api@v1.0.2...v1.0.3

v1.0.2

What's Changed

  • Added retry mechanism, which will retry requests when Webshare proxies are used and RequestBlocked is raised, to trigger an IP rotation in case a user encounters a blocked residential IP
  • Added new error messages when RequestBlocked is raised despite proxies being used, to assist users in figuring out what the issue is
  • Fixed PEP-8 warning by @​afourney in jdepoix/youtube-transcript-api#396

New Contributors

Full Changelog: jdepoix/youtube-transcript-api@v1.0.1...v1.0.2

v1.0.1

What's Changed

  • Adds a feature to allow proxy configs to prevent the HTTP client from keeping TCP connections open, as keeping TCP connections alive can prevent proxy providers from rotating your IP
    • adds the prevent_keeping_connections_alive() -> bool method to ProxyConfig objects
    • When initializing YouTubeTranscriptApi a Connection: close header will be added to the HTTP client, if a proxy config with prevent_keeping_connections_alive() == True is used
  • Added py.typed by @​jkawamoto in jdepoix/youtube-transcript-api#390

New Contributors

Full Changelog: jdepoix/youtube-transcript-api@v1.0.0...v1.0.1

v1.0.0

What's Changed

  • Overhaul of the public API to move away from the static methods get_transcript, get_transcripts and list_transcripts
    • YouTubeTranscriptApi.get_transcript(video_id) is replaced with YouTubeTranscriptsApi().fetch(video_id)
    • YouTubeTranscriptApi.list_transcripts(video_id) is replaced with YouTubeTranscriptsApi().list(video_id)
    • There is no equivalent for YouTubeTranscriptApi.get_transcript in the new interface, as this doesn't provide any meaningful utility over just running [ytt_api.fetch(video_id) for video_id in video_ids]
    • By calling .fetch and .list on a YouTubeTranscript instance, we can share a HTTP session between all requests, which allows us to share cookies and reduces redundant requests, thereby saving bandwidth and proxy costs.
    • transcript.fetch() now returns a FetchedTranscript object instead of a list of dictionaries. This allows for adding metadata and utility methods to the returned object. You can still convert a FetchedTranscript object to the previously used format by calling fetched_transcript.to_raw_data().
    • You'll find more details on the updated API in the README. The old static methods can still be used, but have been deprecated and will be removed in a future version!
  • Added new exceptions types to make the cause of some common errors more clear and allow for catching/handling them
    • RequestBlocked is now raised if the request has been blocked by YouTube due to a blacklisted IP (which would previously raise TranscriptDisabled #303)
    • AgeRestricted is raised if the video is age restricted and requires cookie authentication (#111)
    • VideoUnplayable is raised if the video is unplayable for an unknown reason. When this happens the error message that YouTube would display on the WebPlayer is returned by the exception, which should make unknown errors more useful. (#219)
  • Added type hierarchy to configure proxies, which can now be passed into the constructor of YouTubeTranscriptApi. All proxy configs are located in the new module youtube_transcript_api.proxies.
    • Generic HTTP/HTTPS/SOCKS proxy can be configured using the GenericProxyConfig class (similarly to how it was done before using the requests dict)
    • Added integration of the proxy provider Webshare, which allows for easily setting up rotating residential proxies using the WebshareProxyConfig
    • You'll find more details on the proxy config classes and how to use them in the README
  • Added the option to pass a HTTP session into the YouTubeTranscriptApi constructor
    • Allows for setting a path to CA_BUNDLE file (#362, #312)
    • Allows for setting custom headers (#316)
    • Allows for sharing HTTP sessions between multiple instance of YouTubeTranscriptApi

... (truncated)

Commits
  • b706276 Merge pull request #409 from jdepoix/release/v1.0.3
  • ee7becd bumped version to v1.0.3
  • 1cf116a Merge pull request #408 from jdepoix/feature/improve-js-var-parsing
  • 4238bc7 refactored parsing of JS var to make it more robust to changes in the formatt...
  • bb08cfa added note on thread-safety to docstring of YouTubeTranscriptApi constructor
  • 090a5db Merge pull request #404 from jdepoix/add-dumpling-ai-sponsor
  • 9594399 Added new sponsor Dumpling AI to README.md!
  • 8a3d602 fixed typo in headers example
  • dc08c3f Merge pull request #398 from jdepoix/feature/rotate-proxy-ip-on-block
  • 25db2d8 bumped version to v1.0.2
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added dependencies python Pull requests that update Python code labels Apr 7, 2025
@dependabot dependabot bot requested a review from a team as a code owner April 7, 2025 19:03
@dependabot dependabot bot requested review from Bentlybro and kcze and removed request for a team April 7, 2025 19:03
@github-project-automation github-project-automation bot moved this to 🆕 Needs initial review in AutoGPT development kanban Apr 7, 2025
@dependabot dependabot bot requested a review from ntindle April 7, 2025 19:03
@github-actions github-actions bot added platform/backend AutoGPT Platform - Back end size/m labels Apr 7, 2025
Copy link

deepsource-io bot commented Apr 7, 2025

Here's the code health analysis summary for commits 62361cc..97a2862. View details on DeepSource ↗.

Analysis Summary

AnalyzerStatusSummaryLink
DeepSource JavaScript LogoJavaScript✅ SuccessView Check ↗
DeepSource Python LogoPython✅ SuccessView Check ↗

💡 If you’re a repository administrator, you can configure the quality gates from the settings.

Copy link

netlify bot commented Apr 7, 2025

Deploy Preview for auto-gpt-docs-dev canceled.

Name Link
🔨 Latest commit 97a2862
🔍 Latest deploy log https://app.netlify.com/sites/auto-gpt-docs-dev/deploys/67f6f7b55f48960008a3a0c9

Copy link

netlify bot commented Apr 7, 2025

Deploy Preview for auto-gpt-docs canceled.

Name Link
🔨 Latest commit 97a2862
🔍 Latest deploy log https://app.netlify.com/sites/auto-gpt-docs/deploys/67f6f7b5a26e8a0008b52ba9

Copy link
Contributor

github-actions bot commented Apr 8, 2025

This pull request has conflicts with the base branch, please resolve those so we can evaluate the pull request.

@github-actions github-actions bot added the conflicts Automatically applied to PRs with merge conflicts label Apr 8, 2025
@dependabot dependabot bot force-pushed the dependabot/pip/autogpt_platform/backend/dev/youtube-transcript-api-1.0.3 branch from be914c6 to 523ddb0 Compare April 8, 2025 20:11
@github-actions github-actions bot removed the conflicts Automatically applied to PRs with merge conflicts label Apr 8, 2025
Copy link
Contributor

github-actions bot commented Apr 8, 2025

Conflicts have been resolved! 🎉 A maintainer will review the pull request shortly.

Bumps [youtube-transcript-api](https://github.com/jdepoix/youtube-transcript-api) from 0.6.3 to 1.0.3.
- [Release notes](https://github.com/jdepoix/youtube-transcript-api/releases)
- [Commits](jdepoix/youtube-transcript-api@v0.6.3...v1.0.3)

---
updated-dependencies:
- dependency-name: youtube-transcript-api
  dependency-version: 1.0.3
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot force-pushed the dependabot/pip/autogpt_platform/backend/dev/youtube-transcript-api-1.0.3 branch from 523ddb0 to 97a2862 Compare April 9, 2025 22:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies platform/backend AutoGPT Platform - Back end python Pull requests that update Python code size/m
Projects
Status: 🆕 Needs initial review
Development

Successfully merging this pull request may close these issues.

0 participants