Get more historical transactions
We get now all availables transactions on the website, not only the first page
This commit is contained in:
parent
d095811799
commit
ae3ccde2e8
2 changed files with 33 additions and 10 deletions
|
|
@ -91,7 +91,11 @@ class Ing(BaseBrowser):
|
|||
self.location('https://secure.ingdirect.fr/general?command=goToAccount&account=%d&zone=COMPTE' % int(id))
|
||||
else:
|
||||
raise NotImplementedError()
|
||||
return self.page.get_transactions()
|
||||
|
||||
# TODO
|
||||
# def get_coming_operations
|
||||
while 1:
|
||||
for transaction in self.page.get_transactions():
|
||||
yield transaction
|
||||
if self.page.islast():
|
||||
return
|
||||
self.page.next_page()
|
||||
# The answer is not a valide html page for mechanize, we have to be tolerant
|
||||
self._factory.is_html = True
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue