Untitled
unknown
python
4 years ago
268 B
22
Indexable
import requests as re url = "https://www.themealdb.com/api/json/v1/1/search.php?s=chocolate" response = re.get(url) json_data = response.json() for id, meal in enumerate(json_data['meals']): print(f'no: {id + 1} id: {meal["idMeal"]} str: {meal["strMeal"]}')
Editor is loading...