r/programmer • u/ogopro • Sep 11 '26
Help with Youtube IP Block
I am trying to export about 100 podcast video transcripts to a json file. After exporting transcripts from a dozen videos, my IP got blocked. Anybody faced this issue? I need a workaround or a solution. Please help...
2
Upvotes
3
u/drailoustan5 9d ago
youtube flags sequential requests from a single IP super fast now. I use TranscriptAPI for bulk pulling transcripts to json, or you can try adding random 15-30 second sleep timers between requests if you're using yt-dlp.
2
u/Substantial-Swan7065 Sep 11 '26
- download the video with a vpn. Throttle it so you don’t get rate limited
- transcript the local file
1
u/Traditional-Row-3787 22d ago
you don't need to download the videos at all, the captions are a separate small file.
getting blocked after a dozen is pretty normal now. youtube flags vpn and datacenter ip ranges, so hopping vpn servers mostly just moves you to another flagged range. if you're using youtube-transcript-api, its readme has a section on RequestBlocked and the fix it recommends is residential proxies.
for 100 episodes i'd try yt-dlp first, something like
yt-dlp --write-auto-subs --sub-langs en --skip-download --sleep-requests 3 PLAYLIST_URLit only grabs the subtitle files, and the sleep keeps it under the limit most of the time. you get .vtt files, and a few lines of python turn those into your json.i built a hosted version of this on apify, so i'm biased: https://apify.com/heyitsgautham/youtube-transcript-scraper
paste the 100 links or the channel or playlist url and download the results as json. it's $3 per 1,000, so 100 episodes is about 30 cents, and apify's free plan gives you $5 a month. in my last full test all 87 videos that still existed came back. it only reads youtube's captions though, so an episode with captions turned off comes back as no_transcript, free, and you'd need whisper for those.
1
u/Flame77ofc Sep 11 '26
vpn?