Kakulukian / youtube-transcript

Fetch transcript from a youtube video
306 stars 61 forks source link

when i use a vpn the transcipt fetching is not working also i cant run it in a ubuntu server #42

Open kanchana404 opened 4 weeks ago

kanchana404 commented 4 weeks ago

when i use a vpn the transcipt fetching is not working also i cant run it in a ubuntu server

hatemmezlini commented 3 weeks ago

That is due to Youtube banning ISP ips. I have made a working solution using oauth2 that doesn't uses proxies and avoids Youtube ban. You can use it for free on Apify: https://apify.com/invideoiq/video-transcript-scraper. You only pay for Apify usage, however Apify gives you free credit of 5$ which will give you around 5000 transcripts

OdapX commented 1 week ago

@hatemmezlini what do you mean using oauth2 ? are you talking about the official captions api from google ? did it work for all publically available yt videos with your own credentials ?

hatemmezlini commented 1 week ago

@OdapX No, it's not the offical API. Initially it worked but I got banned using oauth2 using yt-dlp: https://github.com/yt-dlp/yt-dlp/wiki/Extractors#logging-in-with-oauth so I switched to another method

OdapX commented 1 week ago

@hatemmezlini may I ask, what method you're referring to?