選舉黃頁 API (alpha)
編輯歷史
| 時間 | 作者 | 版本 |
|---|---|---|
| 2020-01-06 06:04 – 06:05 | r836 – r838 | |
顯示 diff(108 行未修改)
|
||
| 2019-12-11 00:33 – 00:33 | r824 – r835 | |
顯示 diff(5 行未修改)
** 不定時會將所有資料備份為 json 格式放在 https://github.com/kiang/elections_json
- *http://k.olc.tw/elections/api/areas/index/53c01bce-df94-4939-a456-5460acb5b862
+ *http://elections.olc.tw/api/areas/index/53c01bce-df94-4939-a456-5460acb5b862
*取得單層行政區資料, index/ 後面可以接個別行政區 id 來取得下一層資料
*index/ 後面沒有參數會顯示最上層(目前是縣市)
- *http://k.olc.tw/elections/api/elections/index/53c0202e-ed38-44bb-8e78-5460acb5b862
+ *http://elections.olc.tw/api/elections/index/53c0202e-ed38-44bb-8e78-5460acb5b862
*取得單層選舉區資料,index/ 後面可以接個別選舉區 id 來取得下一層資料
*index/ 後面沒有參數會顯示最上層(目前是九種選舉類型)
- *http://k.olc.tw/elections/api/elections/candidates/53d7332e-2dec-4626-b782-1299acb5b862
+ *http://elections.olc.tw/api/elections/candidates/53d7332e-2dec-4626-b782-1299acb5b862
*取得個別選舉區下所有候選人資料
- *http://k.olc.tw/elections/api/elections/s/%E5%B9%B3
+ *http://elections.olc.tw/api/elections/s/%E5%B9%B3
*針對行政區名稱進行搜尋
- *http://k.olc.tw/elections/api/candidates/s/%E5%B9%B3
+ *http://elections.olc.tw/api/candidates/s/%E5%B9%B3
*針對候選人名稱進行搜尋
- *http://k.olc.tw/elections/api/candidates/view/53c02641-b430-4dcd-8512-5dffacb5b862
+ *http://elections.olc.tw/api/candidates/view/53c02641-b430-4dcd-8512-5dffacb5b862
*檢視特定候選人資料
(86 行未修改)
|
||
| 2018-09-10 14:37 – 14:37 | r822 – r823 | |
顯示 diff(108 行未修改)
|
||
| 2018-04-03 08:01 – 08:01 | r816 – r821 | |
顯示 diff(108 行未修改)
|
||
| 2015-12-25 15:13 – 15:13 | r800 – r815 | |
顯示 diff(3 行未修改)
** 如果需要大量存取,麻煩直接跟我聯絡 ,我可以隨時把資料庫匯出給你,機器超弱的...
+ ** 不定時會將所有資料備份為 json 格式放在 https://github.com/kiang/elections_json
*http://k.olc.tw/elections/api/areas/index/53c01bce-df94-4939-a456-5460acb5b862
(100 行未修改)
|
||
| 2015-01-14 03:21 – 03:21 | r797 – r799 | |
顯示 diff(1 行未修改)
選舉黃頁基本上是由兩棵 MPTT 樹狀結構所組成, areas 為行政區、 elections 為選舉區,這樣子切割的原因是部份選舉區跟行政區需要額外對應,像是個別議員選區經常會對應到一個以上的行政區,因此切開來處理。 透過 api 取得的資料都會有 rght 與 lft 用在 MPTT 索引的欄位,只要 rght - lft = 1 就表示該節點為樹葉 (leaf node) ,它不會有下一層。
+
+ ** 如果需要大量存取,麻煩直接跟我聯絡 ,我可以隨時把資料庫匯出給你,機器超弱的...
*http://k.olc.tw/elections/api/areas/index/53c01bce-df94-4939-a456-5460acb5b862
(100 行未修改)
|
||
| 2014-12-01 13:11 – 13:13 | r740 – r796 | |
顯示 diff(44 行未修改)
*gender: 性別 (m = 男, f = 女)
*birth: 生日
+ *birth_place: 出生地
*education: 學歷
- *experience: 經歷
+ *education_level: 教育程度
+ *is_present: 是否現任
+ *name_english: 英文姓名
+ *no: 參選編號
+ *stage: 階段()=未登記, 1=已登記, 2=已當選
+
+ *vote_count: 得票數字*experience: 經歷
*created: 建立時間
*modified: 更新時間
(48 行未修改)
|
||
| 2014-11-25 14:18 – 14:18 | r737 – r739 | |
顯示 diff(98 行未修改)
|
||
| 2014-11-17 09:02 – 09:03 | r693 – r736 | |
顯示 diff(82 行未修改)
*歷屆選舉候選人 https://github.com/kiang/db.cec.gov.tw/blob/master/elections.csv
*用代號欄位可以在 https://github.com/kiang/db.cec.gov.tw/tree/master/elections 找到對應資訊
+ *選舉公報 - 在 CSV 最後一個欄位看到的 uuid ,可以在 pdf / pdf_103 目錄下找到對應的 pdf 檔案
+ *舊有 https://github.com/kiang/bulletin.cec.gov.tw/blob/master/Console/Command/data/bulletin.csv
+ *103年 https://github.com/kiang/bulletin.cec.gov.tw/blob/master/Console/Command/data/bulletin_103.csv
許願清單Wishlist
(9 行未修改)
|
||
| 2014-11-13 12:44 – 12:45 | r686 – r692 | |
顯示 diff(24 行未修改)
*code: 來自 行政院主計處 的官方行政區代碼,不過好像沒有太多單位使用...
*lft, rght: MPTT 索引, rght - lft = 1 表示已經是樹葉
- *population: 103.04 人口數
- *population_electors: 103.04 滿 20 歲人口數
+ *population: 103.09 人口數
+ *population_electors: 103.09 滿 20 歲人口數
*Election
*id: uuid
*name: 名稱
*lft, rght: MPTT 索引, rght - lft = 1 表示已經是樹葉
- *population: 103.04 人口數
- *population_electors: 103.04 滿 20 歲人口數
+ *population: 103.09 人口數
+ *population_electors: 103.09 滿 20 歲人口數
*Candidate
*id: uuid
(59 行未修改)
|
||
| 2014-11-13 08:19 – 09:32 | r569 – r685 | |
顯示 diff(50 行未修改)
*platform: 政見
+ 非動態資料
+ *所有選區資料 - https://github.com/kiang/elections/tree/master/Console/Command/data/2014_areas
+ *id - 選舉黃頁uuid
+ *url - 選舉黃頁網址
+ *election - 選區
+ *quota - 應選人數
+ *quota_woman - 婦女保障名額
+ *population - 人口
+ *population_electors - 選舉人數量(滿 20 歲)
+ *areas - 行政區 (
+ *id - 選舉黃頁uuid
+ *name - 名稱
+ *ivid - https://github.com/g0v/twgeojson 的行政區編號
+ *code - 主計處的行政區編號
+ *population - 人口
+ *population_electors - 選舉人數量(滿 20 歲)
+ *url - 選舉黃頁網址
+ *)
+ *候選人名單 https://github.com/kiang/elections/tree/master/Console/Command/data/2014_candidates
+ *pdf 格式是從中選會下載的備份
+ *csv 格式是透過程式初步處理結果
+ *應選名額 https://github.com/kiang/elections/tree/master/Console/Command/data/2014_quota
+ *上面選區資料的子集合,主要針對應選名額匯出
+ *候選人名單 https://github.com/kiang/elections/blob/master/Console/Command/data/db_dump.csv
+ *選舉黃頁裡面的候選人名單,只有選區、名字跟網址
+ *候選人 FB 資料 https://github.com/kiang/elections/blob/master/Console/Command/data/facebook_candidates.csv
+ *把個人資料裡有 FB 連結的匯出
+ *fb / google result https://github.com/kiang/elections/blob/master/Console/Command/data/google_fb.csv
+ *從 https://github.com/chhsiao1981/candidate_google_data 取得的資料進行一些比對工作,但資料正確性不夠高
+ *政治現金帳戶資料 https://github.com/kiang/sunshine.cy.gov.tw/blob/master/list_new.csv
+ *歷屆選舉候選人 https://github.com/kiang/db.cec.gov.tw/blob/master/elections.csv
+ *用代號欄位可以在 https://github.com/kiang/db.cec.gov.tw/tree/master/elections 找到對應資訊
許願清單Wishlist
(9 行未修改)
|
||
| 2014-10-04 07:01 – 07:01 | r554 – r568 | |
顯示 diff(59 行未修改)
*
*確認開放授權
+ *http://k.olc.tw/elections/pages/about 是用 CC
+ 喔
|
||
| 2014-10-04 06:58 – 06:59 | r514 – r553 | |
顯示 diff(51 行未修改)
- Wishlist
+ 許願清單Wishlist
- *和真度計的資料匯合,成為csv或json
+ *和真度計的資料匯合,成為csv或json,可以用http request撈到
*真度計http://disa.csie.org:5566/
-
+ *https://github.com/averangeall/nose-meter/tree/master
*
+ *確認開放授權
|
||
| 2014-10-04 06:58 | r513 | |
顯示 diff(60 行未修改)
|
||
| 2014-10-04 06:57 – 06:58 | r475 – r512 | |
顯示 diff(52 行未修改)
Wishlist
+
+ *和真度計的資料匯合,成為csv或json
+ *真度計http://disa.csie.org:5566/
*
|
||
| 2014-10-04 06:57 | r474 | |
顯示 diff(57 行未修改)
|
||
| 2014-10-04 06:57 – 06:57 | r464 – r473 | |
顯示 diff(51 行未修改)
- W
+ Wishlist
+
+
+ *
|
||
| 2014-10-04 06:57 | r463 | |
顯示 diff(54 行未修改)
|
||
| 2014-10-04 06:57 – 06:57 | r460 – r462 | |
顯示 diff(49 行未修改)
*modified: 更新時間
*platform: 政見
+
+
+ W
|
||
| 2014-09-21 13:56 – 14:11 | r227 – r459 | |
顯示 diff(18 行未修改)
欄位說明:
+ *Area
+ *id: uuid
+ *name: 名稱
+ *ivid: 來自 地理資訊歷史變動紀錄 的行政區代碼 => https://github.com/g0v/twhgis
+ *code: 來自 行政院主計處 的官方行政區代碼,不過好像沒有太多單位使用...
+ *lft, rght: MPTT 索引, rght - lft = 1 表示已經是樹葉
+ *population: 103.04 人口數
+ *population_electors: 103.04 滿 20 歲人口數
+ *Election
+ *id: uuid
+ *name: 名稱
+ *lft, rght: MPTT 索引, rght - lft = 1 表示已經是樹葉
+ *population: 103.04 人口數
+ *population_electors: 103.04 滿 20 歲人口數
+ *Candidate
+ *id: uuid
+ *name: 姓名
+ *image: 圖片網址
+ *party: 政黨
+ *contacts_phone: 電話
+ *contacts_fax: 傳真
+ *contacts_email: email
+ *contacts_address: 服務處住址
+ *links: 相關連結
+ *gender: 性別 (m = 男, f = 女)
+ *birth: 生日
+ *education: 學歷
+ *experience: 經歷
+ *created: 建立時間
+ *modified: 更新時間
+ *platform: 政見
|
||
| 2014-09-21 13:56 | r226 | |
顯示 diff(20 行未修改)
|
||
| 2014-09-21 13:56 – 13:56 | r224 – r225 | |
顯示 diff(16 行未修改)
*http://k.olc.tw/elections/api/candidates/view/53c02641-b430-4dcd-8512-5dffacb5b862
*檢視特定候選人資料
+
+ 欄位說明:
|
||
| 2014-09-20 05:25 – 05:33 | r85 – r223 | |
顯示 diff 選舉黃頁 API (alpha)
+
+ 選舉黃頁基本上是由兩棵 MPTT 樹狀結構所組成, areas 為行政區、 elections 為選舉區,這樣子切割的原因是部份選舉區跟行政區需要額外對應,像是個別議員選區經常會對應到一個以上的行政區,因此切開來處理。 透過 api 取得的資料都會有 rght 與 lft 用在 MPTT 索引的欄位,只要 rght - lft = 1 就表示該節點為樹葉 (leaf node) ,它不會有下一層。
*http://k.olc.tw/elections/api/areas/index/53c01bce-df94-4939-a456-5460acb5b862
- *取得單層行政區資料,後面可以接個別行政區 id 來取得下一層資料
+ *取得單層行政區資料, index/ 後面可以接個別行政區 id 來取得下一層資料
+ *index/ 後面沒有參數會顯示最上層(目前是縣市)
*http://k.olc.tw/elections/api/elections/index/53c0202e-ed38-44bb-8e78-5460acb5b862
- *取得單層選舉區資料,後面可以接個別選舉區 id 來取得下一層資料
+ *取得單層選舉區資料,index/ 後面可以接個別選舉區 id 來取得下一層資料
+ *index/ 後面沒有參數會顯示最上層(目前是九種選舉類型)
*http://k.olc.tw/elections/api/elections/candidates/53d7332e-2dec-4626-b782-1299acb5b862
*取得個別選舉區下所有候選人資料
(6 行未修改)
|
||
| 2014-09-19 17:37 – 17:50 | r3 – r84 | |
顯示 diff- 選舉黃頁 API
+ 選舉黃頁 API (alpha)
- *
+ *http://k.olc.tw/elections/api/areas/index/53c01bce-df94-4939-a456-5460acb5b862
+ *取得單層行政區資料,後面可以接個別行政區 id 來取得下一層資料
+ *http://k.olc.tw/elections/api/elections/index/53c0202e-ed38-44bb-8e78-5460acb5b862
+ *取得單層選舉區資料,後面可以接個別選舉區 id 來取得下一層資料
+ *http://k.olc.tw/elections/api/elections/candidates/53d7332e-2dec-4626-b782-1299acb5b862
+ *取得個別選舉區下所有候選人資料
+ *http://k.olc.tw/elections/api/elections/s/%E5%B9%B3
+ *針對行政區名稱進行搜尋
+ *http://k.olc.tw/elections/api/candidates/s/%E5%B9%B3
+ *針對候選人名稱進行搜尋
+ *http://k.olc.tw/elections/api/candidates/view/53c02641-b430-4dcd-8512-5dffacb5b862
+ *檢視特定候選人資料
|
||
| 2014-09-19 17:37 | r2 | |
顯示 diff(3 行未修改)
|
||
| 2014-09-19 17:37 | r1 | |
顯示 diff 選舉黃頁 API
+
+ *
|
||
| 2014-09-19 17:35 | r0 | |
顯示 diff-
+ 選舉黃頁 API
|
||