Skip to content

Latest commit

 

History

History
62 lines (43 loc) · 1.14 KB

index.rst

File metadata and controls

62 lines (43 loc) · 1.14 KB

python

urlfetch

urlfetch documentation

urlfetch is a simple, lightweight and easy to use HTTP client for Python. It is distributed as a single file module and has no depencencies other than the Python Standard Library.

Getting Started

Install

$ pip install urlfetch

OR grab the latest source from github ifduyue/urlfetch:

$ git clone git://github.com/ifduyue/urlfetch.git
$ cd urlfetch
$ python setup.py install

Usage

>>> import urlfetch >>> r = urlfetch.get("http://docs.python.org/") >>> r.status, r.reason (200, 'OK') >>> r.getheader('content-type') 'text/html; charset=UTF-8' >>> r.getheader('Content-Type') 'text/html; charset=UTF-8' >>> r.content ...

User's Guide

examples reference changelog contributors

License

Code and documentation are available according to the BSD 2-clause License: