Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] #197 SCOTUS scraper #975

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

ralexx
Copy link

@ralexx ralexx commented Mar 31, 2024

From freelawproject/foresight#20 .

Notable

  • Adds pymupdf as a dependency, as suggested.
  • Includes log-then-raise handling for two characteristic host responses ('Access Denied' page and server name resolution error) that appear to be anti-abuse measures.
  • Because of the above, only single-threaded downloading was implemented here.

TODO

  • Docket parser mapping to database structure: maintainer input needed
  • Python 3.8 support if necessary (I used some 3.9+ syntax)
  • Tests for docket parser
  • Tests currently omitted because they would need additional mocking
  • Better handling of the two host responses mentioned above
  • Multithreaded downloading, if desired (implemented locally but not included in this draft)

@CLAassistant
Copy link

CLAassistant commented Mar 31, 2024

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants