import urllib
url = "http://www.baidu.com"
data = urllib.request.urlopen(url).read()
data = data.decode('UTF-8')
print(data)
Python3:抓取网页HTML代码
最新推荐文章于 2022-09-22 10:59:14 发布
import urllib
url = "http://www.baidu.com"
data = urllib.request.urlopen(url).read()
data = data.decode('UTF-8')
print(data)