Try   HackMD

影片大綱

  1. 網路連線程式,以 HTTP 通訊協定為例
    1.1 使用 urllib.request 模組
    1.2 使用 urlopen(網址) 連線網址
    1.3 使用 read() 讀取資料
    1.4 使用 decode("utf-8") 處理中文資料
    1.5 使用 json 模組,解讀 json 資料格式

  2. 公開資料串接
    2.1 使用台北市政府公開資料 (http://data.taipei/)
    2.2 搜尋並取得資料的串接網址 (API)
    2.3 測試串接網址,觀察資料格式
    2.4 撰寫程式,自動連線並且擷取想要的資料

  3. 儲存資料到檔案中
    3.1 使用寫入模式開啟檔案
    3.2 使用 utf-8 編碼處理中文資料

影片

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

筆記


END