No recent searches
Popular Articles
Sorry! nothing found for
Posted over 2 years ago by sabri sabri
r = requests.post(url, headers=headers, data=data, proxies={
"http": "http://APIKey:@proxy.crawlera.com:8011/",
"https": "http://APIkey:@proxy.crawlera.com:8011/",
},
verify='zyte-proxy-ca.crt'
is this right ?
0 Votes
thriveni posted over 2 years ago Admin Best Answer
Hello,
I have edited and masked the APIkey as this forum query is public and visible to all.
Please refer https://docs.zyte.com/smart-proxy-manager/integrations/python.html for a working sample of Python requests with Smart proxy manager integrations.
Regards,
Thriveni
8 Comments
Bala Ravichandran posted over 2 years ago Admin
Yes, this should work.
Please be noted that, if you are sending custom cookies, you would have to pass the below header
sabri sabri posted over 2 years ago
proxies = {
"http": "http://#####################:@proxy.crawlera.com:8011/",
"https": "http://##############################:@proxy.crawlera.com:8011/", }
r = requests.post(url, proxies=proxies,headers=headers, data=data,cookies=cookies,verify='\zyte-proxy-ca.crt')
is the code like this must work ?
this work ?
"http": "http://:##############3@proxy.crawlera.com:8011/",
"https": "http://#################:@proxy.crawlera.com:8011/", }
there is no cleare python codee or ex you have ??
async with httpx.AsyncClient(proxies="') as client:
and how to use with the httpx
with my code did not work
ooooh sorry for this i was misstake
thriveni posted over 2 years ago Admin Answer
Login to post a comment
People who like this
This post will be deleted permanently. Are you sure?
We use cookies to try and give you a better experience in Freshdesk.
You can learn more about what kind of cookies we use, why, and how from our Privacy Policy. If you hate cookies, or are just on a diet, you can disable them altogether too. Just note that the Freshdesk service is pretty big on some cookies (we love the choco-chip ones), and some portions of Freshdesk may not work properly if you disable cookies.
We’ll also assume you agree to the way we use cookies and are ok with it as described in our Privacy Policy, unless you choose to disable them altogether through your browser.
r = requests.post(url, headers=headers, data=data, proxies={
"http": "http://APIKey:@proxy.crawlera.com:8011/",
"https": "http://APIkey:@proxy.crawlera.com:8011/",
},
verify='zyte-proxy-ca.crt'
is this right ?
0 Votes
thriveni posted over 2 years ago Admin Best Answer
Hello,
I have edited and masked the APIkey as this forum query is public and visible to all.
Please refer https://docs.zyte.com/smart-proxy-manager/integrations/python.html for a working sample of Python requests with Smart proxy manager integrations.
Regards,
Thriveni
0 Votes
8 Comments
Bala Ravichandran posted over 2 years ago Admin
Yes, this should work.
Please be noted that, if you are sending custom cookies, you would have to pass the below header
0 Votes
sabri sabri posted over 2 years ago
proxies = {
"http": "http://#####################:@proxy.crawlera.com:8011/",
"https": "http://##############################:@proxy.crawlera.com:8011/", }
r = requests.post(url, proxies=proxies,headers=headers, data=data,cookies=cookies,verify='\zyte-proxy-ca.crt')
is the code like this must work ?
0 Votes
sabri sabri posted over 2 years ago
r = requests.post(url, proxies=proxies,headers=headers, data=data,cookies=cookies,verify='\zyte-proxy-ca.crt')
this work ?
proxies = {
"http": "http://:##############3@proxy.crawlera.com:8011/",
"https": "http://#################:@proxy.crawlera.com:8011/", }
0 Votes
sabri sabri posted over 2 years ago
there is no cleare python codee or ex you have ??
0 Votes
sabri sabri posted over 2 years ago
async with httpx.AsyncClient(proxies="') as client:
and how to use with the httpx
0 Votes
sabri sabri posted over 2 years ago
with my code did not work
0 Votes
sabri sabri posted over 2 years ago
ooooh sorry for this i was misstake
0 Votes
thriveni posted over 2 years ago Admin Answer
Hello,
I have edited and masked the APIkey as this forum query is public and visible to all.
Please refer https://docs.zyte.com/smart-proxy-manager/integrations/python.html for a working sample of Python requests with Smart proxy manager integrations.
Regards,
Thriveni
0 Votes
Login to post a comment