from urllib.request import urlopen html = urlopen("http://www.baidu.com") print(html.read())
注意: 以上代码基于Python 3.x
Python Web Scraper - Simple Url Request
原文:http://www.cnblogs.com/davidgu/p/4736055.html