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

Update hellofresh scraper #778

Merged
merged 2 commits into from Jul 13, 2023
Merged

Conversation

strangetom
Copy link
Collaborator

This PR removes the special handling of recipes that can be scaled to 1 portion that was introduced due to #527.
It looks like the issue in the embedded ld+json have been fixed and the ingredient quantities in the data are consistent with the yield.

I've updated both tests for the scraper with the latest html for the same recipes so they pass.
I also checked the updated scraper against some of the URLs given in #527 and it seems to work fine for them too.

This should close #777.

…can be scaled to 1 portion.

The hellofresh website seems to have been updated and the json+ld data now contains the correct information for the given yield.
Update both hellofresh tests with the latest html for the same URLs and fix changes in output due to updated html.
@jayaddison
Copy link
Collaborator

The changes here look good to me 👍

I'm beginning to take a look into the unit test failures on MacOS for Python version 3.7 and 3.8 to see what's going on there.

@jayaddison
Copy link
Collaborator

My current best-guess is that the unit test failures are something to do with lxml on MacOS again - this isn't the first time something like that has happened (see #629).

@jayaddison jayaddison merged commit 49fb944 into hhursev:main Jul 13, 2023
18 checks passed
@strangetom strangetom deleted the hellofresh-update branch July 14, 2023 15:51
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.

Hellofresh parser fails ingredients.
2 participants