Skip to content

Commit

Permalink
sundpaabudget: remove support for nutritional information (hhursev#1347)
Browse files Browse the repository at this point in the history
  • Loading branch information
jayaddison authored Oct 25, 2024
1 parent 5c23c29 commit 6b939f3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 6 additions & 0 deletions recipe_scrapers/sundpaabudget.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,9 @@ def host(cls):
def description(self):
# Schema returns empty string
return self.soup.head.find("meta", {"property": "og:description"})["content"]

def nutrients(self):
# Some schema.org nutrition info exists in this site's recipe webpages,
# but the content seems unreliable
# Ref: https://github.com/hhursev/recipe-scrapers/issues/1346
return None
4 changes: 0 additions & 4 deletions tests/test_data/sundpaabudget.dk/sundpaabudget.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,5 @@
"prep_time": 10,
"ratings": 4.0,
"ratings_count": 40,
"nutrients": {
"servingSize": "1 person",
"calories": "300 kcal"
},
"image": "https://sundpaabudget.dk/wp-content/uploads/2021/08/20210803123311_IMG_0714.jpg"
}

0 comments on commit 6b939f3

Please sign in to comment.