Skip to content

Replication of original PR #434: Refactor transcript scraping to use Android innertube API #1

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 4 commits into
base: replicated-pr-434-base
Choose a base branch
from

Conversation

yashwanthatla
Copy link
Owner

This PR is an automated replication of a historical pull request from the upstream repository.

Original PR: jdepoix/youtube-transcript-api#434

Original Description:


This PR refactors the way the captions json is retrieved from scraping it from the /watch html to fetching it from the innertube API.

While this allows us to work around the PO token enforcement for now, I didn't get cookie based authentication to work for the time being and therefore had to temporarily disable this feature, to be able to provide a fix to the issue ASAP. Other than that, all features seemed to work as expected in my testing (fetching transcript in different languages, listing transcripts, translating transcripts, using Webshare proxies to work around IP bans).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants