Finally – A Python HTTP Lib that’s as nice as…

Saturday, 05 November 2011

Requests turtle

…Ruby. One thing I envy in Ruby is the simplicity of so many of their libraries – both core and 3rd party. Python’s urllib2 never really felt natural but here is a solution. Requests: “HTTP for humans”.

An example will do it justice:

r = requests.get('http://www.straw-dogs.co.uk')
r.content

Wow – clean, simple and quick.

Add to that the awesome logo and you have a winner.


Thumbnail Screenshots by Thumbshots