import urllib html=urllib.urlopen("www.baidu.com").read() f=urllib.urlretrieve("www.baidu.com","c:/mysite/1.html")