Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
[email protected] web/email now available. Want one? Go here.
Cannot use outlook/hotmail/live here to register as they blocking our mail servers. #microsoftdeez
Obey the Epel!

Paste

Pasted as Python by czoko ( 3 years ago )
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"]}')

 

Revise this Paste

Your Name: Code Language: