![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python爬虫
python爬虫
木大木打木大
专门搞nlp的
展开
-
python漫画爬虫:我不做人了,b站!爬取辉夜大小姐等漫画
今天我们要爬取这个网站的《辉夜大小姐想让我告白》漫画(穷人靠科技,富人靠硬币,懂,不多说)首先我们找到了每一话的链接# 获取章节链接和章节名称hrefs = re.findall('<li>\n.*?<a href="(.*?\.html)\"\n.*?class="">\n.*?<span>(.*?)</span>',r.text)for href in hrefs: # 拼接章节链接 chapter_url = 'http://w原创 2020-07-22 09:53:26 · 5711 阅读 · 1 评论 -
python爬取国内疫情数据并生成地图
效果展示 直接上代码获取国内疫情数据from selenium import webdriverimport osfrom time import sleepimport xlwtbookwork = xlwt.Workbook(encoding='utf-8')sheetbook = bookwork.add_sheet('国内疫情数据')title = ['地区','现有确诊','累计确诊','治愈','死亡']for i in range(len(title)):原创 2020-06-10 22:58:58 · 3228 阅读 · 3 评论 -
python爬取国外疫情数据并生成南丁格尔玫瑰图
效果展示 直接上代码获取国外疫情数据#coding:utf-8import requestsimport reimport xlwtheaders = {'Accept-Encoding':'gzip, deflate, br','Accept-Language': 'zh-CN,zh;q=0.9,en;q=0.8','Content-Type': 'application/x-www-form-urlencoded','Host': 'api.inews.qq.com','Us原创 2020-06-10 22:51:07 · 2618 阅读 · 4 评论