Closed JimmyStrings closed 2 years ago
Thanks @JimmyStrings - nice finds!
Could you open one GitHub issue for each of the affected websites? Some of them look easier to handle than others, and it's useful to have details of each problem as an issue so that fixes in pull requests can be linked to them.
Hi @jayaddison - updating this issue to contain only 1 issue. Will add other issues separately.
Thanks again @JimmyStrings! Much appreciated :+1:
fixed by ignoring headers and spacers from the table. PR will follow tomorrow
Recipe URLs that error: https://thehappyfoodie.co.uk/recipes/ottolenghi-middle-eastern-mac-n-cheese-with-zaatar-pesto/ https://thehappyfoodie.co.uk/recipes/yotam-ottolenghis-chocolate-tarts-with-tahini/ https://thehappyfoodie.co.uk/recipes/oyster-mushroom-tacos-with-all-or-some-of-the-trimmings/
Attempted code:
Error Message:
IndexError: list index out of range
Note: The problem seems to be that these page contains multiple sub-headings in the ingredient list. Other recipes on this website do not have multiple sub-headings and the scraper works fine: e.g. https://thehappyfoodie.co.uk/recipes/lemon-courgette-linguine/
Python version: 3.8 Operating System: Windows 10