Skip to content

Commit

Permalink
Update womensweeklyfood.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jknndy committed Oct 15, 2024
1 parent a49dfa3 commit f63dcad
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion recipe_scrapers/womensweeklyfood.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

from ._abstract import AbstractScraper
from ._grouping_utils import group_ingredients
from ._utils import normalize_string


class WomensWeeklyFood(AbstractScraper):
Expand All @@ -16,7 +17,10 @@ def ingredients(self):
ingredients_elements = self.soup.select(
".recipe-ingredients__item span[itemprop='ingredients']"
)
return [ingredient.get_text(strip=True) for ingredient in ingredients_elements]
return [
normalize_string(ingredient.get_text())
for ingredient in ingredients_elements
]

def ingredient_groups(self):
return group_ingredients(
Expand Down

0 comments on commit f63dcad

Please sign in to comment.