Support all the history
Ugly code...
This commit is contained in:
parent
95c41a346f
commit
3d532ef501
2 changed files with 29 additions and 7 deletions
|
|
@ -121,19 +121,26 @@ class Ing(BaseBrowser):
|
|||
}
|
||||
self.location(self.accountspage, urllib.urlencode(data))
|
||||
self.where = "history"
|
||||
jid = self.page.get_history_jid()
|
||||
i = 0 # index, we get always the same page, but with more informations
|
||||
while 1:
|
||||
hashlist = []
|
||||
for transaction in self.page.get_transactions():
|
||||
for transaction in self.page.get_transactions(i):
|
||||
while transaction.id in hashlist:
|
||||
transaction.id = hashlib.md5(transaction.id + "1").hexdigest()
|
||||
hashlist.append(transaction.id)
|
||||
i += 1
|
||||
yield transaction
|
||||
if self.page.islast():
|
||||
return
|
||||
|
||||
# XXX server sends an unknown mimetype, we overload
|
||||
# viewing_html() above to prevent this issue.
|
||||
self.page.next_page()
|
||||
data = {"AJAX:EVENTS_COUNT": 1,
|
||||
"AJAXREQUEST": "_viewRoot",
|
||||
"autoScroll": "",
|
||||
"index": "index",
|
||||
"index:%s:moreTransactions" % jid: "index:%s:moreTransactions" % jid,
|
||||
"javax.faces.ViewState": account._jid
|
||||
}
|
||||
self.location(self.accountspage, urllib.urlencode(data))
|
||||
|
||||
def get_recipients(self, account):
|
||||
if not self.is_on_page(TransferPage):
|
||||
|
|
@ -184,6 +191,7 @@ class Ing(BaseBrowser):
|
|||
yield bill
|
||||
if self.page.islast():
|
||||
return
|
||||
|
||||
self.page.next_page()
|
||||
|
||||
def predownload(self, bill):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue