From 12d26a64a992a4b0cab7d5504adb20ea97e77a90 Mon Sep 17 00:00:00 2001 From: Vincent Paredes Date: Mon, 22 Sep 2014 12:14:50 +0200 Subject: [PATCH] the account information div's id change, so we look for the dom structure --- modules/carrefourbanque/pages.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/carrefourbanque/pages.py b/modules/carrefourbanque/pages.py index 8b8047c92a..6f56db9293 100644 --- a/modules/carrefourbanque/pages.py +++ b/modules/carrefourbanque/pages.py @@ -49,12 +49,12 @@ class item(ItemElement): klass = Account def condition(self): - return len(self.el.xpath('.//div[@class="catre_col_one"]/h2')) > 0 + return len(self.el.xpath('.//div[@class="catre_col_two"]/h2')) > 0 obj_id = CleanText('.//div[@class="carte_col_leftcol"]/p') & Regexp(pattern=r'(\d+)') obj_label = CleanText('.//div[@class="carte_col_leftcol"]/h2') - obj_balance = Format('-%s', CleanText('.//div[@class="catre_col_one"]/h2')) & CleanDecimal(replace_dots=True) - obj_currency = FrenchTransaction.Currency('.//div[@class="catre_col_one"]/h2') + obj_balance = Format('-%s', CleanText('.//div/h2')) & CleanDecimal(replace_dots=True) + obj_currency = FrenchTransaction.Currency('.//div/h2') obj__link = Link('.//a[contains(@href, "solde-dernieres-operations")]') -- GitLab