diff --git a/manage.sh b/manage.sh index dbe48d31..a450c6df 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 850bc418..f7bfd0b6 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