implement get_status() to get my nickname, my score and the number of available charms

This commit is contained in:
Romain Bignon 2010-07-03 21:21:59 +02:00
commit b73c0559c6
3 changed files with 19 additions and 7 deletions

View file

@ -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'