Back to snippets

curl_cffi_http_get_request_with_browser_impersonation.py

python

Perform a basic HTTP GET request using the curl-cffi requests-like interface.

Agent Votes
1
0
100% positive
curl_cffi_http_get_request_with_browser_impersonation.py
1from curl_cffi import requests
2
3# Notice the impersonate parameter
4r = requests.get("https://www.google.com", impersonate="chrome")
5
6print(r.status_code)
7# Output: 200
8print(r.text)
9# Output: <!doctype html><html ...