diff --git a/modules/creditdunord/browser.py b/modules/creditdunord/browser.py index ecb0b8afb082fe9236d3fa613ea417862a4a782f..fcbc692701547a4a824ed571b693b7a4dc417caf 100644 --- a/modules/creditdunord/browser.py +++ b/modules/creditdunord/browser.py @@ -30,6 +30,7 @@ ProTransactionsPage, LabelsPage, RgpdPage, ) + class CreditDuNordBrowser(LoginBrowser): ENCODING = 'UTF-8' BASEURL = "https://www.credit-du-nord.fr/" @@ -41,9 +42,13 @@ class CreditDuNordBrowser(LoginBrowser): redirect = URL('/swm/redirectCDN.html', RedirectPage) entrypage = URL('/icd/zco/#zco', EntryPage) multitype_av = URL('/vos-comptes/IPT/appmanager/transac/professionnels\?_nfpb=true&_eventName=onRestart&_pageLabel=synthese_contrats_assurance_vie', AVPage) - loans = URL('/vos-comptes/IPT/appmanager/transac/(?P.*)\?_nfpb=true&_eventName=onRestart&_pageLabel=(?P(creditPersoImmobilier|credit__en_cours|credit_en_cours))', ProAccountsPage) - proaccounts = URL('/vos-comptes/IPT/appmanager/transac/(professionnels|entreprises)\?_nfpb=true&_eventName=onRestart&_pageLabel=(?P(transac_tableau_de_bord|page__synthese_v1|page_synthese_v1))', ProAccountsPage) - accounts = URL('/vos-comptes/IPT/appmanager/transac/(?P.*)\?_nfpb=true&_eventName=onRestart&_pageLabel=(?P(transac_tableau_de_bord|page__synthese_v1|page_synthese_v1))', AccountsPage) + loans = URL(r'/vos-comptes/IPT/appmanager/transac/(?P.*)\?_nfpb=true&_eventName=onRestart&_pageLabel=(?P(creditPersoImmobilier|credit_?_en_cours))', ProAccountsPage) + proaccounts = URL(r'/vos-comptes/IPT/appmanager/transac/(professionnels|entreprises)\?_nfpb=true&_eventName=onRestart&_pageLabel=(?P(transac_tableau_de_bord|page_?_synthese_v1))', + r'/vos-comptes/(professionnels|entreprises)/page_?_synthese', + ProAccountsPage) + accounts = URL(r'/vos-comptes/IPT/appmanager/transac/(?P.*)\?_nfpb=true&_eventName=onRestart&_pageLabel=(?P(transac_tableau_de_bord|page_?_synthese_v1))', + r'/vos-comptes/particuliers', + AccountsPage) multitype_iban = URL('/vos-comptes/IPT/appmanager/transac/professionnels\?_nfpb=true&_eventName=onRestart&_pageLabel=impression_rib', ProIbanPage) transactions = URL('/vos-comptes/IPT/appmanager/transac/particuliers\?_nfpb=true(.*)', TransactionsPage) protransactions = URL('/vos-comptes/(.*)/transac/(professionnels|entreprises)', ProTransactionsPage) diff --git a/modules/creditdunord/pages.py b/modules/creditdunord/pages.py index e813a84081e42564b646006951df53f1320672bc..db660a61b67c1aac88922c18bb871d6622d31632 100755 --- a/modules/creditdunord/pages.py +++ b/modules/creditdunord/pages.py @@ -143,7 +143,7 @@ def vk_login(self, username, password): self.browser.location('/swm/redirectCDN.html', data=data) def classic_login(self, username, password): - m = re.match('www.([^\.]+).fr', self.browser.BASEURL) + m = re.match('https://www.([^\.]+).fr', self.browser.BASEURL) if not m: bank_name = 'credit-du-nord' self.logger.error('Unable to find bank name for %s' % self.browser.BASEURL)