hhursev / recipe-scrapers

Python package for scraping recipes data
MIT License
1.62k stars 508 forks source link

www.simplyrecipes.com can not extract cook/prep time #998

Closed benni347 closed 5 months ago

benni347 commented 5 months ago

Pre-filing checks

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

The results you expect to see The prep and the cook time.

The results (including any Python error messages) that you are seeing

Traceback (most recent call last):
  File "/home/cdrc/Documents/recipes/main.py", line 10, in <module>
    print(scraper.cook_time())
          ^^^^^^^^^^^^^^^^^^^
  File "/home/cdrc/Documents/recipes/venv/lib/python3.11/site-packages/recipe_scrapers/_abstract.py", line 87, in cook_time
    raise NotImplementedError("This should be implemented.")
NotImplementedError: This should be implemented.

The same also for prep time.

The python code that I am running:

#!/usr/bin/env python3

from recipe_scrapers import scrape_me

scraper = scrape_me("https://www.simplyrecipes.com/recipes/banana_bread/")
print(scraper.cook_time())
print(scraper.prep_time())