
[問題] API下載資料,出現「...」

資料無法完整呈現
但是我單筆貼在瀏覽器網址列
可以完整呈現,就像這樣https://imgur.com/SkJpCPs

我的程式內容如下,請問各位大大是那邊出錯呢?
import requests
import pandas as pd
src="https://data.gcis.nat.gov.tw/od/data/api/7E6AFA72-AD6A-46D3-8681-ED77951D912D?$format=json&$filter=President_No
eq 30152616 and Agency eq 376410000A&$skip=0&$top=50"
result= requests.get(src)
data= pd.read_json(result.content)
with open("BAPIOUT.txt",mode="a",encoding="utf-8") as file:
file.write(str(data))
謝謝回覆~
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 117.56.58.7 (臺灣)
※ 文章網址: https://www.ptt.cc/bbs/Python/M.1591857317.A.2F2.html
→
06/11 14:51,
5年前
, 1F
06/11 14:51, 1F
→
06/11 14:51,
5年前
, 2F
06/11 14:51, 2F
→
06/11 15:38,
5年前
, 3F
06/11 15:38, 3F
Python 近期熱門文章
PTT數位生活區 即時熱門文章