crawlera python sdk

Posted over 6 years ago by habout632

Post a topic
Answered
h
habout632

proxies = {"https": "https://{}@{}:{}/".format(proxy_auth, proxy_host, proxy_port), "http": "http://{}@{}:{}/".format(proxy_auth, proxy_host, proxy_port)} why we must use http to process https request , https to process http request in above code? Could you give us a python code examle ? when usign above code we always get proxy auth required error

0 Votes

nestor

nestor posted over 6 years ago Admin Best Answer

Here's a sample: https://support.scrapinghub.com/support/solutions/articles/22000203567-using-crawlera-with-python-requests


https is used to process https requests and http for http. Could you explain how you are seeing the opposite?


Make sure your python-requests module is up to date and make sure to include the ':' after the APIKey in your authentication.

0 Votes


1 Comments

nestor

nestor posted over 6 years ago Admin Answer

Here's a sample: https://support.scrapinghub.com/support/solutions/articles/22000203567-using-crawlera-with-python-requests


https is used to process https requests and http for http. Could you explain how you are seeing the opposite?


Make sure your python-requests module is up to date and make sure to include the ':' after the APIKey in your authentication.

0 Votes

Login to post a comment