开始学习爬虫,抓下网页源代码
import urllib.request
response=urllib.request.urlopen("http://www.fishc.com")
html=response.read()
html=html.decode(‘utf-8‘)
print(html)
标签:highlight python爬虫 read log 开始 python url fish .com
开始学习爬虫,抓下网页源代码
import urllib.request
response=urllib.request.urlopen("http://www.fishc.com")
html=response.read()
html=html.decode(‘utf-8‘)
print(html)
标签:highlight python爬虫 read log 开始 python url fish .com
原文地址:https://www.cnblogs.com/imzscilovecode/p/8535397.html