Mchief
Mchief

Reputation: 137

pytrends from behind the proxy

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

Answers (1)

Related Questions