python爬虫基本原理及入门

爬虫:请求目标网站并获得数据的程序 爬虫的基本步骤: 使用python自带的urllib库请求百度: import urllib.request response = urllib.request.urlopen('http://www.baidu.com') print(type(response)) #打印结果 <class 'http.client.HTTPResponse'> 可以从类型上
相关文章
相关标签/搜索