iT邦幫忙

1

Python 爬取開放API 問題

  • 分享至 

  • xImage

實作關於 python 爬取空氣品質 AQI 遇到的問題

在取得開放 API 後,顯示說

TypeError: string indices must be integers

不知道該如何調整 為整數

取得資料來源如下:
https://data.epa.gov.tw/dataset/aqx_p_432/resource/8ff027dc-2da2-42e8-85de-78ac3faf470e
https://ithelp.ithome.com.tw/upload/images/20201022/20118414bzyND3P64m.png

圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

1 個回答

3
dragonH
iT邦超人 5 級 ‧ 2020-10-22 16:11:46
最佳解答

code
image1

result

image2

idea-stu iT邦新手 5 級 ‧ 2021-07-21 17:57:08 檢舉

有解決了謝謝回答!

我要發表回答

立即登入回答