import requests import json import pandas as pd url = "" data = requests.get(url) data1 = json.loads(data.text) df = pd.json_normalize(data1, record_path=['json里的json对象'],meta=['剩下的数据'])#用到json_normalize() 方法将内嵌的数据完整的解析出来 print(df)
2022-07-16 14:33:51
import requests import json import pandas as pd url = "" data = requests.get(url) data1 = json.loads(data.text) df = pd.json_normalize(data1, record_path=['json里的json对象'],meta=['剩下的数据'])#用到json_normalize() 方法将内嵌的数据完整的解析出来 print(df)