From 3728ba2e7481275a3b09d6b69e3539ffa551791c Mon Sep 17 00:00:00 2001 From: Laurent Bachelier Date: Sun, 24 Aug 2014 15:18:33 +0200 Subject: [PATCH] Update Firefox versions to latest ESR --- weboob/tools/browser/browser.py | 2 +- weboob/tools/browser2/browser.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/weboob/tools/browser/browser.py b/weboob/tools/browser/browser.py index d027605a..c84fe546 100644 --- a/weboob/tools/browser/browser.py +++ b/weboob/tools/browser/browser.py @@ -148,7 +148,7 @@ class StandardBrowser(mechanize.Browser): ENCODING = 'utf-8' USER_AGENTS = { - 'desktop_firefox': 'Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20100101 Firefox/17.0', + 'desktop_firefox': 'Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0', 'android': 'Mozilla/5.0 (Linux; U; Android 2.1; en-us; Nexus One Build/ERD62) AppleWebKit/530.17 (KHTML, like Gecko) Version/4.0 Mobile Safari/530.17', 'microb': 'Mozilla/5.0 (X11; U; Linux armv7l; fr-FR; rv:1.9.2.3pre) Gecko/20100723 Firefox/3.5 Maemo Browser 1.7.4.8 RX-51 N900', 'wget': 'Wget/1.11.4', diff --git a/weboob/tools/browser2/browser.py b/weboob/tools/browser2/browser.py index feb135b1..3bf52b38 100644 --- a/weboob/tools/browser2/browser.py +++ b/weboob/tools/browser2/browser.py @@ -77,7 +77,7 @@ class Firefox(Profile): Try to mimic a specific version of Firefox. Ideally, it should follow the current ESR Firefox: https://www.mozilla.org/en-US/firefox/organizations/all.html - Do not change the Firefox version without changing the Gecko one! + Do not change the Firefox version without checking the Gecko one! """ def setup_session(self, session): @@ -94,7 +94,7 @@ class Firefox(Profile): 'Accept-Language': 'en-us,en;q=0.5', 'Accept-Encoding': 'gzip, deflate', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', - 'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Firefox/24.0', + 'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0', 'DNT': '1'}