Comments (3)
You can export as many as you like, I don’t see any side effect here. Just make sure they are grouped in the correct category.
from curl_cffi.
Yes, the const.py
is generated by generate_consts.py
. Actually, this file should be called when building the wheel to generate const.py
, and const.py
should not stay in the source. However, due to limitations on Windows, const.py
is kept for convenience.
from curl_cffi.
Yes, the
const.py
is generated bygenerate_consts.py
. Actually, this file should be called when building the wheel to generateconst.py
, andconst.py
should not stay in the source. However, due to limitations on Windows,const.py
is kept for convenience.
Ah yes I got that. But I'm wondering, if there is more work to be done in generate_consts.py.
. For example- You have a TODO mentioned referring to CURL_ERROR_SIZE
. This declaration is inside curl.h
:
#define CURL_ERROR_SIZE 256
It seems we can get it along with all other #define
declarations, in this way:
cat '/usr/include/curl/curl.h' | grep -i "#define.*" | grep -i "CURL" | awk 'xor(/\s[0-9].*/,/<</)' | sed 's/\/\*\s*.*//'
Then I can add wrappers in generate_const.py
, like a class CurlError(IntEnum)
, class CurlProto(IntEnum)
, etc accordingly. But I'm not sure if this is a good idea, so I'd like your opinion 😄
from curl_cffi.
Related Issues (20)
- "Long running async.py" in the example cannot run normally [BUG] HOT 1
- [Feature] Add support for s390x
- [BUG] Install failed with Qinglong Docker image HOT 2
- 无法上传文件[BUG] HOT 2
- [Feature] JA4+升级支持 HOT 1
- curl-impersonate vs curl-cffi [BUG] HOT 10
- how to use proxy with websocket HOT 1
- [Feature] Building curl with ares library (Asynchronous DNS Resolving) HOT 9
- Retrieving Full Cookie Attributes with curl_cffi for Chrome Driver HOT 2
- amazon link can not request success HOT 3
- TLS Version not changing HOT 6
- doesn't work in android[BUG] HOT 1
- [Feature] Remove big overhead in BaseSession cookies section HOT 1
- Failed to perform, ErrCode: 92, Reason: 'HTTP/2 stream 0 was not closed cleanly: INTERNAL_ERROR (err 2)' HOT 2
- Response 400 Bad request : Your browser sent an invalid request HOT 1
- [BUG]请求一段时间之后就会疯狂报错 HOT 1
- [BUG]python 3.10.8使用DuckDuckGoSearchRun模块报异常 HOT 2
- [BUG] Use Different browsers, ... , But get same fingerprints HOT 5
- [BUG] Proxy rotation is not possible when using a session HOT 3
- [BUG] Duplicate GET parameters are dropped when the params kwargs is used HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from curl_cffi.