allmovie: parse credits

This commit is contained in:
Rolux 2008-07-25 16:26:46 +02:00
parent 7d9c3da760
commit 314fd03934

View file

@ -28,6 +28,14 @@ def getMovieData(allmovieId):
),
findRe(html, '<div id="results-table">(.*?)</table>').split('</td></tr>')[:-1]
)
html = getUrlUnicode("http://www.allmovie.com/cg/avg.dll?p=avg&sql=1:%s~T3" % allmovieId)
data['credits'] = map(
lambda x: map(
lambda x: stripTags(x).strip(),
x.split('&nbsp;</TD><TD WIDTH=305><I>-')
),
findRe(html, '<div id="results-table">(.*?)</table>').split('</TD></TR>')[:-1]
)
return data
def getMoviePoster(allmovieId):