Recipe Crawler

Phase 1 - Recipe scraping and ingredient extraction

Create a Python script that fetches ingredients from specified recipes on Jamila Cuisine and compiles them into a structured list.

  • Input recipe names as parameters
  • Generate recipe URLs and fetch HTML content
  • Extract ingredients for each recipe and create individual lists

Functional result: Script outputs ingredient lists for given recipes in a readable format.

Phase 2 - Shopping list consolidation and JSON storage

Extend the script to merge ingredient lists into a single shopping list, summing quantities for repeated items, and save it in a JSON file.

  • Check for existing JSON file and load it
  • Consolidate ingredients across recipes, updating quantities
  • Save or update the shopping list JSON file

Functional result: Script produces a consolidated shopping list in JSON that updates correctly on subsequent runs.