Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/plotdb/election-tw-2020
https://github.com/plotdb/election-tw-2020
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/plotdb/election-tw-2020
- Owner: plotdb
- Created: 2020-01-13T11:53:24.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-10T14:43:31.000Z (about 2 years ago)
- Last Synced: 2023-08-24T18:37:40.680Z (over 1 year ago)
- Language: JavaScript
- Size: 5.52 MB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# election-2020
cec crawler for 2020 election and visualization
# Usage
利用 tool/ 下的 livecsript 來撈取中選會有關 2020 選舉的資料 ( 不包含分區立委 )
* basic-stat.ls
- 基本統計 ( 投票權人口數, 投票人數, 有效票數 )
* dominant-party.ls
- 相對最支持 / 最不支持政黨計算.
* fetch-town-code.ls
- 利用 town.topo.json 轉出鄉鎮代碼, 用於爬取網頁
* party-president-diff.ls
- 計算政黨與總統票的差異
* party.ls
- 政黨票資訊. 從線上爬取
* president.ls
- 總統票資訊. 從線上爬取預覽圖表:
```
npm start
```然後開啟 http://localhsot:3000/
# License
MIT