4 ms·
Please also add support for different so we can write —-libcurl example.py
by jari_mustonen 3y ago
Please also add support for different so we can write
—-libcurl example.py
- boffinAudio 3y agoIts quite effective to use ChatGPT to convert C code to Python ..
- a3w 3y ago... or "curl calls to python webscraping". Although having to look for the right version of libraries with different number names and therefore different feature sets was tedious to do manually, AI might just guess fast and sometimes even right as to which import to use.
- justinclift 3y agoYou can probably get pretty far with the generated C code, then look up the same curl options in the Python bindings: https://github.com/pycurl/pycurl https://github.com/pycurl/pycurl
- 0l 3y agoLibcurl is a c/c++ library... Just use Requests
- ok123456 3y agoTools already convert a curl command line to a Python requests script. [1] https://github.com/spulec/uncurl https://github.com/spulec/uncurl
- npteljes 3y agoTry https://curlconverter.com/ https://curlconverter.com/ - "Convert curl commands to Python, JavaScript and more"