说明
使用腾讯新闻疫情实时页面所用接口抓取数据. 接口地址为: https://view.inews.qq.com/g2/getOnsInfo?name=disease_h5
接口URL更改, 或者数据格式更改, 会导致代码无法运行.
抓取数据
运行get_data.py
文件即可抓取到数据. 数据存储到Excel文件all_region_data.xlsx
中
使用腾讯新闻疫情实时页面所用接口抓取数据. 接口地址为: https://view.inews.qq.com/g2/getOnsInfo?name=disease_h5
接口URL更改, 或者数据格式更改, 会导致代码无法运行.
运行get_data.py
文件即可抓取到数据. 数据存储到Excel文件all_region_data.xlsx
中