Commit 6e8710f7 authored by Martin Sicot's avatar Martin Sicot Committed by Romain Bignon

[boursorama] update liquidities xpath

parent 087c0347
...@@ -618,7 +618,7 @@ class MarketPage(LoggedPage, HTMLPage): ...@@ -618,7 +618,7 @@ class MarketPage(LoggedPage, HTMLPage):
return CleanDecimal(replace_dots=True, default=NotAvailable).filter((TableCell('unitvalue')(self)[0]).xpath('./span[not(@class)]')) return CleanDecimal(replace_dots=True, default=NotAvailable).filter((TableCell('unitvalue')(self)[0]).xpath('./span[not(@class)]'))
def iter_investment(self): 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: if valuation:
yield create_french_liquidity(valuation) yield create_french_liquidity(valuation)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment