Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scraper issue with https://www.mob.co.uk/ #1482

Open
BenFawley opened this issue Jan 24, 2025 · 1 comment
Open

Scraper issue with https://www.mob.co.uk/ #1482

BenFawley opened this issue Jan 24, 2025 · 1 comment
Labels

Comments

@BenFawley
Copy link

BenFawley commented Jan 24, 2025

Recipe URL with the issue:

Which data is not being scraped correctly?
ingredients

What should be shown instead?

The ingredients appear to only be returned for some recipes e.g. the below one. I can see the recipeIngredients in the scraped html but they are not returned when calling scraper.ingredients():

"recipeIngredients":[{"id":"6175825","typeHandle":"ingredient","toServe":false,"unit":[{"id":"17301"}],"ingredient":[{"id":"148274","title":"Courgette","uri":"ingredients/courgette","groupHandle":"ingredients","plural":"Courgettes","overrideNutritionalInformation":false,"volumeToMassConversion":null,"massPerUnit":null,"calories":null,"fat":null,"saturatedFat":null,"carbohydrates":null,"sugars":null,"dietaryFibre":null,"protein":null,"sodium":null}]},{"id":"6175826","typeHandle":"ingredient","toServe":false,"unit":[{"id":"1580337"}],"ingredient":[{"id":"45","title":"Olive Oil","uri":"ingredients/olive-oil","groupHandle":"ingredients","plural":"Olive Oil","overrideNutritionalInformation":false,"volumeToMassConversion":null,"massPerUnit":null,"calories":null,"fat":null,"saturatedFat":null,"carbohydrates":null,"sugars":null,"dietaryFibre":null,"protein":null,"sodium":null}]},{"id":"6175827","typeHandle":"ingredient","toServe":false,"unit":[{"id":"4278141"}],"ingredient":[{"id":"42","title":"Basil","uri":"ingredients/basil","groupHandle":"ingredients","plural":"Basil","overrideNutritionalInformation":false,"volumeToMassConversion":null,"massPerUnit":null,"calories":null,"fat":null,"saturatedFat":null,"carbohydrates":null,"sugars":null,"dietaryFibre":null,"protein":null,"sodium":null}]},{"id":"6175828","typeHandle":"ingredient","toServe":false,"unit":[{"id":"4278141"}],"ingredient":[{"id":"151338","title":"Spaghetti","uri":"ingredients/spaghetti","groupHandle":"ingredients","plural":"Spaghetti","overrideNutritionalInformation":false,"volumeToMassConversion":null,"massPerUnit":null,"calories":null,"fat":null,"saturatedFat":null,"carbohydrates":null,"sugars":null,"dietaryFibre":null,"protein":null,"sodium":null},{"id":"148273","title":"Pasta","uri":"ingredients/pasta","groupHandle":"ingredients","plural":"Pasta","overrideNutritionalInformation":false,"volumeToMassConversion":null,"massPerUnit":null,"calories":null,"fat":null,"saturatedFat":null,"carbohydrates":null,"sugars":null,"dietaryFibre":null,"protein":null,"sodium":null}]},{"id":"6175829","typeHandle":"ingredient","toServe":false,"unit":[{"id":"4278141"}],"ingredient":[{"id":"147149","title":"Butter","uri":"ingredients/butter","groupHandle":"ingredients","plural":"Butter","overrideNutritionalInformation":false,"volumeToMassConversion":null,"massPerUnit":null,"calories":null,"fat":null,"saturatedFat":null,"carbohydrates":null,"sugars":null,"dietaryFibre":null,"protein":null,"sodium":null}]},{"id":"6175830","typeHandle":"ingredient","toServe":false,"unit":[{"id":"4278141"}],"ingredient":[{"id":"147152","title":"Parmesan","uri":"ingredients/parmesan","groupHandle":"ingredients","plural":"Parmesan","overrideNutritionalInformation":false,"volumeToMassConversion":null,"massPerUnit":null,"calories":null,"fat":null,"saturatedFat":null,"carbohydrates":null,"sugars":null,"dietaryFibre":null,"protein":null,"sodium":null}]},{"id":"6175831","typeHandle":"ingredient","toServe":false,"unit":[{"id":"4278141"}],"ingredient":[{"id":"147212","title":"Pecorino","uri":"ingredients/pecorino","groupHandle":"ingredients","plural":"Pecorino","overrideNutritionalInformation":false,"volumeToMassConversion":null,"massPerUnit":null,"calories":null,"fat":null,"saturatedFat":null,"carbohydrates":null,"sugars":null,"dietaryFibre":null,"protein":null,"sodium":null}]},{"id":"6175832","typeHandle":"ingredient","toServe":false,"unit":[],"ingredient":[{"id":"43","title":"Salt","uri":"ingredients/salt","groupHandle":"ingredients","plural":"Salt","overrideNutritionalInformation":false,"volumeToMassConversion":null,"massPerUnit":null,"calories":null,"fat":null,"saturatedFat":null,"carbohydrates":null,"sugars":null,"dietaryFibre":null,"protein":null,"sodium":null}]}],

Working recipe:
https://www.mob.co.uk/meal-plans/batch-cook-beefy-chilli-con-carne/batch-beef-chilli-con-carne


Optional information that helps us understand our users better:

  • Which version of recipe-scrapers are you using? -> 15.4
  • How did you discover the package? -> Google search
@BenFawley BenFawley added the bug label Jan 24, 2025
@BenFawley
Copy link
Author

It appears that the label key for each recipeIngredient is missing in recipes that don't work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant