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: incomplete justonecookbook #649

Merged
merged 2 commits into from Oct 19, 2022

Conversation

wengtad
Copy link
Contributor

@wengtad wengtad commented Oct 17, 2022

One of the website on #489 . Found out the existing scaper is incomplete with bugs.

return self.schema.ingredients()
ingredients = self.soup.find_all("li", {"class": "wprm-recipe-ingredient"})
return [
normalize_string(ingredient.get_text().replace("▢", ""))
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is the string replace call on this line necessary?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

did a fix for this, please check, thanks.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Thanks - there's probably a reason why the site is including those x25a2 unicode entities in screen reader text.. but I don't know what that is. The fix is slightly more complicated but since the tests continue to pass, that looks good to me 👍

@jayaddison jayaddison merged commit df71ec3 into hhursev:main Oct 19, 2022
@jayaddison jayaddison added the hacktoberfest-accepted Hactoberfest 2022 label Oct 19, 2022
@wengtad wengtad deleted the patch-justonecookbook branch October 23, 2022 05:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest-accepted Hactoberfest 2022
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants