Python疫情数据下载,并保存成Excel
import requests
import json
import os
import openpyxl
res = requests.get(url)
# 模拟浏览器请求
headers = {
'user-agent': 'text/javascript, application/javascript, application/ecmascript, application/x-ecmascript, */*; q=0.01'
}
def get_data(provinceName):
data_url = "https://api
1