From 94ca30de1b53ce8a03a83bfe3545ec6b642d560b Mon Sep 17 00:00:00 2001 From: Marc Abonce Seguin Date: Thu, 27 Jun 2019 21:11:57 -0500 Subject: [PATCH 1/2] add a shortcut for utils/fetch_firefox_version.py in manage.sh --- manage.sh | 6 ++++++ searx/data/useragents.json | 20 +++++++++++++------- 2 files changed, 19 insertions(+), 7 deletions(-) diff --git a/manage.sh b/manage.sh index dbe48d31d..a450c6dfd 100755 --- a/manage.sh +++ b/manage.sh @@ -70,6 +70,11 @@ locales() { pybabel compile -d "$SEARX_DIR/translations" } +update_useragents() { + echo '[!] Updating user agent versions' + python utils/fetch_firefox_version.py +} + pep8_check() { echo '[!] Running pep8 check' # ignored rules: @@ -246,6 +251,7 @@ Commands update_dev_packages - Check & update development and production dependency changes install_geckodriver - Download & install geckodriver if not already installed (required for robot_tests) npm_packages - Download & install npm dependencies + update_useragents - Update useragents.json with the most recent versions of Firefox Build ----- diff --git a/searx/data/useragents.json b/searx/data/useragents.json index 850bc418a..f7bfd0b68 100644 --- a/searx/data/useragents.json +++ b/searx/data/useragents.json @@ -1,14 +1,20 @@ { - "ua": "Mozilla/5.0 ({os}; rv:{version}) Gecko/20100101 Firefox/{version}", "versions": [ - "61.0.1", - "61.0", - "60.0.2", - "60.0.1", - "60.0" + "67.0.4", + "67.0.3", + "67.0.2", + "67.0.1", + "67.0", + "66.0.5", + "66.0.4", + "66.0.3", + "66.0.2", + "66.0.1", + "66.0" ], "os": [ "Windows NT 10; WOW64", "X11; Linux x86_64" - ] + ], + "ua": "Mozilla/5.0 ({os}; rv:{version}) Gecko/20100101 Firefox/{version}" } \ No newline at end of file From d0d91fa331684b37b495c11631ec16a0def04165 Mon Sep 17 00:00:00 2001 From: Marc Abonce Seguin Date: Sat, 23 Nov 2019 19:27:49 -0700 Subject: [PATCH 2/2] update user agents --- searx/data/useragents.json | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/searx/data/useragents.json b/searx/data/useragents.json index f7bfd0b68..abb81000c 100644 --- a/searx/data/useragents.json +++ b/searx/data/useragents.json @@ -1,16 +1,11 @@ { "versions": [ - "67.0.4", - "67.0.3", - "67.0.2", - "67.0.1", - "67.0", - "66.0.5", - "66.0.4", - "66.0.3", - "66.0.2", - "66.0.1", - "66.0" + "70.0.1", + "70.0", + "69.0.3", + "69.0.2", + "69.0.1", + "69.0" ], "os": [ "Windows NT 10; WOW64",