From d138f475de87de44bb2b0a5de4a614b38c3339f0 Mon Sep 17 00:00:00 2001 From: "ryan.noelk" Date: Wed, 5 Apr 2017 23:24:25 -0400 Subject: [PATCH 1/3] removing un-needed script --- run_tester.py | 9 --------- 1 file changed, 9 deletions(-) delete mode 100755 run_tester.py 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()) From 56b9cea8be1e633e4e64c9aa3d594fd9ce2c8b4c Mon Sep 17 00:00:00 2001 From: "ryan.noelk" Date: Thu, 6 Apr 2017 21:16:26 -0400 Subject: [PATCH 2/3] ingredients should return a dict with better keys --- recipe_scrapers/allrecipes.py | 4 ++-- recipe_scrapers/budgetbytes.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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: From eddf3b93f6b7740fbfaeb50dbea813e0dc8de7e2 Mon Sep 17 00:00:00 2001 From: "ryan.noelk" Date: Thu, 6 Apr 2017 21:17:32 -0400 Subject: [PATCH 3/3] update to version 1.0.4 --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,