从零开始学Python 三(网络爬虫)

本章由网络爬虫的编写来学习python。首先写几行代码抓取百度首页,提提精神,代码如下: import urllib.request file=urllib.request.urlopen("http://www.baidu.com") data=file.read() handle=open("code/python/baidu.html","wb") handle.write(data
相关文章
相关标签/搜索