human_curl
human_curl copied to clipboard
Simple Human wrapper for cURL library
It appears curl2 also needs python 3 support
this is code ; import human_curl human_curl.get("http://github.com/?x", debug=True) print human_curl.response this is error. human_curl.get("http://github.com/?x", debug=True) AttributeError: 'module' object has no attribute 'get' i don't know what is the problem.
pip install human_curl Collecting human_curl Downloading human_curl-0.2.0.tar.gz (40kB) 100% |████████████████████████████████| 40kB 4.7MB/s Complete output from command python setup.py egg_info: Traceback (most recent call last): File "", line 1, in File...
When I use human_curl make get request:https://www.sample.com ,test the site is reachable or not. Then This error occurred:curlerror(56: SSL read: error:00000000:lib(0):func(0):reason(0), errno 104),error code:56 the python sourse code debug info...
this is code ; > > > url = 'http://httpbin.org/post' > > > files = {'file': ('report.csv', 'some,data,to,send\nanother,row,to,send\n')} > > > r = requests.post(url, files=files) this is error: File "D:\Python27\lib\site-packages\human_curl\utils.py",...
``` t:\cloud>pip install human_curl Requirement already satisfied (use --upgrade to upgrade): human-curl in c:\program files (x86)\python27\lib\site-packages\human_curl-0.1.9-py2.7.egg Collecting pycurl2 (from human-curl) Using cached pycurl2-7.20.0.tar.gz Complete output from command python setup.py egg_info:...
Adding the following proxy modes: http1.0, https1.0, socks4a, socks5-hostname as arguments for the proxy keyword. Related in a way to: https://github.com/pycurl/pycurl/issues/206
According to Python Docs "Exception,e" is Python before 2.7 and incompatible with Python 3, currently "Exception as e" should be used. This pull requests changes this for the setup.py script...
Seems like most of the API of requests does not work in human_curl For instance: import human_curl as requests r = requests.get("https://..." , verify=False) -- rename validate_cert to verify? requests.get("https://..."...
pycurl 7.19.3+ handles Unicode Strings reliably. This has not been my experience with pycurl2. Also pycurl seems to now be well maintained. As a result, human_curl should only install/use pycurl2...