Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save IncentiveCode/bb0a753e38160f10269a38b24f562f7f to your computer and use it in GitHub Desktop.
Save IncentiveCode/bb0a753e38160f10269a38b24f562f7f to your computer and use it in GitHub Desktop.
Nomad coder | Python challenge | Assignment #5
# BLUEPRINT | DONT EDIT
import requests
movie_ids = [
238, 680, 550, 185, 641, 515042, 152532, 120467, 872585, 906126, 840430
]
# /BLUEPRINT
# πŸ‘‡πŸ» YOUR CODE πŸ‘‡πŸ»:
api = "https://nomad-movies.nomadcoders.workers.dev/movies/"
for movie_id in movie_ids:
url = f"{api}{movie_id}"
response = requests.get(url)
data = response.json()
print(f"title : {data['title']}\noverview : {data['overview']}\nvote_average : {data['vote_average']}\n")
# /YOUR CODE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment