Closed tombulled closed 2 years ago
Here's an example of proxying requests through the Tor network:
from innertube import InnerTube
from pprint import pprint
proxies = {
"http://": "socks5://127.0.0.1:9050",
"https://": "socks5://127.0.0.1:9050"
}
client = InnerTube("WEB", proxies=proxies)
>>> pprint(client.adaptor.session.get("https://check.torproject.org/api/ip").json())
{'IP': '1.2.3.4', 'IsTor': True}
This PR adds support for proxies