get_ingredient_image
MealDB.get_ingredient_image(ingredient)Fetches and saves a full-size ingredient image locally.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| ingredient | str | The ingredient name (e.g., ‘tomato’, ‘chicken’). | required |
Returns
| Name | Type | Description |
|---|---|---|
| bool | True if the image was successfully fetched and saved, False otherwise. |
Raises
| Name | Type | Description |
|---|---|---|
| httpx.HTTPError | If the HTTP request fails. | |
| httpx.HTTPStatusError | If the API returns a non-2xx status code. |