From 6e8710f7caed668aa37dc25c86103ac566b837f8 Mon Sep 17 00:00:00 2001 From: Martin Sicot Date: Tue, 27 Nov 2018 17:26:25 +0100 Subject: [PATCH] [boursorama] update liquidities 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 26477ca850..67a4bc9654 100644 --- a/modules/boursorama/pages.py +++ b/modules/boursorama/pages.py @@ -618,7 +618,7 @@ def obj_unitvalue(self): return CleanDecimal(replace_dots=True, default=NotAvailable).filter((TableCell('unitvalue')(self)[0]).xpath('./span[not(@class)]')) def iter_investment(self): - valuation = CleanDecimal('//li[h4[contains(text(), "Solde Espèces")]]/h3', replace_dots=True, default=None)(self.doc) + valuation = CleanDecimal('//li/span[contains(text(), "Solde Espèces")]/following-sibling::span', replace_dots=True, default=None)(self.doc) if valuation: yield create_french_liquidity(valuation) -- GitLab