From ed94b3dbb395b26c31ed5b95e57f40a99e3c3b13 Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Sat, 11 Oct 2014 14:18:57 +0200 Subject: [PATCH] fix website changes --- modules/alloresto/browser.py | 2 +- modules/alloresto/pages.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/alloresto/browser.py b/modules/alloresto/browser.py index a6ec0a45..d790c92a 100644 --- a/modules/alloresto/browser.py +++ b/modules/alloresto/browser.py @@ -28,7 +28,7 @@ __all__ = ['AlloRestoBrowser'] class AlloRestoBrowser(LoginBrowser): - BASEURL = 'http://www.alloresto.fr' + BASEURL = 'https://www.alloresto.fr' login = URL('/identification-requise.*', LoginPage) accounts = URL('/chez-moi/releve-compte-miams', AccountsPage) diff --git a/modules/alloresto/pages.py b/modules/alloresto/pages.py index 4c33eb42..1e248da5 100644 --- a/modules/alloresto/pages.py +++ b/modules/alloresto/pages.py @@ -30,7 +30,7 @@ from weboob.tools.capabilities.bank.transactions import FrenchTransaction as Tra class LoginPage(HTMLPage): def login(self, username, password): - form = self.get_form(nr=1) + form = self.get_form(xpath='//form[has-class("form_o")]') form['uname'] = username form['pass'] = password form.submit()