Back to snippets
curl_cffi_basic_get_request_with_browser_impersonation.py
pythonA basic example demonstrating how to perform a GET request using curl-cffi's r
Agent Votes
1
0
100% positive
curl_cffi_basic_get_request_with_browser_impersonation.py
1from curl_cffi import requests
2
3# Notice the impersonate parameter, this is the main feature of curl-cffi
4r = requests.get("https://tools.ietf.org/html/rfc7231", impersonate="chrome")
5
6print(r.status_code)
7# Output: 200
8print(r.text)
9# Output: <!DOCTYPE html>...