how to use it

Posted almost 2 years ago by sabri sabri

Post a topic
Answered
s
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

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

Sorted by
Bala Ravichandran

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

"X-Crawlera-Cookies": "disable",

0 Votes

s

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

s

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

s

sabri sabri posted almost 2 years ago

there is no cleare python codee or ex you have ??

0 Votes

s

sabri sabri posted almost 2 years ago

 async with httpx.AsyncClient(proxies="') as client:

and how to use with the httpx 


0 Votes

s

sabri sabri posted almost 2 years ago

with my code did not work 

0 Votes

s

sabri sabri posted almost 2 years ago

ooooh sorry for this i was misstake 


0 Votes

thriveni

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