我正在嘗試將 json 數據從以下位置下載到 df 表中:“ http://emweb.securities.eastmoney.com/NewFinanceAnalysis/lrbAjax?companyType=4&reportDateType=0&reportType=1&endDate=&code=SZ002475 ”,這是原始數據本頁底部的表格“ http://emweb.securities.eastmoney.com/NewFinanceAnalysis/Index?type=web&code=SZ002475# ”json 頁面似乎是簡單的 json 數據,如"[{\"SECURITYCODE\":\"002475.SZ\",\"REPORTTYPE\":\"1\",\"TYPE\":\"4\" ,\"REPORTDATE\":\"2019/9/30 0:00:00\",\"TOTALOPERATEREVE\":\"37836138416.35\",\"OPERATEREVE\":\"37836138416.35\",.... ……”但是,以下代碼沒有返回任何內容:url ="http://emweb.securities.eastmoney.com/NewFinanceAnalysis/lrbAjax?companyType=4&reportDateType=0&reportType=1&endDate=&code=SZ002475"df = pd.read_json(url) print(df)
將表的原始json數據讀入df表?
慕桂英3389331
2022-07-26 16:38:08