fix getting coming operations
This commit is contained in:
parent
6bcd6d21fd
commit
0b9ed305f8
2 changed files with 25 additions and 5 deletions
|
|
@ -191,9 +191,26 @@ class BNPorc(BaseBrowser):
|
||||||
|
|
||||||
if not self.is_on_page(AccountsList):
|
if not self.is_on_page(AccountsList):
|
||||||
self.location('/NSFR?Action=DSP_VGLOBALE')
|
self.location('/NSFR?Action=DSP_VGLOBALE')
|
||||||
execution = self.page.get_execution_id()
|
|
||||||
self.location('/banque/portail/particulier/FicheA?externalIAId=IAStatements&contractId=%d&pastOrPendingOperations=2&pageId=mouvementsavenir&_flowExecutionKey=%s' % (int(id), execution))
|
execution = self.page.document.xpath('//form[@name="goToApplication"]/input[@name="execution"]')[0].attrib['value']
|
||||||
return self.page.iter_operations()
|
data = {'gt': 'homepage:basic-theme',
|
||||||
|
'externalIAId': 'IAStatements',
|
||||||
|
'cboFlowName': 'flow/iastatement',
|
||||||
|
'contractId': id,
|
||||||
|
'groupId': '-2',
|
||||||
|
'pastOrPendingOperations': 2,
|
||||||
|
'groupSelected':'-2',
|
||||||
|
'step': 'STAMENTS',
|
||||||
|
'pageId': 'mouvementsavenir',
|
||||||
|
#'operationsPerPage': 100,
|
||||||
|
#'_eventId': 'changeOperationsPerPage',
|
||||||
|
'sendEUD': 'true',
|
||||||
|
'execution': execution,
|
||||||
|
}
|
||||||
|
|
||||||
|
self.location('https://www.secure.bnpparibas.net/banque/portail/particulier/FicheA', urllib.urlencode(data))
|
||||||
|
|
||||||
|
return self.page.iter_coming_operations()
|
||||||
|
|
||||||
@check_expired_password
|
@check_expired_password
|
||||||
def get_transfer_accounts(self):
|
def get_transfer_accounts(self):
|
||||||
|
|
|
||||||
|
|
@ -62,8 +62,7 @@ class AccountHistory(BasePage):
|
||||||
|
|
||||||
yield op
|
yield op
|
||||||
|
|
||||||
class AccountComing(BasePage):
|
def iter_coming_operations(self):
|
||||||
def iter_operations(self):
|
|
||||||
i = 0
|
i = 0
|
||||||
for tr in self.document.xpath('//table[@id="tableauOperations"]//tr'):
|
for tr in self.document.xpath('//table[@id="tableauOperations"]//tr'):
|
||||||
if 'typeop' in tr.attrib:
|
if 'typeop' in tr.attrib:
|
||||||
|
|
@ -83,3 +82,7 @@ class AccountComing(BasePage):
|
||||||
raw=text)
|
raw=text)
|
||||||
operation.set_amount(tds[2].text)
|
operation.set_amount(tds[2].text)
|
||||||
yield operation
|
yield operation
|
||||||
|
|
||||||
|
|
||||||
|
class AccountComing(AccountHistory):
|
||||||
|
pass
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue