Skip to content

refactor: migrate http client from requests to curl_cffi#18

Open
ammmze wants to merge 1 commit intolamoreauxlab:mainfrom
ammmze:cf-block
Open

refactor: migrate http client from requests to curl_cffi#18
ammmze wants to merge 1 commit intolamoreauxlab:mainfrom
ammmze:cf-block

Conversation

@ammmze
Copy link

@ammmze ammmze commented Mar 12, 2026

Replace requests.Session with curl_cffi.Session(impersonate="chrome") to bypass bot detection. Extract _login() helper. Update tests to mock curl_cffi.Session context manager via PATCH_SESSION.

Replace requests.Session with curl_cffi.Session(impersonate="chrome")
to bypass bot detection. Extract _login() helper. Update tests to mock
curl_cffi.Session context manager via PATCH_SESSION.
@ammmze
Copy link
Author

ammmze commented Mar 14, 2026

I guess the cloudflare block I'm seeing is not happening to everyone (based on a discussion over here).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant