摘要: 2020.10.17,第一次被visual studio2019坑 开启了自从安装后便没用过的VS2019,想要重新打下课本的代码,直接给我当头一棒(提示错误) 用课本的scanf会提示不安全,然后建议我们换成scanf_s,而且需要注意,要在每个&参数后加上要输入的char的大小,简单说就是加个数 阅读全文
posted @ 2020-10-17 22:58 流菏 阅读(769) 评论(0) 推荐(0) 编辑
摘要: 第一、主题式网络爬虫名称:爬取百度热搜第二、主题式网络爬虫爬取的内容:百度热搜前10第三、主题式网络爬虫设计方案概述: 1、确定百度热搜网页:http://top.baidu.com/ 2、进行Htmls页面解析 3、正式进行爬取网页内容 4、进行可视化并进行数据持久化 5、附上总代码 6、自我总结 阅读全文
posted @ 2020-09-25 21:40 流菏 阅读(454) 评论(0) 推荐(0) 编辑
摘要: import requests from bs4 import BeautifulSoup r = requests.get("https://s.weibo.com/top/summary")#微博热搜排行榜 soup = BeautifulSoup(r.text, 'lxml') items = 阅读全文
posted @ 2020-04-24 18:14 流菏 阅读(221) 评论(0) 推荐(0) 编辑
摘要: import requests from bs4 import BeautifulSoup r = requests.get("https://s.weibo.com/top/summary")#微博热搜排行榜 soup = BeautifulSoup(r.text, 'lxml') items = 阅读全文
posted @ 2020-03-21 17:57 流菏 阅读(329) 评论(0) 推荐(0) 编辑