forked from goodop/api-imjustgood.com
-
Notifications
You must be signed in to change notification settings - Fork 5
/
movie_review.py
23 lines (18 loc) · 918 Bytes
/
movie_review.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
from justgood import imjustgood
api = imjustgood("INSERT_YOUR_APIKEY_HERE")
data = api.movie("joker")
print(data)
# EXAMPLE GET CERTAIN ATTRIBUTES
result = "Title : {}".format(data["result"]["title"])
result += "\nDuration : {}".format(data["result"]["runtime"])
result += "\nYear : {}".format(data["result"]["year"])
result += "\nRelease : {}".format(data["result"]["release"])
result += "\nDVD : {}".format(data["result"]["dvd"])
result += "\ngenre : {}".format(data["result"]["genre"])
result += "\nProduction : {}".format(data["result"]["production"])
result += "\nDirector : {}".format(data["result"]["director"])
result += "\nActors : {}".format(data["result"]["actors"])
result += "\nAwards : {}".format(data["result"]["awards"])
result += "\nSynopsis : {}".format(data["result"]["synopsis"])
result += "\nPoster URL : {}".format(data["result"]["poster"])
print(result)