This recipe defines an urllib.request module that fetches data from the remote host. urllib.request.urlopen() opens the given web page and fetches it. Since it comes with Python 3, it does not support Python 2. However, you may install and use urllib for Python 2 as we elaborated before.