urllib and urllib2 are Python modules for fetching URLs. It offers a very simple interface, in the form of the urlopen function which is capable of fetching URLs. It also offers a slightly more complex interface for handling features like basic authentication, cookies, proxies and soon.
urllib2 supports fetching URLs for many URL schemes such as ftp, http -- for example “ftp” is the URL scheme of “ftp://python.org/“
Full story »