Learn all about the latest trends and best practices in data extraction - Join us at Extract SummitGet tickets
Start a new topic

Requests in Python 3.6 - error 407

python 3.6.3

requests 2.18.4

I saw one issue that mentioned upgrading 'requests',

but python3's 'requests' version was only 2.18.4

import requestsurl = "http://www.github.com" proxy_host = "proxy.crawlera.com" proxy_port = "8010" proxy_auth = "<APIKEY>:" proxies = {"https": "https://{}@{}:{}/".format(proxy_auth, proxy_host, proxy_port), "http": "http://{}@{}:{}/".format(proxy_auth, proxy_host, proxy_port)}r = requests.get(url, proxies=proxies, verify=False, allow_redirects=False)

1 person has this question

Try removing allow_redirects=False, the link you provided returns a redirect.

Login to post a comment