We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm attempting to run this with zyte's rotating proxy as follows:
import primp zyte_proxy = "http://MY_API_KEY:@api.zyte.com:8011" client = primp.Client(proxy=zyte_proxy, verify=False) resp = client.post(url="https://httpbin.org/anything", timeout=10)
and am getting this error:
--------------------------------------------------------------------------- RuntimeError Traceback (most recent call last) Cell In[50], [line 4](vscode-notebook-cell:?execution_count=50&line=4) [2](vscode-notebook-cell:?execution_count=50&line=2) zyte_proxy = "[http://553152efe46f4d61b928826aa8147a51:@api.zyte.com:8011](http://[email protected]:8011/)" [3](vscode-notebook-cell:?execution_count=50&line=3) client = primp.Client(proxy=zyte_proxy, verify=False, impersonate="chrome_101") ----> [4](vscode-notebook-cell:?execution_count=50&line=4) resp = client.post(url="https://httpbin.org/anything", timeout=10) RuntimeError: error sending request for url (https://httpbin.org/anything): error trying to connect: proxy authentication required Caused by: 0: error trying to connect: proxy authentication required 1: proxy authentication required
In contrast, the same proxy works just fine using requests:
proxies = { scheme: "http://MY_API_KEY:@api.zyte.com:8011" for scheme in ("http") } import requests response = requests.get( "https://toscrape.com", proxies=proxies, verify=False, ) http_response_body: bytes = response.content print(http_response_body.decode())
The text was updated successfully, but these errors were encountered:
Although I haven't checked specifically with zyte, but primp works fine via proxy with authorization. Check your api key.
primp
Sorry, something went wrong.
No branches or pull requests
I'm attempting to run this with zyte's rotating proxy as follows:
and am getting this error:
In contrast, the same proxy works just fine using requests:
The text was updated successfully, but these errors were encountered: