update website changes
This commit is contained in:
parent
7df272cf7a
commit
d383e0fadc
1 changed files with 3 additions and 3 deletions
|
|
@ -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'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue