I'm using IMDbPY
and I'd like to output the rating from a specific country. But right now I'm getting all the ratings for all countries.
Here's my Code:
from imdb import IMDb
ia = IMDb()
theMatrix = ia.get_movie_parents_guide('0133093')
print(theMatrix['data']['certification'])
Current Output:
[' Argentina:13', ' Australia:M', ' Belgium:KT/EA', ' Brazil:12', ' (original rating)', ' Brazil:12', ' (re-rating)', ' Brazil:14', ' (re-rating)', ' Brazil:14', ' (2002, TV rating)', ' Canada:14A', ' (Alberta/British Columbia)', ' Canada:PA', ' (Manitoba)', ' Canada:14', ' (Nova Scotia)', ' Canada:AA', ' (Ontario)', ' Canada:13+', ' (Quebec)', ' Denmark:15', ' Finland:K-16', ' France:Tous publics avec avertissement', ' Germany:16', ' Greece:K-8', ' Hong Kong:IIB', ' Hungary:16', ' Iceland:16', ' India:UA', ' (re-rating)', ' India:A', ' (1999, original rating)', ' Ireland:15', ' (theatrical)', ' Ireland:18', ' (video)', ' Israel:PG', ' Italy:T', ' Japan:PG-12', ' Japan:G', ' (2019)', ' Luxembourg:12', ' Malaysia:18SG', ' Mexico:B', ' Netherlands:16', ' (original rating)', ' Netherlands:12', ' (re-rating)', ' New Zealand:M', ' Nigeria:PG', ' Norway:15', ' Peru:14', ' Philippines:PG-13', ' Portugal:M/12', ' Portugal:M/16', ' (Netflix rating)', ' Russia:16+', ' Saudi Arabia:PG', ' Singapore:PG', ' Singapore:PG13', ' (re-rating)', ' South Africa:10', ' South Korea:12', ' Spain:18', ' Sweden:15', ' Switzerland:12', ' (canton of Geneva)', ' Switzerland:12', ' (canton of Vaud)', ' Taiwan:PG-12', ' Thailand:G', ' United Kingdom:15', ' United States:R', ' (certificate #36569)', ' Ukraine:16']
Input:
Argentina
Brazil
United States
Desired output:
Argentina:13
Brazil:12
United States:R