From f413c617e05363fb8a089bca5dd7617a0fb2985a Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Sat, 20 Nov 2021 15:59:46 +0100 Subject: [PATCH] Bypass lcl privacy notice --- ofx_processor/downloaders/lcl.py | 6 ++++++ pyproject.toml | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ofx_processor/downloaders/lcl.py b/ofx_processor/downloaders/lcl.py index f31fafc..d447166 100644 --- a/ofx_processor/downloaders/lcl.py +++ b/ofx_processor/downloaders/lcl.py @@ -38,6 +38,12 @@ class LclDownloader: click.secho("Logging in to LCL...", fg="blue") selenium.get("https://monespace.lcl.fr/connexion") + try: + self._click(By.ID, "popin_tc_privacy_button_2") + except: + # If the user has already accepted the privacy policy, + # the button is not present + pass login_input = selenium.find_element(By.ID, "identifier") login_input.send_keys(self.config.bank_identifier) self._click(By.CLASS_NAME, "app-cta-button") diff --git a/pyproject.toml b/pyproject.toml index 7bd9dda..c0cf15c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "ofx-processor" -version = "3.2.0" +version = "3.2.1" description = "Personal ofx processor" readme = "README.md" license = "GPL-3.0-or-later"