bisibility — Track Google rankings and Search Console insights. Free during beta.
Try bisibility freeOur product
Favicon of curl_cffi

curl_cffi

PublishedLast updated

Python HTTP client for scraping with browser-like TLS, JA3, and HTTP/2 fingerprint impersonation without running a full browser.

Screenshot of curl_cffi website

curl_cffi is a Python HTTP client built for request-level scraping with browser-like TLS, JA3, and HTTP/2 fingerprint impersonation. It helps teams make realistic HTTP requests without the overhead of browser automation.

Key Features:

  • Browser Impersonation - Mimics browser TLS, JA3, and HTTP/2 fingerprints for harder-to-detect scraping.
  • Request-Level Scraping - Sends direct HTTP requests instead of launching a full browser stack.
  • Python Package - Available on PyPI as curl-cffi for Python projects.
  • Open Source - MIT-licensed project with source code on GitHub.

Web scraping workflow

How to use curl_cffi in a web scraping pipeline

curl_cffi is a Python HTTP client with browser-like transport fingerprint options. It is useful when you need response bytes and session handling without launching a browser for every page.

A practical workflow

  1. Feed a bounded list of URLs into a worker and establish a session with the headers, cookies and transport configuration required by that collection task.
  2. Request the pages with curl_cffi, recording HTTP status, final URL and response type. Reuse session state where the workflow needs continuity.
  3. Send successful HTML or JSON responses to an appropriate parser, then validate the extracted records and write them to your destination.

When it fits

Choose this pattern for server-rendered pages, JSON endpoints or other requests where browser execution is unnecessary. It can also be the HTTP stage before a selective browser fallback, keeping the rendering decision explicit.

Boundaries

Transport impersonation does not turn an HTTP client into a JavaScript renderer. It does not guarantee access or correct content. Detect challenge pages and missing application data before marking a request successful, and keep retry and concurrency limits in your own worker logic.

Features:
Anti-Bot BypassFingerprint SpoofingOpen SourcePython SDKBrowser ImpersonationRequest-Level Scraping

Share:

bisibility

Growing a website? Track its keywords, Google rankings, Search Console insights, and share of voice with bisibility. Free during beta.

Try bisibility freeOur product

Repository

lexiforest/curl_cffi

  • Stars

    6.9K
  • Forks

    581
  • Last commit

    2026-11-29
  • License

    MIT
  • Language

    Python

Metrics recorded 2026-12-01

Repository details

License source: Repository license file

View Repository

Frequently asked questions

What is curl_cffi?

curl_cffi is a Python interface to curl with requests-like APIs and supported browser-fingerprint impersonation. It can make HTTP requests without running a complete browser. Browser impersonation does not execute a page’s JavaScript or guarantee that a request is accepted.

Sources (checked ): curl_cffi repository

How do I install curl_cffi using pip?

The official repository installs the package with pip install curl_cffi --upgrade. Follow the current installation guide for your platform and release. The package also documents a command-line interface in supported versions.

Sources (checked ): curl_cffi repository

Why can curl_cffi start receiving 403 responses even with browser impersonation?

curl_cffi impersonates browser TLS and HTTP/2 characteristics, but these are only some signals used in bot detection. Its Session API can retain cookies between requests. Inspect the response body, request method, session state, and endpoint requirements before retrying a 403. Compare a previously successful request with the failing one and record what changed. Use a documented API or an operator-approved access route when available. Neither a different impersonation target nor a copied cookie guarantees that the server will accept the request.

Sources (checked ): FAQ — curl_cffi documentation; Quick Start — curl_cffi documentation

Can curl_cffi preserve HttpOnly cookies and trigger a website’s session refresh?

curl_cffi sessions can retain cookies from Set-Cookie responses. HttpOnly restricts access through non-HTTP APIs such as browser JavaScript; it does not prevent an HTTP client from exchanging the cookie. Use the session cookie jar rather than a permanently copied Cookie header. A homepage GET refreshes authentication only if the website implements that behavior; cookie persistence does not establish a refresh contract. Prefer the documented authentication flow, detect expiry, and handle reauthorization explicitly. Verify refresh behavior for your own authorized session before scheduling periodic requests.

Sources (checked ): RFC 6265 - HTTP State Management Mechanism; Quick Start — curl_cffi documentation

Sources

github.com

Verified against the lexiforest/curl_cffi repository and the PyPI package.