ClericPy / ichrome

Chrome controller for Humans, based on Chrome Devtools Protocol(CDP) and python3.7+.
https://pypi.org/project/ichrome/
MIT License
228 stars 29 forks source link

not accepting proxies from zyte because ichrome not taking 'verify' kwarg #80

Closed sacsbrainz closed 2 years ago

sacsbrainz commented 2 years ago

hello i tried to use zyte proxy but its not working because they use ca cert to auth their proxy which ichrome doesnt support

in request module its 'verify' kwargs example import requests

response = requests.get(
    "https://httpbin.org/get",
    proxies={
        "http": "http://1kksksskskosmimiq:@proxy.crawlera.com:8011/",
        "https": "http://1kksksskskosmimiq:@proxy.crawlera.com:8011/",
    },
    verify='/path/to/zyte-proxy-ca.crt' 
)
print(response.text)

but ichrome do not have 'verify'

ClericPy commented 2 years ago

Chrome self not support authed proxy. ichrome is only a port for https://chromedevtools.github.io/devtools-protocol/ but no more than CDP.

So I used gost for a forward proxy, this is quite a Trouble

sacsbrainz commented 2 years ago

Any guidance will be really appreciated On how to use the

gost

with ichrome i really want to use this project

Other software have easy work around but i have decided i must use ichrome

ClericPy commented 2 years ago

https://github.com/ginuerzh/gost/blob/master/README_en.md

gost -L 127.0.0.1:9999 -F http://xxx@xxx:a.com

port-forwarding proxy for chrome, python3 -m ichrome --proxy=http://127.0.0.1:9999

sacsbrainz commented 2 years ago

Ok thanks let me give it a try

ClericPy commented 2 years ago

https://github.com/ClericPy/ichrome/issues/86

Use Fetch.enable to handle all the requests and pass the auth info with Fetch.authRequired