Reputation: 137
I have python 3.6 and pytrends installed on Windows 8 machine behind corporate proxy. When running pytrend.build_payload(), adapters.py raises connection error (No connection could be made because the target machine actively refused it
)
I can specify proxy as a variable like
proxies = {
'http': 'http://user:pass@address:port',
'https': 'http://user:pass@address:port',
}
but how then I can make pytrends use it?
Upvotes: 1
Views: 2885
Reputation: 137
Forked version of pytrends.request can work over proxy:
https://github.com/GeneralMills/pytrends/blob/master/pytrends/request.py
Upvotes: 1