2020voting-guide

Month: 2022-11

2022-11-01

allenlinli 00:02:34
請問一下,選舉黃頁有辦法取得單一行政區底下所有候選人資料嗎?
https://g0v.hackpad.tw/-API-alpha-y3IHgVIYYSY
allenlinli 00:19:58
再多問一個笨問題,選舉區和行政區除了在山地區有區分出來外,其他有什麼差別呀?
allenlinli 08:11:44
想問一下 @kiang
我想做一個由行政區開始做索引的列表
但是目前這個 API 會給我 2014 年的
https://elections.olc.tw/api/areas/index/
想問 area 部分的 API 目前都是還沒有更新嗎?
行政區的整理後來就沒有時間好好處理,所以的確只有 2014 比較完整
中選會今年的資料看起來有整理行政區連結,可以試試
https://github.com/kiang/vote2022/tree/master/raw/cec/candidates
allenlinli 2022-11-01 09:04:07
不過想問譬如這一頁是如何顯示出底下的直轄市長候選人的?
https://elections.olc.tw/areas/index/62053f19-bd98-45e2-9f71-1619acb5b862
資料庫有資料, API 是有地圖 geojson 格式才提供
或是需要的話可以開 pr 提供你需要的介面
https://github.com/kiang/elections
allenlinli 2022-11-01 09:10:33
我的意思是說譬如這個 API 底下並沒有提供新北市直轄市長的資料
https://elections.olc.tw/api/areas/index/62053f19-bd98-45e2-9f71-1619acb5b862
你是另外改呼叫一隻 API 取得直轄市長嗎?
(譬如從選舉區的找新北市直轄市長 API 來取得嗎?)
行政區要先找到對應的選舉區,選舉區才能找到候選人資料
allenlinli 2022-11-01 09:34:34
了解了,謝謝通話回答!:)
allenlinli 08:11:44
想問一下 @kiang
我想做一個由行政區開始做索引的列表
但是目前這個 API 會給我 2014 年的
https://elections.olc.tw/api/areas/index/
想問 area 部分的 API 目前都是還沒有更新嗎?
行政區的整理後來就沒有時間好好處理,所以的確只有 2014 比較完整
中選會今年的資料看起來有整理行政區連結,可以試試
https://github.com/kiang/vote2022/tree/master/raw/cec/candidates
allenlinli 2022-11-01 09:04:07
不過想問譬如這一頁是如何顯示出底下的直轄市長候選人的?
https://elections.olc.tw/areas/index/62053f19-bd98-45e2-9f71-1619acb5b862
資料庫有資料, API 是有地圖 geojson 格式才提供
或是需要的話可以開 pr 提供你需要的介面
https://github.com/kiang/elections
allenlinli 2022-11-01 09:10:33
我的意思是說譬如這個 API 底下並沒有提供新北市直轄市長的資料
https://elections.olc.tw/api/areas/index/62053f19-bd98-45e2-9f71-1619acb5b862
你是另外改呼叫一隻 API 取得直轄市長嗎?
(譬如從選舉區的找新北市直轄市長 API 來取得嗎?)
行政區要先找到對應的選舉區,選舉區才能找到候選人資料
allenlinli 2022-11-01 09:34:34
了解了,謝謝通話回答!:)
kiang 09:49:28
後來發現是程式的邏輯有問題,表示你是第一個用這個 API 的人吧 XD
kiang 09:49:28
後來發現是程式的邏輯有問題,表示你是第一個用這個 API 的人吧 XD
😁 1
ddio 16:18:46
也可能是第一個發現問題後還沒有放棄的人 XD
💯 2
ddio 16:18:46
也可能是第一個發現問題後還沒有放棄的人 XD

2022-11-06

kiang 00:39:15
另外有兩百多筆資料沒辦法自動用姓名完成配對,因為登記資料跟公布資料不一樣,主要是原住民與罕見字

https://github.com/kiang/vote2022/blob/master/reports/links_cec_missing.jsonl

我大概沒有心力去逐一手動修正,就看有沒有人感興趣

<https://github.com/kiang/vote2022/blob/master/reports/links_cec_missing.jsonl | links_cec_missing.jsonl>

``` {"area":"臺北市第7選舉區","politics":"","img":"\/json\/portrait\/cand\/T\/63000\/63000000000071.jpg","gender":"女","victor":false,"name":"吳郁瑾 Sawmah Kawlo","birth":"0730406","type":"議員","party":"民主進步黨","candNo":1,"home":"臺北市"} {"area":"臺北市第8選舉區","politics":"Mind 心繫原權:提高原住民族租屋補貼及優先入住社會社宅\n1針對臺北市經濟弱勢、新婚家庭、剛踏入社會的原住民族,提供更高的租屋補貼,讓租屋族人可以得到最實質的幫助。\n2優先讓原住民族入住社會住宅,讓族人能夠安心居住,提升生活品質\n\nUnity 團結族群: 設置原住民族聚會所並營造文化學習環境\n1獎勵北市原青組織團隊,返回部落參與歲時祭儀,帶領青年走回自己的路。\n2完成北市原住民族歷史研究,讓新生代原民更深刻體認上一代的族群故事。\n\nLove 珍愛文化: 推動原住民族語言振興中長期方案\n1推動原住民族語言保母、族語學習家庭,增設沉浸式族語幼兒園及耆幼共學,建構原住民族語言生活化之多元傳習管道。\n2.增設公共場所專任原住民族語言推廣人員。增加公共媒體製播族語言節目。\n3.強化都會區原住民族語言的「保存」與「傳承」的各項復振工作。\n\nActive 活力台北:厚植原住民族就業力並建立產業拓銷據點\n1成立臺北市原住民族青年諮詢委員會,讓年輕族人透過政策為族群發聲。\n2加強就業相關措施,並連結中央資源設置拓銷據點,讓族人產業成為亮點。\n3整合原住民族企業,以集體行動打造品牌躍上國際,開拓民族產業新契機。\n\nService 服務原民:普設原住民族文化健康站\n1以「族人照顧族人」、「老幼共學文化」之照護模式,鼓勵第二代以後的都會區青年,照護長者,提供就業機會。\n2提供幼兒、青年及照顧服務員學習族語和傳統文化的重要據點。","img":"\/json\/portrait\/cand\/T\/63000\/63000000000082.jpg","gender":"女","victor":false,"name":"陳慧君 Mulas.Ismahasan","birth":"0740122","type":"議員","party":"民主進步黨","candNo":2,"home":"高雄市"} {"area":"臺北市第8選舉區","politics":"(一)給予各族群之文化祭典及召集各族群凝聚力成為大祭典歲時祭儀,可聘各族長老協助完成傳統文化。\n(二)遴選十二行政區族群頭目且成立各行政區協進會。\n(三)增加國公宅原住民租屋住宅20%。\n(四)補助大專院校住宿之費用。\n(五)與平原共組原民議會落實地方照護,公平、公正落實福利政策。\n(六)爭取補助原住民族青年課業補習費用。\n(七)增加原住民中小學舉辦文化之旅,促進文化深根。","img":"\/json\/portrait\/cand\/T\/63000\/63000000000083.jpg","gender":"女","victor":false,"name":"高為人Sayun Watan","birth":"0800221","type":"議員","party":"無","candNo":3,"home":"基隆市"} {"area":"新北市第3選舉區","politics":"","img":"\/json\/portrait\/cand\/T\/65000\/650000000000317.jpg","gender":"男","victor":false,"name":"陳@2F97F@吉","birth":"0571019","type":"議員","party":"無","candNo":17,"home":"南投縣"} {"area":"新北市第5選舉區","politics":"","img":"\/json\/portrait\/cand\/T\/65000\/65000000000056.jpg","gender":"女","victor":false,"name":"戴瑋姗","birth":"0790123","type":"議員","party":"民主進步黨","candNo":6,"home":"高雄市"} {"area":"新北市第12選舉區","politics":"","img":"\/json\/portrait\/cand\/T\/65000\/65000000000121.jpg","gender":"男","victor":false,"name":"達佶祐.卡造Takiyo.Kacaw","birth":"0580207","type":"議員","party":"台灣民眾黨","candNo":1,"home":"花蓮縣"} {"area":"新北市第12選舉區","politics":"","img":"\/json\/portrait\/cand\/T\/65000\/65000000000122.jpg","gender":"男","victor":false,"name":"吳國譽La.Is.Amid","birth":"0700914","type":"議員","party":"中國國民黨","candNo":2,"home":"臺北市"} {"area":"新北市第12選舉區","politics":"","img":"\/json\/portrait\/cand\/T\/65000\/65000000000123.jpg","gender":"女","victor":false,"name":"宋雨蓁Nikar.Falong","birth":"0700717","type":"議員","party":"無","candNo":3,"home":"新北市"} {"area":"新北市第12選舉區","politics":"","img":"\/json\/portrait\/cand\/T\/65000\/65000000000124.jpg","gender":"女","victor":false,"name":"藞妏.尼卡兒","birth":"0551110","type":"議員","party":"無","candNo":4,"home":"臺東縣"} {"area":"新北市第12選舉區","politics":"","img":"\/json\/portrait\/cand\/T\/65000\/65000000000126.jpg","gender":"男","victor":false,"name":"蘇錦雄Paylang.Caya","birth":"0530222","type":"議員","party":"民主進步黨","candNo":6,"home":"臺東縣"} {"area":"新北市第13選舉區","politics":"","img":"\/json\/portrait\/cand\/T\/65000\/65000000000132.jpg","gender":"男","victor":false,"name":"馬見Lahuy.Ipin","birth":"0810225","type":"議員","party":"無黨團結聯盟","candNo":2,"home":"臺北市"} {"area":"桃園市第13選舉區","politics":"","img":"\/json\/portrait\/cand\/T\/68000\/68000000000136.jpg","gender":"女","victor":false,"name":"陳姿伶 Amuy.Muwakay","birth":"0490115","type":"議員","party":"中國國民黨","candNo":6,"home":"臺東縣"} {"area":"桃園市第14選舉區","politics":"","img":"\/json\/portrait\/cand\/T\/68000\/68000000000141.jpg","gender":"男","victor":false,"name":"歐蜜.偉浪","birth":"0521010","type":"議員","party":"無","candNo":1,"home":"桃園市"} {"area":"臺中市第2選舉區","politics":"","img":"\/json\/portrait\/cand\/T\/66000\/66000000000029.jpg","gender":"男","victor":false,"name":"陳奇勲","birth":"0410801","type":"議員","party":"無","candNo":9,"home":"臺中市"} {"area":"臺南市第7選舉區","politics":"","img":"\/json\/portrait\/cand\/T\/67000\/67000000000079.jpg","gender":"男","victor":false,"name":"黄肇輝","birth":"0630929","type":"議員","party":"民主進步黨","candNo":9,"home":"臺南市"} {"area":"臺南市第12選舉區","politics":"","img":"\/json\/portrait\/cand\/T\/67000\/67000000000122.jpg","gender":"男","victor":false,"name":"穎艾達利 Ingay Tali","birth":"0620306","type":"議員","party":"無","candNo":2,"home":"花蓮縣"} {"area":"臺南市第13選舉區","politics":"","img":"\/json\/portrait\/cand\/T\/67000\/67000000000133.jpg","gender":"男","victor":false,"name":"施余興望 Tjakumay Tagaw","birth":"0570303","type":"議員","party":"無","candNo":3,"home":"屏東縣"} {"area":"高雄市第12選舉區","politics":"","img":"\/json\/portrait\/cand\/T\/64000\/64000000000123.jpg","gender":"男","victor":false,"name":"余葆祈 Fo tol Ki la","birth":"0651112","type":"議員","party":"無","candNo":3,"home":"高雄市"} {"area":"高雄市第14選舉區","politics":"","img":"\/json\/portrait\/cand\/T\/64000\/64000000000141.jpg","gender":"男","victor":false,"name":"高忠德 Takiludun.Anu","birth":"0610218","type":"議員","party":"無","candNo":1,"home":"高雄市"} {"area":"高雄市第15選舉區","politics":"","img":"\/json\/portrait\/cand\/T\/64000\/64000000000151.jpg","gender":"男","victor":false,"name":"范織欽 Pasulang.Tomatalate","birth":"0460729","type":"議員","party":"無","candNo":1,"home":"高雄市"} {"politics":"","img":"\/json\/portrait\/cand\/C1\/10005\/10005000000002.jpg","gender":"男","victor":false,"name":"謝福弘","birth":"0450910","type":"縣市長","party":"中國國民黨","candNo":2,"home":"苗栗縣"} {"politics":"","img":"\/json\/portrait\/cand\/C1\/10002\/10002000000005.jpg","gender":"男","victor":false,"name":"江@2F97F@淵","birth":"0581023","type":"縣市長","party":"民主進步黨","candNo":5,"home":"宜蘭縣"} {"politics":"","img":"\/json\/portrait\/cand\/C1\/10015\/10015000000003.jpg","gender":"女","victor":false,"name":"谷辣斯.尤達卡 Kolas Yotaka","birth":"0630317","type":"縣市長","party":"民主進步黨","candNo":3,"home":"新竹市"} {"area":"新竹縣第11選舉區","politics":"","img":"\/json\/portrait\/cand\/T\/10004\/10004000000112.jpg","gender":"女","victor":false,"name":"林秉君 kaying.kuying.kalang","birth":"0730326","type":"議員","party":"中國國民黨","candNo":2,"home":"新竹市"} {"area":"苗栗縣第7選舉區","politics":"","img":"\/json\/portrait\/cand\/T\/10005\/10005000000071.jpg","gender":"男","victor":false,"name":"朱仲一 Kalih·Tahes·Didiyun","birth":"0780927","type":"議員","party":"無","candNo":1,"home":"臺中市"} {"area":"苗栗縣第7選舉區","politics":"","img":"\/json\/portrait\/cand\/T\/10005\/10005000000072.jpg","gender":"男","victor":false,"name":"楊文昌 Baiho·Watan","birth":"0490515","type":"議員","party":"無","candNo":2,"home":"苗栗縣"} {"area":"苗栗縣第8選舉區","politics":"","img":"\/json\/portrait\/cand\/T\/10005\/10005000000081.jpg","gender":"女","victor":false,"name":"劉美蘭 Iwan·Sigiy","birth":"0511023","type":"議員","party":"中國國民黨","candNo":1,"home":"苗栗縣"} {"area":"苗栗縣第8選舉區","politics":"","img":"\/json\/portrait\/cand\/T\/10005\/10005000000082.jpg","gender":"女","victor":false,"name":"黃月娥 Yuma’Baysu’","birth":"0460708","type":"議員","party":"無","candNo":2,"home":"苗栗縣"} {"area":"南投縣第6選舉區","politics":"","img":"\/json\/portrait\/cand\/T\/10008\/10008000000061.jpg","gender":"男","victor":false,"name":"石慶龍Rungquan.Lhkatafatu","birth":"0441215","type":"議員","party":"無","candNo":1,"home":"南投縣"} {"area":"南投縣第7選舉區","politics":"","img":"\/json\/portrait\/cand\/T\/10008\/10008000000072.jpg","gender":"男","victor":false,"name":"全文才Balan.Soqluman","birth":"0520325","type":"議員","party":"中國國民黨","candNo":2,"home":"南投縣"} {"area":"南投縣第8選舉區","politics":"","img":"\/json\/portrait\/cand\/T\/10008\/10008000000082.jpg","gender":"女","victor":false,"name":"林婷立Ali.Walis","birth":"0680813","type":"議員","party":"中國國民黨","candNo":2,"home":"南投縣"} {"area":"屏東縣第13選舉區","politics":"","img":"\/json\/portrait\/cand\/T\/10013\/10013000000131.jpg","gender":"男","victor":false,"name":"柯自強 Langalang.Palivulj","birth":"0580722","type":"議員","party":"無","candNo":1,"home":"屏東縣"} {"area":"屏東縣第14選舉區","politics":"","img":"\/json\/portrait\/cand\/T\/10013\/10013000000142.jpg","gender":"男","victor":false,"name":"李紀財 Mulaneng Paliuliu","birth":"0450820","type":"議員","party":"無","candNo":2,"home":"屏東縣"} {"area":"宜蘭縣第11選舉區","politics":"","img":"\/json\/portrait\/cand\/T\/10002\/10002000…

kiang 00:39:15
另外有兩百多筆資料沒辦法自動用姓名完成配對,因為登記資料跟公布資料不一樣,主要是原住民與罕見字

https://github.com/kiang/vote2022/blob/master/reports/links_cec_missing.jsonl

我大概沒有心力去逐一手動修正,就看有沒有人感興趣

2022-11-14

lafin 23:22:12
@lafin has joined the channel

2022-11-16

2022-11-25

菘菘 18:42:53
@rrt467778 has joined the channel
菘菘 18:43:05
@rrt467778 has left the channel

2022-11-27

Linc 10:42:30
@turtlelin1210 has joined the channel