Metadata-Version: 1.1
Name: drequests
Version: 1.2
Summary: The descusr web application development framework, a drequests project
Home-page: http://www.piadu.com
Author: descusr
Author-email: descusr@163.com
License: BSD-derived (http://www.repoze.org/LICENSE.txt)
Description: drequests
        =======
        
        Before install drequests,make sure had installed pydomain("sudo pip install pydomain")
        
        drequests  is an Apache2 Licensed HTTP library, written in Python, for human beings.
        
        Python’s standard pycurl2 module provides most of the HTTP capabilities you need, but the API is thoroughly broken. It was built for a different time — and a different web. It requires an enormous amount of work (even method overrides) to perform the simplest of tasks..
        
        Things shouldn’t be this way. Not in Python.
        >>>from drequests import DRequests
        >>>resp = DRequests(url = 'http://www.piadu.com')
        >>>resp.status_code
        200
        >>>resp.text
        <html ....
        
        
        1.1
        
        e.g.
        from drequests import DRequests
        url = 'http://www.piadu.com'
        resp = DRequests(url = url,referer = url,useragent = "Mozilla/5.0 (X11; Linux x86_64; rv:9.0.1) Gecko/20100101 Firefox/9.0.1",followlocation = 1)
        #取响应码
        code = resp.status_code
        #取响应头
        header = resp.headers
        #取页面内容
        html = resp.text
        
Keywords: python requests,pyrequests
Platform: UNKNOWN
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Internet :: WWW/HTTP :: WSGI
Classifier: License :: Repoze Public License
