From 8c9647c28a2f021e8d685b1048b213a2d1ba76af Mon Sep 17 00:00:00 2001 From: Rolux Date: Fri, 25 Jul 2008 16:43:45 +0200 Subject: [PATCH] allmovie: parse runtime --- oxweb/allmovie.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/oxweb/allmovie.py b/oxweb/allmovie.py index 8be4e2a..d22d578 100644 --- a/oxweb/allmovie.py +++ b/oxweb/allmovie.py @@ -11,6 +11,7 @@ def getMovieData(allmovieId): data = {} data['poster'] = findRe(html, '(\d{4})') + data['runtime'] = findRe(html, 'sql=24:\d{4}">.*?">(.*?)min.').strip() data['rating'] = findRe(html, '" alt="(\d+?) Stars"') data['country'] = findRe(html, '(.*?)(.*?)')).split(', ') @@ -55,5 +56,5 @@ def parseList(html, title): return map(lambda x: stripTags(x), findRe(html, '%s(.*?)' % title).split('
  • ')) if __name__ == '__main__': - print getMovieData('177524') + print getMovieData('177524')['runtime']