diff --git a/ox/web/imdb.py b/ox/web/imdb.py index c766ecf..b63dc69 100644 --- a/ox/web/imdb.py +++ b/ox/web/imdb.py @@ -27,6 +27,52 @@ def read_url(url, data=None, headers=cache.DEFAULT_HEADERS, timeout=cache.cache_ def get_url(id): return "http://www.imdb.com/title/tt%s/" % id + +def reference_section(id): + return { + 'page': 'reference', + 're': [ + '
(.*?)<\/p>', - 'type': 'string' - }, + 'summary': zebra_table('Plot Summary', more=[ + '
(.*?)',
+ 'page': 'reference',
+ 're': '(.*?)
',
+ 'Production Companies.*?',
'(.*?)'
],
'type': 'list'
},
'rating': {
- 'page': 'combined',
- 're': '