xxxx18一60岁hd中国/日韩女同互慰一区二区/西西人体扒开双腿无遮挡/日韩欧美黄色一级片 - 色护士精品影院www

  • 大小: 0.32M
    文件類型: .zip
    金幣: 2
    下載: 1 次
    發(fā)布日期: 2021-01-31
  • 語言: 其他
  • 標(biāo)簽:

資源簡介

利用Python爬取新冠肺炎疫情實(shí)時(shí)數(shù)據(jù),Pyecharts畫2019-nCoV疫情地圖
騰訊網(wǎng)頁數(shù)據(jù)有點(diǎn)變化,所以重新爬取了一下
基于pyecharts的可視化,這次更新新加了注釋
數(shù)據(jù)源 [騰訊疫情實(shí)時(shí)追蹤](https://news.qq.com/zt2020/page/feiyan.htm?from=timeline&isappinstalled=0)
后期會(huì)繼續(xù)更新pyecharts的繪圖,搭建可視化大屏,感興趣的可以先關(guān)注一下

資源截圖

代碼片段和文件信息

#!/usr/bin/env?python
#?coding:?utf-8

#?+?數(shù)據(jù)源?[騰訊疫情實(shí)時(shí)追蹤](https://news.qq.com/zt2020/page/feiyan.htm?from=timeline&isappinstalled=0)

#?###?第一部分?網(wǎng)頁分析

#?###?第二部分?數(shù)據(jù)準(zhǔn)備

#?####?導(dǎo)入模塊

import?time?
import?json
import?requests
from?datetime?import?datetime
import?pandas?as?pd?
import?numpy?as?np?


#?####?抓取數(shù)據(jù)

def?catch_data():
????url?=?‘https://view.inews.qq.com/g2/getOnsInfo?name=disease_h5‘
????reponse?=?requests.get(url=url).json()
????#返回?cái)?shù)據(jù)字典
????data?=?json.loads(reponse[‘data‘])
????return?data


data?=?catch_data()
data.keys()


#?####?數(shù)據(jù)處理

#?數(shù)據(jù)集包括[“國內(nèi)總量““國內(nèi)新增““更新時(shí)間““數(shù)據(jù)明細(xì)““每日數(shù)據(jù)““每日新增“]

lastUpdateTime?=?data[‘lastUpdateTime‘]
chinaTotal?=?data[‘chinaTotal‘]
chinaAdd?=?data[‘chinaAdd‘]
print(chinaTotal)
print(chinaAdd)


#?#####?國內(nèi)數(shù)據(jù)處理?第一步
#?數(shù)據(jù)明細(xì),數(shù)據(jù)結(jié)構(gòu)比較復(fù)雜,一步一步打印出來看,先明白數(shù)據(jù)結(jié)構(gòu)
areaTr

?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件???????40772??2020-02-03?12:04??2019_nCoV?可視化.html
?????文件??????397720??2020-02-03?11:56??2019_nCoV?可視化2.0.ipynb
?????文件????????8124??2020-02-03?12:03??2019_nCoV?可視化2.0.py
?????文件???????55874??2020-02-03?11:46??2019_nCoV.ipynb
?????文件???????98890??2020-01-30?14:17??2019_nCoV_預(yù)測(無實(shí)際意義).ipynb
?????文件????????6325??2020-02-02?18:21??daily_data.xlsx
?????文件???????16095??2020-01-29?17:34??世界各國中英文對照.xlsx

評論

共有 條評論