To download web pages from the web server, the urllib module, which is part of the standard Python library, can be used urllib includes functions for retrieving data from URLs.
Download web pages with Python scripts
Getting ready
To learn the basics, we could use the Python interactive terminal. Type python in your Terminal window and press Enter. This will open up the Python (Python 2.x) interactive terminal.
How to do it...
There are some differences in commands for doing this in Python 2.x and Python 3.x, mainly with the print statements. So please note the difference...