JuanBindez / pytubefix

Python3 library for downloading YouTube Videos.
http://pytubefix.rtfd.io/
MIT License
674 stars 95 forks source link

Tor routing for Pytubefix #156

Closed sleepingcat4 closed 3 months ago

sleepingcat4 commented 3 months ago

An essential fix I was thinking for the problem while trying to download large amounts of data from YouTube: YouTube blocks/limits the IP address after a certain period. I was suggesting if there could be a way, where TOR network routing could be included inside Pytube fix so that YouTube can't possibly flag the actual IP address and since TOR provides option to change the intermediate nodes and guard node protects the actual IP, it can be a way to get rid of the IP limiting problem posed by YouTube

NannoSilver commented 3 months ago

I did not tested, but is likely route thru TOR is already possible by setting pytubefix to use proxy, and setting as proxy the localhost IP at port 9150, that is the port Tor Browser listen.