Question about deactivating YouTube transcript in Python SDK
Hi, is there a way to disable YouTube transcripts when using the Python SDK? I’m having issues with long videos because the transcript consumption is too large, and I’m getting this warning: “The extraction content would have used more tokens (198238) than the maximum we allow (120000). The input has been
3 Replies
Job Id: 019ac8b4-f6ab-7147-80c3-ca0f77fbaf24
Hi Gerson,
There is no direct way to avoid transcripts when scraping YouTube videos. You can use exclude known tags exclude_tags=[" transcript", "ytd-transcript-renderer"].
It worked, Thank You Gaurav!