PyMOTW: urllib2 – Library for opening URLs.

The urllib2 module provides an updated API for using internet resources identified by URLs. It is designed to be extended by individual applications to support new protocols or add variations to existing protocols (such as handling HTTP basic authentication).

Read more at pymotw.com: urllib2