get_ingredient_image
MealDB.get_ingredient_image(ingredient)
Fetches an image of the specified ingredient from TheMealDB and saves it locally.
Parameters
Name | Type | Description | Default |
---|---|---|---|
ingredient | str | The name of the ingredient for which the image is to be fetched. | required |
Returns
Name | Type | Description |
---|---|---|
str | any | A message indicating the successful fetching and saving of the image. |
Raises
Name | Type | Description |
---|---|---|
httpx.HTTPError | If the API request fails |