Skip to content

Web Scraping Putusan di Web Mahkamah Agung Indonesia

Notifications You must be signed in to change notification settings

okkymabruri/putusan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Putusan Mahkamah Agung / Supreme Court Data Scraper

This code is used for scraping data on the website: https://putusan3.mahkamahagung.go.id/search.html

Feel free to copy/modify.

scraping1

scraping2

Usage

usage: putusan-ma.py [-h] [-k KEYWORD] [-u URL] [-sd] [-dp]

Putusan Mahkamah Agung Scraper

optional arguments:
  -h, --help            show this help message and exit
  -k KEYWORD, --keyword KEYWORD
                        keyword for the Supreme Court
  -u URL, --url URL     specify url for the Supreme Court example: https://putusan3.mahkamahagung.go.id/search.html?cat=98821d8a4bc63aff3a81f66c37934f56
  -sd, --sortdate       (optional) scraping from newest putusan. Default False
  -dp, --downloadpdf    (optional) download pdf. Default False

How to use

git clone https://github.com/okkymabruri/putusan-mahkamahagung
cd putusan-mahkamahagung/
pip install -r requirements.txt
python putusan-ma.py -k "korupsi"

Tested on Python 3.9.13 and Ubuntu 22.04