- 博客(1)
- 收藏
- 关注
原创 爬虫入门实例
通用爬虫入门实例 听完B站波波老师的详细爬虫讲解之后 自己将前几节的学习代码实操记录一下。 第一篇: 爬取搜狗首页 源代码如下: import requests if name==‘main’: url=‘https://www.sogou.com/’ response=requests.get(url=url) page_text=response.text with open(‘sougou.html’,‘w’,encoding=‘utf-8’) as fp: fp.write(page_text) p
2020-11-29 19:27:10 142
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人