Start a new topic
Answered

how to use it

        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 ?


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


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

ooooh sorry for this i was misstake 


with my code did not work 

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

and how to use with the httpx 


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

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/", }

        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 ?


 

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",
Login to post a comment