Update dependency youtube-transcript-api to v1 #181
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
==0.6.3->==1.2.3Release Notes
jdepoix/youtube-transcript-api (youtube-transcript-api)
v1.2.3Compare Source
What's Changed
Full Changelog: jdepoix/youtube-transcript-api@v1.2.2...v1.2.3
v1.2.2Compare Source
What's Changed
--versionoption to CLI by @sderev in #496New Contributors
Full Changelog: jdepoix/youtube-transcript-api@v1.2.1...v1.2.2
v1.2.1Compare Source
What's Changed
filter_ip_locationstoWebshareProxyConfig. This allows for limiting the pool of IPs that Webshare will be rotating through to those located in specific countries. By choosing locations that are close to the machine that is doing the requests, latency can be reduced. Also, this can be used to work around location-based restrictions.__all__to__init__.pyto support mypy --strict usage by @Jer-Pha in #486New Contributors
Full Changelog: jdepoix/youtube-transcript-api@v1.2.0...v1.2.1
v1.2.0Compare Source
What's Changed
get_transcript,get_transcriptsandlist_transcripts. They have already been deprecated inv1.0.0, but I've kept them around to allow for an easier migration tov1.0.0. However, these methods have led to a lot of issues being created due to people initializing aYouTubeTranscriptApiobject and passing a proxy config into the constructor, but then calling the deprecated static methods on that object. As these methods are static they don't/can't access the state set in the constructor, therefore, the proxy config is ignored.Migration Guide
If you're still using
get_transcript,get_transcriptsyou have to change your code as follows:If you're still using
list_transcriptsyou have to change your code as follows:Full Changelog: jdepoix/youtube-transcript-api@v1.1.1...v1.2.0
v1.1.1Compare Source
What's Changed
IpBlockedexception is now raised when thetimedtextendpoint returns a status code 429 #468New Contributors
Full Changelog: jdepoix/youtube-transcript-api@v1.1.0...v1.1.1
v1.1.0Compare Source
What's Changed
/watchhtml to fetching it from the innertube APIPoTokenRequired, which will be raised iftimedtexturls are encountered that require a PO token, such that we get feedback from users ASAP if this happens againBreaking
Full Changelog: jdepoix/youtube-transcript-api@v1.0.3...v1.1.0
v1.0.3Compare Source
What's Changed
Full Changelog: jdepoix/youtube-transcript-api@v1.0.2...v1.0.3
v1.0.2Compare Source
What's Changed
RequestBlockedis raised, to trigger an IP rotation in case a user encounters a blocked residential IPRequestBlockedis raised despite proxies being used, to assist users in figuring out what the issue isNew Contributors
Full Changelog: jdepoix/youtube-transcript-api@v1.0.1...v1.0.2
v1.0.1Compare Source
What's Changed
prevent_keeping_connections_alive() -> boolmethod toProxyConfigobjectsConnection: closeheader will be added to the HTTP client, if a proxy config withprevent_keeping_connections_alive() == Trueis usedNew Contributors
Full Changelog: jdepoix/youtube-transcript-api@v1.0.0...v1.0.1
v1.0.0Compare Source
What's Changed
get_transcript,get_transcriptsandlist_transcriptsYouTubeTranscriptApi.get_transcript(video_id)is replaced withYouTubeTranscriptsApi().fetch(video_id)YouTubeTranscriptApi.list_transcripts(video_id)is replaced withYouTubeTranscriptsApi().list(video_id)YouTubeTranscriptApi.get_transcriptin 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].fetchand.liston aYouTubeTranscriptinstance, 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 aFetchedTranscriptobject instead of a list of dictionaries. This allows for adding metadata and utility methods to the returned object. You can still convert aFetchedTranscriptobject to the previously used format by callingfetched_transcript.to_raw_data().RequestBlockedis now raised if the request has been blocked by YouTube due to a blacklisted IP (which would previously raiseTranscriptDisabled#303)AgeRestrictedis raised if the video is age restricted and requires cookie authentication (#111)VideoUnplayableis 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)YouTubeTranscriptApi. All proxy configs are located in the new moduleyoutube_transcript_api.proxies.GenericProxyConfigclass (similarly to how it was done before using the requests dict)WebshareProxyConfigYouTubeTranscriptApiconstructorYouTubeTranscriptApiContributors
Due to the rewrite of some interfaces I wasn't able to merge their PRs directly, but special thanks to the work done by @crhowell in #219 and by @andre-c-andersen in #337, as their PRs have been very useful in implementing the new exceptions types! 😊🙏
Full Changelog: jdepoix/youtube-transcript-api@v0.6.3...v1.0.0
Configuration
📅 Schedule: Branch creation - "before 8am on Monday" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.