-
-
Notifications
You must be signed in to change notification settings - Fork 377
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
I have made a module that can be plugged directly into the requests library, it replaces the default urllib3 HTTPAdapter with a custom adapter made to work with curl. You can check it out here https://github.com/el1s7/curl-adapter.
Here's how easy you can integrate curl_cffi to requests by using the curl-adapter module:
import requests
from curl_adapter import CurlCffiAdapter
with requests.Session() as s:
s.mount("http://", CurlCffiAdapter(impersonate_browser_type="chrome"))
s.mount("https://", CurlCffiAdapter(impersonate_browser_type="chrome"))
response = s.get("https://example.com")
Even though you already have a pretty good cIient similar to requests, the curl-adapter module is useful for people who need a fully compatible requests API.
xybdolfies
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request