What is This?
Juriscraper is a scraper library started many years ago that gathers judicial opinions, oral arguments, and PACER data in the American court system. It is currently able to scrape:
a variety of pages and reports within the PACER system
opinions from all major appellate Federal courts
opinions from all state courts of last resort except for Georgia (typically their “Supreme Court”)
oral arguments from all appellate federal courts that offer them
Juriscraper is part of a two-part system. The second part is your code, which calls Juriscraper. Your code is responsible for calling a scraper, downloading and saving its results. A reference implementation of the caller has been developed and is in use at CourtListener.com. The code for that caller can be found here. There is also a basic sample caller included in Juriscraper that can be used for testing or as a starting point when developing your own.
Some of the design goals for this project are:
extensibility to support video, oral argument audio, etc.
extensibility to support geographies (US, Cuba, Mexico, California)
Mime type identification through magic numbers
Generalized architecture with minimal code repetition
XPath-based scraping powered by lxml’s html parser
return all meta data available on court websites (caller can pick what it needs)
no need for a database
clear log levels (DEBUG, INFO, WARN, CRITICAL)
friendly as possible to court websites
Installation & Dependencies
First step: Install Python 3.10+, then:
Install the dependencies
On Ubuntu based distributions/Debian Linux:
sudo apt-get install libxml2-dev libxslt-dev libyaml-dev
On Arch based distributions:
sudo pacman -S libxml2 libxslt libyaml
On macOS with Homebrew <https://brew.sh>:
brew install libyaml
Then install the code
pip install juriscraper
You can set an environment variable for where you want to stash your logs (this can be skipped, and /var/log/juriscraper/debug.log will be used as the default if it exists on the filesystem):
export JURISCRAPER_LOG=/path/to/your/log.txt
Contributing
We welcome contributions! If you’d like to get involved, please take a look at our CONTRIBUTING.md guide for instructions on setting up your environment, running tests, and more.
License
Juriscraper is licensed under the permissive BSD license.
Metadata
Release files for juriscraper 3.0.44
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| juriscraper-3.0.44.tar.gz | 471.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| juriscraper-3.0.44-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 1.2 MB
Release files / juriscraper-3.0.44.tar.gz
| Download URL | juriscraper-3.0.44.tar.gz |
|---|---|
| Size | 471.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6ac021dabb9f7a03be97bc15086b1138f7d32e6a16c680f5e0cc82a18f753167
|
|
BLAKE2b-256 checksum How to use checksums |
063c12b4d6d1d1aedc021d6e766b3b34918650d93628bb3edcd2de8dc470aa26
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / juriscraper-3.0.44-py3-none-any.whl
| Download URL | juriscraper-3.0.44-py3-none-any.whl |
|---|---|
| Size | 709.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0dc9ce9bc5098937903416c451adeb21934a74b8fd1220b9d4b5b5fa89a3fa46
|
|
BLAKE2b-256 checksum How to use checksums |
ce7a232f9a8a37c0d8fa8f46dbf7a3271d49e36856c6ce45f9d757fce3027a87
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|