HackMD
    • Sharing Link copied
    • /edit
    • View mode
      • Edit mode
      • View mode
      • Book mode
      • Slide mode
      Edit mode View mode Book mode Slide mode
    • Note Permission
    • Read
      • Only me
      • Signed-in users
      • Everyone
      Only me Signed-in users Everyone
    • Write
      • Only me
      • Signed-in users
      • Everyone
      Only me Signed-in users Everyone
    • More (Comment, Invitee)
    • Publishing
    • Commenting Enable
      Disabled Forbidden Owners Signed-in users Everyone
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Invitee
    • No invitee
    • Options
    • Versions
    • Transfer ownership
    • Delete this note
    • Template
    • Save as template
    • Insert from template
    • Export
    • Google Drive Export to Google Drive
    • Gist
    • Import
    • Google Drive Import from Google Drive
    • Gist
    • Clipboard
    • Download
    • Markdown
    • HTML
    • Raw HTML
Menu Sharing Help
Menu
Options
Versions Transfer ownership Delete this note
Export
Google Drive Export to Google Drive Gist
Import
Google Drive Import from Google Drive Gist Clipboard
Download
Markdown HTML Raw HTML
Back
Sharing
Sharing Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
More (Comment, Invitee)
Publishing
More (Comment, Invitee)
Commenting Enable
Disabled Forbidden Owners Signed-in users Everyone
Permission
Owners
  • Forbidden
  • Owners
  • Signed-in users
  • Everyone
Invitee
No invitee
   owned this note    owned this note      
Published Linked with
Like BookmarkBookmarked
Subscribed
  • Any changes
    Be notified of any changes
  • Mention me
    Be notified of mention me
  • Unsubscribe
Subscribe
台灣賄選實價登錄地圖 === ###### tags: `台南小松` 舊版地圖: https://kiang.github.io/bribes_map/ 新資料研究: https://github.com/kiang/bribes_data Howard 完成的前端介面: http://bribes.goodideas-campus.com/ kiang 做的 api : http://bribes.olc.tw/ repo: https://github.com/kiang/bribes_api api 取得任務: http://bribes.olc.tw/issues/task 過去是由 ptt 網友 jaystar0423 所整理, kiang 協助把多個地圖拼在一起方便一次檢視,當時只能人工方式進行各種判決書的檢索,因此沒辦法大規模實做,最近這幾年資料開放了,應該可以振作了(嘆) 司法院開放資料: http://data.judicial.gov.tw/ 問題: 1. 如何找出賄選相關的判決書資料 1. "JTITLE": "選舉罷免法" 2. sample: 201907/臺灣苗栗地方法院刑事/MLDM,108,選訴,5,20190703,1.json ``` <?php $fh = fopen(__DIR__ . '/targets.csv', 'w'); fputcsv($fh, array('file', 'title')); foreach(glob(__DIR__ . '/extract/*/*') AS $host) { if(mb_substr($host, -2, 2, 'utf-8') === '刑事') { foreach(glob($host . '/*.json') AS $jsonFile) { $json = json_decode(file_get_contents($jsonFile)); if(false !== strpos($json->JTITLE, '選')) { $pos = strpos($jsonFile, '/extract/') + 9; fputcsv($fh, array(substr($jsonFile, $pos), $json->JTITLE)); } } } } ``` 2. 初步產出的目標清單(9112 件) https://gist.github.com/kiang/8ef35ea6e2cc2a9815734b482172b55a 3. 例外: 201601/臺灣桃園地方法院刑事/TYDM,104,選易,2,20160120,1.json 1. 這份也有提到賄選金額,但 JTITLE 是 "妨害投票" 2. 找了一下,全國的 "選易" 案件只有 277 件,數量不多 4. 如何從判決書資料找到實際用來賄選的金額與標的 5. (群眾外包)如何讓大家參與資料的審核,配對特定候選人,以及如何找出個別判決書的點位資料,類似 https://campaign-finance.g0v.ctiml.tw/ 1. 地理點位 2. 賄選金額 3. 候選人(不一定要,因為行情地圖應該就可以達到目的) 需要的協助: 1. 大資料處理 - 法院判決書資料檔案共約 34GB ,解壓縮後約 112 GB ,透過程式處理比較吃力,如果有語意分析處理背景或是人工智慧相關領域的朋友協助應該會好很多 2. 對判決資料感興趣 3. 希望幫忙整理資料 4. 視覺設計 補充資訊: * 有"賄"字的案號字,不過 "TPSM,85,台上,386,19960125" 看起來也是賄選相關案件?JCASE 有 "選" 字從資料上看好像是從 2000 年開始,有選字的資料包含民事與刑事,大約 11461 件( https://gist.github.com/kiang/62e14b5b6ab83e882fc07f360d240a6a ) * 選上重訴 * 選上訴 * 選上易 * 選簡上 * 選簡 * 選訴 * 選重訴 * 選易 * 有"上"字的都一定是二審 * `"JID": "TYDM,108,選訴,2,20191007,1"` * 分別為: Court,YearOfTrial,Case,Number,TrialDate,SeriesNumber * Court的部分包含法院別(縮寫3碼)與案件類別(縮寫1碼) 舉例:NTDM * NTD代表南投地方法院,M代表刑事案件。NTDA是南投地院行政案件,NTDV是南投地院民事案件。 * TPS是最高法院,M是刑事案件 相關資訊: ![](https://g0vhackmd.blob.core.windows.net/g0v-hackmd-images/upload_c11bc6dd00c42e9f99adc606de14ad59) ![](https://g0vhackmd.blob.core.windows.net/g0v-hackmd-images/upload_94bcf9c1b241e4da34aa56fb062ee42c) ![](https://g0vhackmd.blob.core.windows.net/g0v-hackmd-images/upload_7d0a64b331429357320c06e39fcf26ee) ![](https://g0vhackmd.blob.core.windows.net/g0v-hackmd-images/upload_f2f24f21861492947c3897c256e9f639) * [廉政](https://www.mjib.gov.tw/FileUploads/eBooks/2728713e8ee64054aa8c80b29425e8b8/Book_file/0a80b4834f2445a0a49a494845a3851f.pdf)101~105年賄選統計,蠻有趣的 相關專案: 1. https://github.com/biglawtw - 過去是透過爬蟲抓取所有判決書資料進行處理,現在網站已經消失,裡面有些判決書處理的程式碼,主要是 javascript / python

Import from clipboard

Advanced permission required

Your current role can only read. Ask the system administrator to acquire write and comment permission.

This team is disabled

Sorry, this team is disabled. You can't edit this note.

This note is locked

Sorry, only owner can edit this note.

Reach the limit

Sorry, you've reached the max length this note can be.
Please reduce the content or divide it to more notes, thank you!

Import from Gist

Import from Snippet

or

Export to Snippet

Are you sure?

Do you really want to delete this note?
All users will lost their connection.

Create a note from template

Create a note from template

Oops...
This template has been removed or transferred.


Upgrade

All
  • All
  • Team
No template.

Create a template


Upgrade

Delete template

Do you really want to delete this template?

This page need refresh

You have an incompatible client version.
Refresh to update.
New version available!
See releases notes here
Refresh to enjoy new features.
Your user state has changed.
Refresh to load new user state.

Sign in

Forgot password

or

Sign in via GitHub

New to HackMD? Sign up

Help

  • English
  • 中文
  • 日本語

Documents

Tutorials

Book Mode Tutorial

Slide Example

YAML Metadata

Resources

Releases

Blog

Policy

Terms

Privacy

Cheatsheet

Syntax Example Reference
# Header Header 基本排版
- Unordered List
  • Unordered List
1. Ordered List
  1. Ordered List
- [ ] Todo List
  • Todo List
> Blockquote
Blockquote
**Bold font** Bold font
*Italics font* Italics font
~~Strikethrough~~ Strikethrough
19^th^ 19th
H~2~O H2O
++Inserted text++ Inserted text
==Marked text== Marked text
[link text](https:// "title") Link
![image alt](https:// "title") Image
`Code` Code 在筆記中貼入程式碼
```javascript
var i = 0;
```
var i = 0;
:smile: :smile: Emoji list
{%youtube youtube_id %} Externals
$L^aT_eX$ LaTeX
:::info
This is a alert area.
:::

This is a alert area.

Versions

Versions

Upgrade now

Version named by    

More Less
  • Edit
  • Delete

Note content is identical to the latest version.
Compare with
    Choose a version
    No search result
    Version not found

Feedback

Submission failed, please try again

Thanks for your support.

On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

Please give us some advice and help us improve HackMD.

 

Thanks for your feedback

Remove version name

Do you want to remove this version name and description?

Transfer ownership

Transfer to
    Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.