项目 / freelawproject/juriscraper
freelawproject/juriscraper
行业推荐
语言 HTML标签 scrapinggovernmentcourtspacer数据更新 2026-11-25 06:49:28 · 仓库 2026-11-24
一段话介绍
An API to scrape American court websites for metadata.
本站整理,非 GitHub 官方 description。
官方 description(GitHub API 原样)An API to scrape American court websites for metadata.
官方快照(gh_history.db,2026-11-25):总榜 未进 Top50 · 日榜 未进 Top50 · 周榜未满 7 天基线(官方不生成) · 月榜暂无官方口径;下方四卡为站内趋势聚合(周卡按上榜次数,非官方 7 日增量窗)。
政务事项办理与一网通办
适配系统:政务服务平台、工作流引擎 · 得分 1.4
以事项流程编排与表单驱动为核心,可支撑跨部门联办与办件全流程跟踪。
更多信息
以下三段按该项目自己的 GitHub README 章节摘录(可合理截断并标明);README 没有对应章节的留空,不编造。
我的用法
该工具可设置环境变量指定日志存放位置,未设置时若默认路径存在则使用默认日志文件。
特点或设计要点
该库负责具体采集逻辑,下载与保存结果由调用方完成。设计目标包括尽量减少重复代码、用 lxml 的 XPath 解析页面、返回网站上已提供的元数据供调用方按需取用,以及不依赖数据库。项目页面见 [free.law 上的介绍](https://free.law/projects/juriscraper)。许可证为 BSD。
星标走势还差一天的数据,明天就能看到曲线
每天 10:30 记一次星标,连续两天后自动生成曲线
GitHub 项目主页介绍
来自 GitHub 仓库 README / 主页介绍正文,原样摘录,共 3,376 字节。
+---------------+---------------------+-------------------+
| |Lint Badge| | |Test Badge| | |Version Badge| |
+---------------+---------------------+-------------------+
.. |Lint Badge| image:: https://github.com/freelawproject/juriscraper/workflows/Lint/badge.svg
.. |Test Badge| image:: https://github.com/freelawproject/juriscraper/workflows/Tests/badge.svg
.. |Version Badge| image:: https://badge.fury.io/py/juriscraper.svg
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 <https://www.courtlistener.com>`__. The code for that
caller can be `found
here <https://github.com/freelawproject/courtlistener/blob/main/cl/scrapers/management/commands/cl_scrape_opinions.py>`__.
There is also a basic sample caller `included in
Juriscraper <https://github.com/freelawproject/juriscraper/blob/main/sample_caller.py>`__
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.11+, 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 <CONTRIBUTING.md>`__
guide for instructions on setting up your environment, running tests, and more.
License
=======
Juriscraper is licensed under the permissive BSD license.
|forthebadge made-with-python|
.. |forthebadge made-with-python| image:: http://ForTheBadge.com/images/badges/made-with-python.svg
:target: https://www.python.org/