This is a scraper that runs on Morph. To get started see the documentation

HK Court Lists Archive

Project Owner

This repositry is a prototype for the one of the projects pitched in the first g0vhk.io Hackathon on 2018-06-23 in Hong Kong. The main document written by project owner, Selina, listed the details in this Hackpad. Please go and read.

Description

  • This is very preliminary prototype. It currently tackles only 1 out of 29 court case hearing lists.
  • morph.io supports scraping the sites once per day, and provide download CSV and SQLite for further storage

Relevent links: https://www.judiciary.hk/tc/crtlists/dailycaulist.htm

To Contribute

  1. Extend and modify the scrape.py to tackle all 29 courts case hearing list
    • scraper.py is current written for running on Python 2.7.14 due to the limitation of morph.io and Python 2.7 is going to be deprecated in 2020.
    • the HTML table format varies across different courts:

| code | cate | subcate | url | |--------|------------------------------|---------------------------------|-----------------------------------------------------------------| | | | | https://www.judiciary.hk/tc/crtlists/dailycaulist.htm | | cfa | 終審法院 | | http://www.judiciary.hk/en/crtlists/lists/15062018/cfa.html | | cacfi | 高等法院(上訴法庭及原訟法庭) | | http://www.judiciary.hk/en/crtlists/lists/15062018/cacfi.html | | hcmc | 高等法院(聆案官聆訊案件表) | | http://www.judiciary.hk/en/crtlists/lists/15062018/hcmc.html | | mcl | 高等法院(限額聆訊表) | 三分鐘內庭聆訊表 | http://www.judiciary.hk/en/crtlists/lists/15062018/mcl.html | | bp | 高等法院(限額聆訊表) | 破產呈請 | http://www.judiciary.hk/en/crtlists/lists/15062018/bp.html | | clpi | 高等法院(限額聆訊表) | 內庭聆訊表 (人身傷亡案件) | http://www.judiciary.hk/en/crtlists/lists/15062018/clpi.html | | clcmc | 高等法院(限額聆訊表) | 核對列表聆訊 / 案件管理會議 | http://www.judiciary.hk/en/crtlists/lists/15062018/clcmc.html | | crhpi | 高等法院(限額聆訊表) | 核對列表審核聆訊 (人身傷亡案件) | http://www.judiciary.hk/en/crtlists/lists/15062018/crhpi.html | | cwup | 高等法院(限額聆訊表) | 公司清盤呈請 | http://www.judiciary.hk/en/crtlists/lists/15062018/cwup.html | | mia | 高等法院(限額聆訊表) | 有關無力償還的雜項申請 | http://www.judiciary.hk/en/crtlists/lists/15062018/mia.html | | otd | 高等法院(限額聆訊表) | 反對自動解除破產 | http://www.judiciary.hk/en/crtlists/lists/15062018/otd.html | | o14 | 高等法院(限額聆訊表) | 簡易判決 | http://www.judiciary.hk/en/crtlists/lists/15062018/o14.html | | ct | 競爭事務審裁處 | | http://www.judiciary.hk/en/crtlists/lists/15062018/ct.html | | lands | 土地審裁處 | | http://www.judiciary.hk/en/crtlists/lists/15062018/lands.html | | dc | 區域法院 | | http://www.judiciary.hk/en/crtlists/lists/15062018/dc.html | | dcmc | 區域法院(聆案官聆訊案件表) | | http://www.judiciary.hk/en/crtlists/lists/15062018/dcmc.html | | fmc | 家事法庭 | | http://www.judiciary.hk/en/crtlists/lists/15062018/fmc.html | | etnmag | 東區裁判法院 | | http://www.judiciary.hk/en/crtlists/lists/15062018/etnmag.html | | kcmag | 九龍城裁判法院 | | http://www.judiciary.hk/en/crtlists/lists/15062018/kcmag.html | | ktmag | 觀塘裁判法院 | | http://www.judiciary.hk/en/crtlists/lists/15062018/ktmag.html | | wkmag | 西九龍裁判法院 | | http://www.judiciary.hk/en/crtlists/lists/15062018/wkmag.html | | stmag | 沙田裁判法院 | | http://www.judiciary.hk/en/crtlists/lists/15062018/stmag.html | | flmag | 粉嶺裁判法院 | | http://www.judiciary.hk/en/crtlists/lists/15062018/flmag.html | | tmmag | 屯門裁判法院 | | http://www.judiciary.hk/en/crtlists/lists/15062018/tmmag.html | | allmag | 所有裁判法院 | | http://www.judiciary.hk/en/crtlists/lists/15062018/allmag.html | | crc | 死因裁判法庭 | | http://www.judiciary.hk/en/crtlists/lists/15062018/crc.html | | lt | 勞資審裁處 | | http://www.judiciary.hk/en/crtlists/lists/15062018/lt.html | | smt | 小額錢債審裁處 | | http://www.judiciary.hk/en/crtlists/lists/15062018/smt.html | | oat | 淫褻物品審裁處 | | http://www.judiciary.hk/en/crtlists/lists/15062018/oat.html |

  1. Setup to permanent Database hosting server

    • Storing everyday information is essential for further analysis.
    • Cost? Storage? Availability? (Amazon Web Service? Heroku? Google Cloud Platform?)
  2. Front-end User Interface

    • Required to open to public users to access the information.
  3. Legal Issues

    • This project might cause legal issue related to piracy. Legal advises are appreciated
    • Could that be granted excemptions from particular aspect, such as research domain?
    • There are similar cases related:
      • http://www.scmp.com/news/hong-kong/article/1296390/smartphone-app-infringes-upon-peoples-privacy-says-commission
  4. Financial Issues

    • For sustainablilty, the running cost should be covered.
    • Possible Source:
      • Reseach fund?
      • Charge the users? (this reduces Openess of data)
      • Donation / Crowd-funding?
      • ...
  5. ...etc

Contributors oktak

Last run failed with status code 255.

Console output of last run

Injecting configuration and compiling... [1G [1G-----> Python app detected [1G-----> Installing python-2.7.14 [1G ! Requested runtime (python-2.7.14) is not available for this stack (cedar-14). [1G ! Aborting. More info: https://devcenter.heroku.com/articles/python-support

Data

Downloaded 38 times by oktak hksoftmedia gemscng ZZongxueyan dave2mustaine fwfsynchron howawong hushinghai calendarw billyauhk

To download data sign in with GitHub

Download table (as CSV) Download SQLite database (97.8 MB) Use the API

rows 10 / 199914

id offencenature caseno representation court time parties judge defendantrespondent offencesnature allmag hearing magistrate
20180716_dc_001
宣布決定 Handing down decision
雜項案件 DCMP 3241/2014
張達成葉祺智律師事務所 Cheung & Yip 鄺偉全律師行 Paul Kwong & Co.
第 5 庭 2 字樓 Court No.5 (2/F)
下午 02:30 pm 內庭聆訊 ( 公開 ) Chambers Hearing (Open to Public)
原告人 Plaintiff(s): THE INCORPORATED OWNERS OF GARDEN VISTA AND 被告人 Defendant(s): CHEN JIN RU CATHERINE
梁國安 法官 H.H. Judge Harold Leong
20180716_dc_002
宣布決定理由 Handing down reasons for decision
民事訴訟 DCCJ 4575/2016
梁堅律師行 Leung Kin & Co. 無律師代表 In Person
下午 03:00 pm 內庭聆訊 ( 公開 ) Chambers Hearing (Open to Public)
原告人 Plaintiff(s): WONG TUNG WO ( 黃同和 ) AND 被告人 Defendant(s): HUI SHUK KAU ( 許淑逑 )
20180716_dc_004
審訊 ( 債項 ) Trial (Debt)
民事訴訟 DCCJ 4860/2015 [8/8]#
張偉聰律師事務所 Humphrey & Associates 曾韻儀 , 陳立德律師事務所 Marie Tsang, Dustin Chan & Co.
第 6 庭 2 字樓 Court No.6 (2/F)
上午 09:30 am 法庭聆訊 Open Court
原告人 Plaintiff(s): 莫漢建 (MOK HON KIN PATRICK) AND 被告人 Defendant(s): C3S FAR EAST LIMITED
徐韻華 法官 H.H. Judge Winnie Tsui
20180716_dc_006
同意傳票 Consent Summons
傷亡訴訟 DCPI 1016/2014
韓潤燊律師樓 Hon & Co. 蕭一峰律師行 Anthony Siu & Co.
第 7 庭 2 字樓 Court No.7 (2/F)
上午 09:30 am 內庭聆訊 ( 非公開 )* Chambers Hearing (Not Open to Public)*
原告人 Plaintiff(s): NG PUI KI, a minor suing by her father and next friend NG<br> WAI NGAI AND 被告人 Defendant(s): LEE VIVIAN
廖文健 法官 H.H. Judge MK Liu
20180716_dc_007
審訊 ( 人身傷亡訴訟 ) Trial (Personal Injuries Action)
傷亡訴訟 DCPI 1016/2014 [1/2]#
韓潤燊律師樓 Hon & Co. 蕭一峰律師行 Anthony Siu & Co.
上午 09:30 am 法庭聆訊 Open Court
原告人 Plaintiff(s): NG PUI KI, a minor suing by her father and next friend NG<br> WAI NGAI AND 被告人 Defendant(s): LEE VIVIAN
20180716_dc_009
首次聆訊 First Hearing 傳票 ( 寬延期 限 ) Summons (For time)
平等機會訴訟 DCEO 11/2018
平等機會委員會 Equal Opportunities Commission 余劍鋒 . 孫波 . 丘志強 . 麥言之律 師 行 Yu Sun Yau Mak & Lawyers
第 8 庭 2 字樓 Court No.8 (2/F)
上午 09:30 am 內庭聆訊 ( 公開 ) Chambers Hearing (Open to Public)
申索 人 Claimant(s): A AND 答 辯 人 Respondent(s): 林守光
李樹旭 法官 H.H. Judge Andrew Li
20180716_dc_011
有意圖而傷人 Wounding with intent
刑事案件 DCCC 197/2018 [1/6]#
律政司 Department of Justice 江得源律師行 Francis Kong & Co.
第 21 庭 7 字樓 Court No.21 (7/F)
上午 09:30 am 法庭聆訊 Open Court
HKSAR ( 香港特別行政區 ) v. A1:TONG KWOK HO ( 唐國浩 ) A2:CHUNG SZE WING KATHLEEN ( 鍾思穎 )
張潔宜 區域法院 暫委法官 Deputy District Judge Kathie Cheung
20180716_dc_013
串謀向代理人提供利益 Conspiracy to offer advantages to an agent
刑事案件 DCCC 1093/2017 [6/10]#
律政司 Department of Justice 郭匡義律師行 Jesse H.Y. Kwok & Co.
第 22 庭 7 字樓 Court No.22 (7/F)
上午 10:30 am 法庭聆訊 Open Court
HKSAR ( 香港特別行政區 ) v. TSOI LAI NGAN ( 蔡禮雁 )
李慶年 法官 H.H. Judge Clement Lee
20180716_dc_015
意圖搶劫而襲擊他人 Assault with intent to rob
刑事案件 DCCC 896/2017 [1/5]#
律政司 Department of Justice 何傳經律師事務所 C.K. Charles Ho & Co 陳國雄律師事務所 Godwin Chan & Co 梁鄧蔡律師事務所 Pansy Leung Tang & Chua 何和禮律師行 Howell & Co.
第 23 庭 7 字樓 Court No.23 (7/F)
上午 09:30 am 法庭聆訊 Open Court
HKSAR ( 香港特別行政區 ) v. A1:TONG MAN FUNG ( 湯文豐 ) A2:BABAR A3:LAI YAU YAM ( 黎佑蔭 ) A4:CHAN CHUN YIN ( 陳晉賢 )
蘇文隆 區域法院 暫委法官 Deputy District Judge Don So
20180716_dc_017
企圖以欺騙手段取得財產 Attempting to obtain property by deception
刑事案件 DCCC 995/2017 [1/3]#
律政司 Department of Justice Foo, Leung & Yeung
第 24 庭 8 字樓 Court No.24 (8/F)
上午 09:30 am 法庭聆訊 Open Court
HKSAR ( 香港特別行政區 ) v. A1:CHAN SIN CHI SUZUKI ( 陳善慈 )
彭中屏 法官 H.H. Judge C.P. Pang

Statistics

Average successful run time: 2 minutes

Total run time: 1 day

Total cpu time used: 37 minutes

Total disk space used: 104 MB

History

  • Manually ran revision b5cb0aab and failed .
    nothing changed in the database
  • Manually ran and failed .
  • Manually ran and failed .
  • Auto ran and failed .
  • Auto ran and failed .
  • ...
  • Created on morph.io

Show complete history

Scraper code

Python

daily_caulist / scraper.py