hhursev / recipe-scrapers

Python package for scraping recipes data
MIT License
1.6k stars 505 forks source link

scraper not getting food network info #1119

Open AnnieSixgun opened 1 month ago

AnnieSixgun commented 1 month ago

The URL of the recipe(s) that are not being scraped correctly

- https:// ... https://www.foodnetwork.com/recipes/ina-garten/asian-grilled-salmon-recipe-1944413 ...

the recipe info

...

Looks Like We Couldn't Find Anything

...

jknndy commented 1 month ago

@AnnieSixgun , I could not replicate the issue here. Could you double check that you're using the latest version of the library?

>>> from recipe_scrapers import scrape_me
>>> scraper = scrape_me('https://www.foodnetwork.com/recipes/ina-garten/asian-grilled-salmon-recipe-1944413')
>>> scraper.to_json()
{'author': 'Ina Garten Bio & Top Recipes', 'canonical_url': 'https://www.foodnetwork.com/recipes/ina-garten/asian-grilled-salmon-recipe-1944413', 'category': 'main-dish', 'cook_time': 9, 'cuisine': 'asian', 'description': "Ina Garten's Asian Grilled Salmon, from Barefoot Contessa on Food Network, is a light, quick main dish with salty-sharp flavors like Dijon and soy sauce.", .... }
>>> 
mlduff commented 1 month ago

@AnnieSixgun I also couldn't replicate the issue, although I did notice that prep_time and cook_time have not been implemented despite them being available in the schema - @jknndy did you want me to make this improvement?

jknndy commented 1 month ago

@AnnieSixgun I also couldn't replicate the issue, although I did notice that prep_time and cook_time have not been implemented despite them being available in the schema - @jknndy did you want me to make this improvement?

Up to you @mlduff ! I've been exploring this issue on a larger scale to see if we can populate all possible coverage that is available so it'll get caught in that regardless