A small subset of Python Requests
a small subset of Python Requests
a few years ago, when I was first learning Python and looking for http functionality, i found the batteries-included urllib — part of the Python std lib https://docs.python.org/3/library/urllib.request.html and it said
The Requests package is recommended for a higher-level HTTP client interface.
so i decided to try requests instead.
the requests page links to a gist that makes urllib seem very complicated (and requests so much easier)
import urllib2
gh_url = 'https://api.github.com'
req = urllib2.Request(