最简单可以用urllib,python2.x和python3.x的用法不同,以python2.x为例:import urllibhtml = urllib.open(url)text = html.read()