Start a new topic
Answered

crawlera python sdk

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

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.

1 Comment

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.

Login to post a comment