diff --git a/recipe_scrapers/allrecipes.py b/recipe_scrapers/allrecipes.py index 7786472cb..4f3ffe1d8 100644 --- a/recipe_scrapers/allrecipes.py +++ b/recipe_scrapers/allrecipes.py @@ -35,8 +35,8 @@ def ingredients(self): try: array = ingredient.split(' ', 2) ingredient_dict = { - 'amount': round(float(sum(Fraction(s) for s in array[0].split())), 3), - 'type': array[1], + 'quantity': round(float(sum(Fraction(s) for s in array[0].split())), 3), + 'measurement': array[1], 'title': array[2] } except: diff --git a/recipe_scrapers/budgetbytes.py b/recipe_scrapers/budgetbytes.py index e8eb5c990..3afb39948 100644 --- a/recipe_scrapers/budgetbytes.py +++ b/recipe_scrapers/budgetbytes.py @@ -35,8 +35,8 @@ def ingredients(self): try: array = ingredient.split(' ', 2) ingredient_dict = { - 'amount': round(unicodedata.numeric(array[0]), 3), - 'type': array[1], + 'quantity': round(unicodedata.numeric(array[0]), 3), + 'measurement': array[1], 'title': array[2] } except: diff --git a/run_tester.py b/run_tester.py deleted file mode 100755 index 154af2842..000000000 --- a/run_tester.py +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env python -# encoding: utf-8 - -from recipe_scrapers import scrap_me - -# give the url as a string, it can be url from any site listed below -scrap_me = scrap_me('https://www.budgetbytes.com/2017/03/lemon-garlic-roasted-chicken') - -print(scrap_me.data()) diff --git a/setup.py b/setup.py index 8e63eae11..edf7ea216 100644 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ setup( name='openeats-recipe-scraper', url='https://github.com/RyanNoelk/recipe-scraper/', - version='1.0.3', + version='1.0.4', description='Python package, scraping recipes from all over the internet', keywords='python recipes scraper harvest', long_description=README,