update website changes

This commit is contained in:
Romain Bignon 2010-07-15 23:37:41 +02:00
commit d383e0fadc

View file

@ -52,9 +52,9 @@ class PageBase(BasePage):
l = self.document.getElementsByTagName('table') l = self.document.getElementsByTagName('table')
for tag in l: for tag in l:
if tag.getAttribute('width') == '220': if tag.getAttribute('width') == '220':
# <table><tbody(implicit)><td> # <table><tbody(implicit)><tr><td>
child = tag.childNodes[1].childNodes[0].childNodes[3] child = tag.childNodes[0].childNodes[0].childNodes[3]
return int(child.childNodes[0].childNodes[0].data.replace(' ', '')) return int(child.childNodes[0].childNodes[1].data.replace(' ', '').strip())
error("Error: I can't find the score :(") error("Error: I can't find the score :(")
return '0' return '0'