Modules/Requests
requests is a Python module that is an Apache2 Licensed HTTP library, written in Python, for human beings. This means it allows to use HTTP calls in a straightforward and readable way.
Example (fromRequests page)
>>>r=requests.get('https://api.github.com/user',auth=('user','pass'))>>>r.status_code200>>>r.headers['content-type']'application/json; charset=utf8'>>>r.encoding'utf-8'>>>r.textu'{"type":"User"...'>>>r.json(){u'private_gists':419,u'total_private_repos':77,...}
This is a short article. Please extend it!
Community content is available underCC-BY-SA unless otherwise noted.
