Supreme Court Scraper
Scrapes case data from the Israeli Supreme Court website (elyon2.court.gov.il) and exports it to CSV files.
What It Does
Iterates through Supreme Court case records by year and case number, extracting structured data from multiple sections:
- General Information — case details, dates, status
- Parties — petitioners and respondents
- Lower Courts — related cases in lower instances
- Discussions — hearing dates and details
- Events — case timeline events
- Confirmations — court decisions and confirmations
- Requests — motions filed in the case
Each section is exported as a separate CSV file.
Usage
pip install requests beautifulsoup4
python main.py
Configure the year range and case range at the top of main.py:
s_year = 2016
e_year = 2022
s_case = 1
e_case = 20
Output
Generates CSV files named by section (e.g., general_information.csv, parties.csv, discussions.csv).
Requirements
- Python 3
- requests
- beautifulsoup4