No recent searches
Popular Articles
Sorry! nothing found for
Posted about 7 years ago by mo liwei
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 Votes
2 Comments
nestor posted about 7 years ago Admin
Try removing allow_redirects=False, the link you provided returns a redirect.
0 Votes
mo liwei posted about 7 years ago
not github
https://item.taobao.com/item.htm?id=561157159190
return code:407
Login to post a comment
People who like this
This post will be deleted permanently. Are you sure?
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 Votes
2 Comments
nestor posted about 7 years ago Admin
Try removing allow_redirects=False, the link you provided returns a redirect.
0 Votes
mo liwei posted about 7 years ago
not github
https://item.taobao.com/item.htm?id=561157159190
return code:407
0 Votes
Login to post a comment