Add balance command to leclercmobile
This commit is contained in:
parent
757167a6eb
commit
681b83e4b3
4 changed files with 20 additions and 1 deletions
|
|
@ -129,3 +129,10 @@ class Leclercmobile(BaseBrowser):
|
|||
for a in l:
|
||||
if a.id == id:
|
||||
return a
|
||||
|
||||
def get_balance(self):
|
||||
if not self.is_on_page(HistoryPage):
|
||||
self.location(self.conso)
|
||||
response = self.openurl('/EspaceClient/pgeWERL015_RecupReleveConso.aspx?m=-0')
|
||||
pdf = PdfPage(StringIO.StringIO(response.read()))
|
||||
return pdf.get_balance()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue