Skip to content


MIT 28 2 1,603
282.6 thousand (month) Feb 23 2022 0.6.4(a month ago)
9,015 5 971 GPL-3.0
Sep 04 2020 372.4 thousand (month) 3.5.5(4 months ago)

Curl-cffi is a Python library for implementing curl-impersonate which is a HTTP client that appears as one of popular web browsers like: - Google Chrome - Microsoft Edge - Safari - Firefox Unlike requests and httpx which are native Python libraries, curl-cffi uses cURL and inherits it's powerful features like extensive HTTP protocol support and detection patches for TLS and HTTP fingerprinting.

Using curl-cffi web scrapers can bypass TLS and HTTP fingerprinting.

Undetected chromedriver is custom open source headless browser driver based on Selenium. It extends Selenium headless browsers to be more ressistant to fingeprinting and identification techniquest like: - Cloudflare - Datadome - Imperva And other similar WAF anti-bot systems.



Example Use

curl-cffi can be accessed as low-level curl client as well as an easy high-level HTTP client:
from curl_cffi import requests

response = requests.get('')

# or using sessions
session = requests.Session()
response = session.get('')

# also supports async requests using asyncio
import asyncio
from curl_cffi.requests import AsyncSession

urls = [

async with AsyncSession() as s:
    tasks = []
    for url in urls:
        task = s.get(url)
    # scrape concurrently:
    responses = await asyncio.gather(*tasks)

# also supports websocket connections
from curl_cffi.requests import Session, WebSocket

def on_message(ws: WebSocket, message):

with Session() as s:
    ws = s.ws_connect(
# It works the same as Selenium just with a different import.
import undetected_chromedriver as uc
driver = uc.Chrome(headless=True, use_subprocess=False)

Alternatives / Similar

Was this page helpful?