implement get_status() to get my nickname, my score and the number of available charms
This commit is contained in:
parent
1f09368a99
commit
b73c0559c6
3 changed files with 19 additions and 7 deletions
|
|
@ -54,7 +54,7 @@ class PageBase(BasePage):
|
|||
if tag.getAttribute('width') == '220':
|
||||
# <table><tbody(implicit)><td>
|
||||
child = tag.childNodes[1].childNodes[0].childNodes[3]
|
||||
return child.childNodes[0].childNodes[0].data
|
||||
return int(child.childNodes[0].childNodes[0].data.replace(' ', ''))
|
||||
|
||||
error("Error: I can't find the score :(")
|
||||
return '0'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue