No recent searches
Popular Articles
Sorry! nothing found for
Posted almost 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 almost 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 almost 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 almost 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 almost 2 years ago Admin Answer
Login to post a comment
People who like this
This post will be deleted permanently. Are you sure?
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 almost 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 almost 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 almost 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 almost 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 almost 2 years ago
there is no cleare python codee or ex you have ??
0 Votes
sabri sabri posted almost 2 years ago
async with httpx.AsyncClient(proxies="') as client:
and how to use with the httpx
0 Votes
sabri sabri posted almost 2 years ago
with my code did not work
0 Votes
sabri sabri posted almost 2 years ago
ooooh sorry for this i was misstake
0 Votes
thriveni posted almost 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