Finally – A Python HTTP Lib that’s as nice as…
…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.
Related posts:
- Vimrecover – Nice Gem
- The Journey from Python to Ruby Pt. 1
- Programming Python puts Ruby to Shame
- Artistic Ruby vs. Corporate Python
- Ruby and Python Compared
