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

Add "A Healthy Slice of Life" site #1413

Merged
merged 4 commits into from
Dec 7, 2024
Merged

Add "A Healthy Slice of Life" site #1413

merged 4 commits into from
Dec 7, 2024

Conversation

bcspragu
Copy link
Contributor

@bcspragu bcspragu commented Dec 1, 2024

Fixes #1412

@bcspragu
Copy link
Contributor Author

bcspragu commented Dec 1, 2024

I'm using jj instead of Git and that appears to break the pre-commit script, any way to manually run the linters?

bcspragu added a commit to bcspragu/plainoldrecipe that referenced this pull request Dec 1, 2024
Previously called `wild_mode`, this will attempt to pull the recipe schema from sites that aren't explicitly hardcoded, works for lots of site.

As an example, [this recipe](https://www.ahealthysliceoflife.com/red-lentil-carrot-curry-recipe/) previously failed, but succeeds with `supported_only=False` (though I'm adding that site explicitly [here](hhursev/recipe-scrapers#1413))
bcspragu added a commit to bcspragu/plainoldrecipe that referenced this pull request Dec 1, 2024
Previously called `wild_mode`, this will attempt to pull the recipe schema from sites that aren't explicitly hardcoded, works for lots of site.

As an example, [this recipe](https://www.ahealthysliceoflife.com/red-lentil-carrot-curry-recipe/) previously failed, but succeeds (with minor errors on the ingredients) with `supported_only=False` (though I'm adding that site explicitly [here](hhursev/recipe-scrapers#1413)). I think that's an improvement over nothing, but would be willing to add some messaging to indicate "this site is only kinda supported"
Copy link
Collaborator

@jknndy jknndy left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution, looks great! Only thing to address outside of the two code comments is the order of the JSON keys. Test files follow a specific order for ease of review which can be applied by running

python .\scripts\reorder_json_keys.py

recipe_scrapers/__init__.py Outdated Show resolved Hide resolved
recipe_scrapers/ahealthysliceoflife.py Outdated Show resolved Hide resolved
`black ./recipe_scrapers/ahealthysliceoflife.py`
`python ./scripts/reorder_json_keys.py`
@bcspragu
Copy link
Contributor Author

bcspragu commented Dec 1, 2024

Thanks for the pointers, everything should be addressed!

@jknndy jknndy merged commit be18baf into hhursev:main Dec 7, 2024
19 checks passed
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.

Add support for "A Healthy Slice of Life"
2 participants