packages = ["requests", "pyodide-http"] import requests import pyodide_http pyodide_http.patch_all() # Requestsにパッチをあてる response = requests.get("https://swapi.dev/api/films/1/") data = response.json() display(f"タイトル: {data['title']}") display(f"公開日: {data['release_date']}") for character_url in data["characters"][:5]: response = requests.get(character_url) display(response.json()["name"])