From 4b2715b1baa1b408bdbe64cef463d41bb72cc32f Mon Sep 17 00:00:00 2001 From: Sylvie Ye Date: Fri, 24 May 2019 10:19:02 +0200 Subject: [PATCH] [boursorama] retrieve iban with new xpath --- modules/boursorama/pages.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/boursorama/pages.py b/modules/boursorama/pages.py index 6bb9f2a698..a677222111 100644 --- a/modules/boursorama/pages.py +++ b/modules/boursorama/pages.py @@ -65,7 +65,7 @@ def get_iban(self): if self.doc.xpath('//div[has-class("alert")]/p[contains(text(), "Une erreur est survenue")]') or \ self.doc.xpath('//div[has-class("alert")]/p[contains(text(), "Le compte est introuvable")]'): return NotAvailable - return CleanText('//table[thead[tr[th[contains(text(), "Code I.B.A.N")]]]]/tbody/tr/td[2]', replace=[(' ', '')])(self.doc) + return CleanText('//div[strong[contains(text(),"IBAN")]]/div[contains(@class, "definition")]', replace=[(' ', '')])(self.doc) class AuthenticationPage(HTMLPage): -- GitLab