Yanked
This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Consider using release 0.16.3 instead.
Python Curl CFFI
CFFI bindings for libcurl with the ability to impersonate browsers' TLS signatures.
Install
pip install curl_cffi
Usage
from curl_cffi import Curl, CurlOpt, CurlInfo
from io import BytesIO
buffer = BytesIO()
c = Curl()
c.setopt(CurlOpt.URL, b'https://ja3er.com/json')
c.setopt(CurlOpt.WRITEDATA, buffer)
c.perform()
c.close()
body = buffer.getvalue()
print(body.decode())
API
Curl object:
- setopt(CurlOpt, value): Sets curl options as in
curl_easy_setopt - perform(): Performs curl request, as in
curl_easy_perform - getinfo(CurlInfo): Gets information in response after curl perform, as in
curl_easy_getinfo - close(): Closes and cleans up the curl object, as in
curl_easy_cleanup
Enum values to be used with setopt and getinfo can be accessed from CurlOpt and CurlInfo.
Acknowledgement
This module is forked from https://github.com/multippt/python_curl_cffi
Release files for curl-cffi 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| curl_cffi-0.1.5.tar.gz | 7.9 kB | Details |
Release files / curl_cffi-0.1.5.tar.gz
| Download URL | curl_cffi-0.1.5.tar.gz |
|---|---|
| Size | 7.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
be3d01c431b9844fc202f72b5b970237a518854414852ee25596277e55bdde33
|
|
BLAKE2b-256 checksum How to use checksums |
c748a83746b63806ca07a4b391c5fc402519b024996c3d4f1a560040979a6e0d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.4
|