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

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

grossir
Copy link
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
Copy link

sentry-io 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
@@ -148,11 +148,11 @@ def make_backscrape_iterable(self, kwargs: dict) -> None:
now = datetime.now()

if start:
start = datetime.strptime(start, "%m/%d/%Y")
start = datetime.strptime(start, "%Y/%m/%d")
Copy link
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
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

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

Successfully merging this pull request may close these issues.

2 participants