summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Tauber <asciimoo@gmail.com>2019-12-11 15:45:02 +0000
committerGitHub <noreply@github.com>2019-12-11 15:45:02 +0000
commit3f93fe04d8c43191cc3bff51c9add1c35728c789 (patch)
tree000fb59c52d849f69989cdbac6e8967ccaf56fe5
parentb0177847f8e04d0465489b9c906b485c6c7d8018 (diff)
parentd0d91fa331684b37b495c11631ec16a0def04165 (diff)
downloadsearxng-3f93fe04d8c43191cc3bff51c9add1c35728c789.tar.gz
searxng-3f93fe04d8c43191cc3bff51c9add1c35728c789.zip
Merge pull request #1752 from MarcAbonce/user-agents-update
User agents update
-rwxr-xr-xmanage.sh6
-rw-r--r--searx/data/useragents.json15
2 files changed, 14 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..abb81000c 100644
--- a/searx/data/useragents.json
+++ b/searx/data/useragents.json
@@ -1,14 +1,15 @@
{
- "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"
+ "70.0.1",
+ "70.0",
+ "69.0.3",
+ "69.0.2",
+ "69.0.1",
+ "69.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