Skip to main content

ecourts is a information retrieval tool for Indian High Courts.

Project description

ecourts-scraper Coverage Status PyPI - Version GitHub Tag GitHub Actions Workflow Status docs docs

This is a Python package to help scrape information from the ECourts Service. This is primarily meant for journalists, and data researchers who need bulk access to the ECourts website to get orders, judgements, or lists of cases that match their criteria.

The final goal is to cover all services under the ecourts.gov.in domain, but it currently supports a few services covered at https://hcservices.ecourts.gov.in/ecourtindiaHC/.

It covers all the High Courts and their various benches.

Type of Query Supported Inputs
Search for cases by Case Number 🚧WIP Case Type, Case Number, Year
Search for cases by FIR Number 🚧WIP Police Station, FIR Number†, Year†, Case Status (Pending/Disposed/Both)†
Search for cases by Party Name 🔜Planned Petitioner/Respondent Name, Year†, Case Status (Pending/Disposed/Both)†
Search for cases by Advocate Name 🚫No
Search for cases by Filing Number 🚧WIP Filing Number, Year
Search for cases by Act 🚫No NA
Search for cases by Case Type 🚧WIP Case Type, Year†, Pending/Disposed
Search for Case Orders/Judgement by Case Number 🚧WIP Case Type, Case Number, Year
Search for Case Orders/Judgement by Filling Number 🚧WIP Filing Number, Year
Search for Case Orders/Judgement by Judge Wise 🚫No
Search for Case Orders/Judgement by Party Name 🔜Planned Petitioner/Respondent Name, Year
Search for Case Orders/Judgement by Order Date ✅Yes Date
Get Cause List ✅Yes Date

† - Optional

Case Types

Each of the individual courts use their own numbering system for various case-types. So the same type of case might have different ID depending on the court. This can even vary between various benches of the same High Court. For example, HCB (Habeas Corpus Petition) is numbered the following different ways across various courts (not exhaustive):

Court ID
Madras High Court - Principal Bench 22
Madras High Court - Madurai Bench 164
High Court of Jammu and Kashmir - Jammu Wing 17
High Court of Jammu and Kashmir - Srinagar Wing 171

As such, before doing any kind of work that relies on case type (such as fetching case details, or orders by case type) - you must get the relevant case type idenfiers. You can run:

ecourts get-case-type --state-code SC [--court-code CC] to get the case type identifiers for a particular court. If the state-code/court-code identifiers are not provided, the case types will be fetched for all known courts. A list of all known courts is available at courts.csv published as part of the source code.

Types

The primary two classes that most users will deal with are Court, and ECourt. A court is one of the high court benches covered at https://hcservices.ecourts.gov.in/ecourtindiaHC/, and an ECourt is the primary class that deals with the website.

Other entities involved are more legal in nature:

Documentation

Guiding Principles

  • Make it easy to fetch case information.
  • Store information in accessible formats, for easy retrieval and querying.
  • Use standard identifiers, such as ISO-3166 for state codes.
  • Be nice to the ecourts website. Retry failed requests, but do not hammer the site. In case of 5xx errors, wait for a while before retrying.

LICENSE

Licensed under GPL3-or-later. If you run this code, you are responsible for the legal implications of the same. The scraper is intentionally single-threaded, and does not offer any parallelism. This is to avoid overloading the ecourts website servers, which are already quite slow. Please note sections 15-16 of the LICENSE, which are summarized here:

There is no warranty for the program, to the extent permitted by
applicable law. In no event unless required by applicable law or agreed to in
writing will any copyright holder, or any other party who modifies and/or
conveys the program as permitted above, be liable to you for damages,
including any general, special, incidental or consequential damages arising
out of the use or inability to use the program.

As part of GPL3 obligations:

You may copy, distribute and modify the software as long as you track changes/dates in source files. Any modifications to this code must also be made available under the GPL along with build & install instructions.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ecourts-0.0.2.tar.gz (84.2 kB view details)

Uploaded Source

Built Distribution

ecourts-0.0.2-py3-none-any.whl (31.4 kB view details)

Uploaded Python 3

File details

Details for the file ecourts-0.0.2.tar.gz.

File metadata

  • Download URL: ecourts-0.0.2.tar.gz
  • Upload date:
  • Size: 84.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for ecourts-0.0.2.tar.gz
Algorithm Hash digest
SHA256 c6887abe05c262b55b2736e21da20d2b0c067c4ff9129ed193443f4136f75c11
MD5 7a209dccc9070ebb16a0fc2142ca2d7e
BLAKE2b-256 b14dd5d37f6e7804c16ae5e4bde0703b90ac30fc1bd2ba5cc076c82ff8eca140

See more details on using hashes here.

File details

Details for the file ecourts-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: ecourts-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 31.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for ecourts-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 28149fa97f6d8633fbfd968a6f173e83ca3bc96c7d1f0b184e3b27b75164ee06
MD5 3d7e10c8875ea1cfab9e118516f5a9f5
BLAKE2b-256 6caa5e32ba20a175f0bb8433be24e5596287abfbce7ae11fbf8f6cdfa8143c0f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page