![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
笔记
weixin_46695437
这个作者很懒,什么都没留下…
展开
-
2021-03-13
更新pip python -m pip install -U pip原创 2021-03-13 11:59:25 · 60 阅读 · 1 评论 -
Python爬虫学习笔记
记录学习Python爬虫的笔记@TOC 项目一、爬取搜狗首页 import requests if __name__ == '__main__': #指定url url = 'https://www.sogou.com/' #发送请求 reponse = requests.get(url=url) #接收信息 page_text = reponse.text #储存信息 with open('sogou.html','w',encoding='原创 2020-12-31 19:16:22 · 102 阅读 · 0 评论