]> jfr.im git - irc/rizon/acid.git/blob - pyva/src/main/python/internets/api/imdb.py
Import acidictive 4 and pyva plugin
[irc/rizon/acid.git] / pyva / src / main / python / internets / api / imdb.py
1 import urllib
2 from feed import get_json
3
4 class Imdb(object):
5 def __init__(self):
6 pass #TODO: cache?
7
8 def get(self, title):
9 url = 'http://www.imdbapi.com/?i=&'
10 url += urllib.urlencode({'t': title})
11 return get_json(url)