python爬虫

Posted imzscilovecode

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了python爬虫相关的知识,希望对你有一定的参考价值。

开始学习爬虫,抓下网页源代码
import urllib.request

response=urllib.request.urlopen("http://www.fishc.com")
html=response.read()
html=html.decode(‘utf-8‘)
print(html)

以上是关于python爬虫的主要内容,如果未能解决你的问题,请参考以下文章