From e5cf80aec8190345f9cb737502b8305f8a557ce4 Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Fri, 2 Jan 2015 16:46:48 +0100 Subject: [PATCH] add method Browser.set_profile --- weboob/browser/browsers.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/weboob/browser/browsers.py b/weboob/browser/browsers.py index b09bbace..22a1296a 100644 --- a/weboob/browser/browsers.py +++ b/weboob/browser/browsers.py @@ -195,6 +195,9 @@ class Browser(object): session.cookies = WeboobCookieJar() + def set_profile(self, profile): + profile.setup_session(self.session) + def location(self, url, **kwargs): """ Like :meth:`open` but also changes the current URL and response.