python初学网页扒取

#python3.4.0
import urllib.request
import urllib
response = urllib.request.urlopen('http://www.baidu.com/')
text = response.read()
print (text)

你可能感兴趣的:(python)