urllib2

urllib2 — extensible library for opening URLs

Note

The urllib2 module has been split across several modules in Python 3 named urllib.request and urllib.error. The 2to3 tool will automatically adapt imports when converting your sources to Python 3.

The urllib2 module defines functions and classes which help in opening URLs (mostly HTTP) in a complex world — basic and digest