removing debug output
This commit is contained in:
parent
d17ae60f8e
commit
73ce77dc2e
1 changed files with 2 additions and 4 deletions
|
@ -14,19 +14,17 @@ def getPosterUrls(imdbId):
|
|||
return posterUrls
|
||||
|
||||
def parsePage(url):
|
||||
print url
|
||||
posterUrls = []
|
||||
html = cache.getUrlUnicode(url, timeout=86400)
|
||||
groups = re.compile('<a href="(http://www.movieposterdb.com/group/.*?)">', re.DOTALL).findall(html)
|
||||
print '%s Groups' % len(groups)
|
||||
for group in groups:
|
||||
posterUrls += parsePage(group)
|
||||
posters = re.compile('<a href="(http://www.movieposterdb.com/poster/.*?)">', re.DOTALL).findall(html)
|
||||
for poster in posters:
|
||||
print 'Poster: ' + poster
|
||||
html = cache.getUrlUnicode(poster)
|
||||
posterUrls.append(findRe(html, '"(http://www.movieposterdb.com/posters/.*?\.jpg)"'))
|
||||
return posterUrls
|
||||
|
||||
if __name__ == '__main__':
|
||||
print getPosterUrls('0133093')
|
||||
print getPosterUrls('0133093')
|
||||
print getPosterUrls('0060304')
|
Loading…
Reference in a new issue