diff --git a/modules/boursorama/browser.py b/modules/boursorama/browser.py index 456f355f..72e462a1 100644 --- a/modules/boursorama/browser.py +++ b/modules/boursorama/browser.py @@ -21,6 +21,7 @@ from weboob.deprecated.browser import Browser, BrowserIncorrectPassword +from weboob.capabilities.bank import Account from .pages import LoginPage, AccountsList, AccountHistory, CardHistory, UpdateInfoPage, AuthenticationPage @@ -119,6 +120,11 @@ class Boursorama(Browser): def get_history(self, account): link = account._link_id + #We need to skip the first link on card page because there is a summary, + #and so the recent transaction are displayed twice + if account.type == Account.TYPE_CARD: + self.location(link) + link = self.page.get_next_url() while link is not None: self.location(link)