documentation

This commit is contained in:
Hayden
2020-12-24 19:32:49 -09:00
parent beed8576c2
commit e5304f0589
24 changed files with 119 additions and 132 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 363 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 115 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 184 KiB

View File

@@ -1,5 +1,6 @@
from scrape_schema_recipe import scrape_url
from slugify import slugify
from utils.logger import logger
from services.image_services import scrape_image
from services.recipe_services import Recipe
@@ -14,6 +15,7 @@ def create_from_url(url: str) -> dict:
def process_recipe_url(url: str) -> dict:
new_recipe: dict = scrape_url(url, python_objects=True)[0]
logger.info(f"Recipe Scraped From Web: {new_recipe}")
if not new_recipe:
return "fail" # TODO: Return Better Error Here