Skip to content

fix(us_backscrapers.mass): fix extract from text#1235

Open
grossir wants to merge 2 commits into
mainfrom
fix_mass_backscraper
Open

fix(us_backscrapers.mass): fix extract from text#1235
grossir wants to merge 2 commits into
mainfrom
fix_mass_backscraper

Conversation

@grossir
Copy link
Copy Markdown
Contributor

@grossir grossir commented Nov 12, 2024

Solves #1234

fixed indexing errors in extract_from_text

Solves #1234

fixed indexing errors in extract_from_text
@sentry
Copy link
Copy Markdown

sentry Bot commented Nov 12, 2024

🔍 Existing Issues For Review

Your pull request is modifying functions with the following pre-existing issues:

📄 File: juriscraper/opinions/united_states_backscrapers/state/mass.py

Function Unhandled Issue
extract_from_text AttributeError: 'list' object has no attribute 'xpath' cl.scrapers.tasks.extract_doc_c...
Event Count: 176
extract_from_text ParserError: Document is empty cl.scrapers.tasks....
Event Count: 7

Did you find this useful? React with a 👍 or 👎

@grossir grossir requested a review from flooie November 12, 2024 15:25

if start:
start = datetime.strptime(start, "%m/%d/%Y")
start = datetime.strptime(start, "%Y/%m/%d")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are we sure this works. this is a weird back scraper

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have tested this, and it works. If I remember correctly, we actually implemented #1155 inspired by this single extract_from_text bug

@grossir grossir moved this from General Backlog to Backlog in Sprint (Case Law) Feb 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

2 participants