lexiforest / curl_cffi

Python binding for curl-impersonate fork via cffi. A http client that can impersonate browser tls/ja3/http2 fingerprints.
https://curl-cffi.readthedocs.io/
MIT License
2.52k stars 266 forks source link

[ERROR] How to fix this problem? #243

Closed suzo36 closed 9 months ago

suzo36 commented 9 months ago

I want to use this lib, but I get this error curl_cffi.requests.errors.RequestsError: Failed to perform, ErrCode: 77, Reason: 'error setting certificate verify locations: CAfile: C:\Users\Силоренко Евгений\AppData\Roaming\Python\Python311\site-packages\curl_cffi\cacert.pem CApath: none'. This may be a libcurl error, See https://curl.se/libcurl/c/libcurl-errors.html first for more details. MyCode: `from curl_cffi import requests

r = requests.get("https://www.cian.ru/sale/flat/295113174/", impersonate="chrome110")

print(r.json()) `

perklet commented 9 months ago

Use a pur ASCII path, other unicode characters like Russian will cause this problem.