diff --git a/modules/hsbc/browser.py b/modules/hsbc/browser.py index 565ea0beab59a7943de4a28fc32ef96f1c212148..07058beeed439af50be647ffa48d2d2e85db0100 100644 --- a/modules/hsbc/browser.py +++ b/modules/hsbc/browser.py @@ -310,10 +310,6 @@ def get_history(self, account, coming=False, retry_li=True): if self.cbPage.is_here(): guesser = LinearDateGuesser(date_max_bump=timedelta(45)) history = list(self.page.get_history(date_guesser=guesser)) - for url, params in self.page.get_params(self.url): - self.location(url, params=params) - if self.cbPage.is_here(): - history.extend(self.page.get_history(date_guesser=guesser)) for tr in history: if tr.type == tr.TYPE_UNKNOWN: diff --git a/modules/hsbc/pages/account_pages.py b/modules/hsbc/pages/account_pages.py index c51ba3a1ada11875635e368546042a6c25717ed1..4eeb00d4caf165e2ceb93cf34b5c98882863c82e 100644 --- a/modules/hsbc/pages/account_pages.py +++ b/modules/hsbc/pages/account_pages.py @@ -24,14 +24,14 @@ from weboob.capabilities import NotAvailable from weboob.capabilities.bank import Account from weboob.tools.capabilities.bank.transactions import FrenchTransaction -from weboob.tools.compat import urlparse, parse_qs, urljoin +from weboob.tools.compat import urljoin from weboob.exceptions import BrowserIncorrectPassword, BrowserUnavailable, ActionNeeded from weboob.browser.elements import ListElement, ItemElement, method from weboob.browser.pages import HTMLPage, pagination from weboob.browser.filters.standard import ( Filter, Env, CleanText, CleanDecimal, Field, DateGuesser, Regexp ) -from weboob.browser.filters.html import Link, AbsoluteLink, TableCell +from weboob.browser.filters.html import AbsoluteLink, TableCell from weboob.browser.filters.javascript import JSVar from .landing_pages import GenericLandingPage @@ -201,13 +201,6 @@ def next_page(self): class CBOperationPage(GenericLandingPage): is_here = '//h1[text()="Historique des opérations"]' - def get_params(self, url): - parsed = urlparse(url) - base_url, params = parsed.path, parse_qs(parsed.query) - for a in self.doc.xpath('//form[@name="FORM_LIB_CARTE"]//a[contains(@href, "sessionid")]'): - params['sessionid'] = parse_qs(urlparse(Link('.')(a)).query)['sessionid'] - yield base_url, params - @pagination @method class get_history(Pagination, Transaction.TransactionsElement):