Bypass lcl privacy notice

This commit is contained in:
Gabriel Augendre 2021-11-20 15:59:46 +01:00
parent e350e8c75c
commit f413c617e0
2 changed files with 7 additions and 1 deletions

View file

@ -38,6 +38,12 @@ class LclDownloader:
click.secho("Logging in to LCL...", fg="blue") click.secho("Logging in to LCL...", fg="blue")
selenium.get("https://monespace.lcl.fr/connexion") 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 = selenium.find_element(By.ID, "identifier")
login_input.send_keys(self.config.bank_identifier) login_input.send_keys(self.config.bank_identifier)
self._click(By.CLASS_NAME, "app-cta-button") self._click(By.CLASS_NAME, "app-cta-button")

View file

@ -1,6 +1,6 @@
[tool.poetry] [tool.poetry]
name = "ofx-processor" name = "ofx-processor"
version = "3.2.0" version = "3.2.1"
description = "Personal ofx processor" description = "Personal ofx processor"
readme = "README.md" readme = "README.md"
license = "GPL-3.0-or-later" license = "GPL-3.0-or-later"