Skip to content

中央氣象局觀測資料查詢系統(CWB Observation Date Inquire System, CODiS)的爬蟲

License

Notifications You must be signed in to change notification settings

JAAAE/CWB-Observation-Crawler

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

中央氣象局觀測資料查詢系統(CODiS)爬蟲

簡介

此爬蟲會把中央氣象局觀測資料查詢系統(CWB Observation Date Inquire System, CODiS)的資料爬下來,並以 csv 儲存,支援失敗再次下載。

用法

打開 climate_crawler.py 並修改檔案開頭的 config

# 測站編號,以下是台北市的所有測站
twStationList = ["466910", "466920", "466930", "C0A980", "C0A990", "C0A9A0", "C0A9B0", "C0A9C0", "C0A9E0", "C0A9F0", "C0AC40", "C0AC70", "C0AC80", "C0AH40", "C0AH70", "C1A730", "C1AC50"]
# 年份
yearList=['2017', '2018']
# 月份
monthSearch = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]

(測站編號請至 CODiS 查詢)

修改後執行 python3 climate_crawler.py,資料會被下載於 /data 中

目前 multi_crawler.py(多執行緒版本)還沒有完成修改故不能運作,有空再處理,PR Welcome!

版權聲明

此程式修改自 wy36101299/crawler-central-weather,此程式碼由原作者 TienYang 製作並由 Allen Chou 修改後釋出。

因為原專案最後一次更新已經是 2015 年初,之後中央氣象局更動了網站的結構,原本的 Code 不能沿用,故修改之。然而原作者帳號看來沒有在活動了,故拿來修到會運作並以獨立 repo 以 MIT 釋出。

About

中央氣象局觀測資料查詢系統(CWB Observation Date Inquire System, CODiS)的爬蟲

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%