python笔记08-----(学习自清华大学出版社的python从入门到精通的配套视频)

python笔记----Python 网络爬虫 1.什么是爬虫 例子:爬取百度首页 import urlib.request #导入网络请求模块 response = urlib.request.urlopen('网址’) #实现网络请求 print(response.read().decode(‘utf-8’)) #打印内容 2.网络爬虫的经常使用技术 2.1.网络请求 3个经常使用的模块: u
相关文章
相关标签/搜索