Using the websucker Tool
The websucker tool is shipped with the Python source distribution. You’ll find it in the Tools/webchecker subdirectory. You can also download the current version of the script from python.org (you’ll need both webchecker.py and websucker.py).
To use this tool, just run the script with an URL as the sole argument. The script will download everything to a local directory named after the URL (minus the HTTP prefix).
$ python websucker.py http://www.pythonware.com/library/tkinter/introduction Adding root http://www.pythonware.com/library/tkinter/introduction Run... Round 1 (1 total, 1 to do, 0 done, 0 bad) saved www.pythonware.com/library/tkinter/introduction/index.html Round 2 (157 total, 156 to do, 1 done, 0 bad) saved www.pythonware.com/library/tkinter/introduction/canvas-bitmap.htm saved www.pythonware.com/library/tkinter/introduction/canvas-image.htm saved www.pythonware.com/library/tkinter/introduction/canvas-line.htm saved www.pythonware.com/library/tkinter/introduction/canvas-oval.htm ...