and removing a print statement
This commit is contained in:
parent
04d9d7c500
commit
c78864d3ab
1 changed files with 1 additions and 8 deletions
|
@ -31,7 +31,6 @@ def getData(id):
|
|||
results = re.compile('<a href = (%s.*?html)' % id[5:], re.DOTALL).findall(html)
|
||||
for result in results:
|
||||
result = result.replace('_xlg.html', '.html')
|
||||
print result
|
||||
url = 'http://www.impawards.com/%s/%s' % (data['year'], result)
|
||||
html = getUrlUnicode(url)
|
||||
result = findRe(html, '<a href = (\w*?_xlg.html)')
|
||||
|
@ -80,9 +79,3 @@ def getUrl(id):
|
|||
if findRe(html, "No Movie Posters on This Page"):
|
||||
url = "http://www.impawards.com/%s_ver1.html" % id
|
||||
return url
|
||||
|
||||
if __name__ == '__main__':
|
||||
print getData("1982/blade_runner")
|
||||
print getData("1991/silence_of_the_lambs")
|
||||
print getData("1999/matrix")
|
||||
getIds()
|
||||
|
|
Loading…
Reference in a new issue