on master help sign in
add a shortcut for utils/fetch_firefox_version.py in manage.sh
commit94ca30de1b53ce8a03a83bfe3545ec6b642d560b authorMarc Abonce Seguin <marc-abonce@mailbox.org> dateThu 27 Jun 2019, 21:11 (7 years ago) parent42d5e2c
2 files changed+19−7
manage.sh+6 searx/data/useragents.json+13−7
manage.sh+6
@@ -70,6 +70,11 @@ locales() {
7070 pybabel compile -d "$SEARX_DIR/translations"
7171}
7272
73+update_useragents() {
74+ echo '[!] Updating user agent versions'
75+ python utils/fetch_firefox_version.py
76+}
77+
7378pep8_check() {
7479 echo '[!] Running pep8 check'
7580 # ignored rules:
@@ -246,6 +251,7 @@ Commands
246251 update_dev_packages - Check & update development and production dependency changes
247252 install_geckodriver - Download & install geckodriver if not already installed (required for robot_tests)
248253 npm_packages - Download & install npm dependencies
254+ update_useragents - Update useragents.json with the most recent versions of Firefox
249255
250256 Build
251257 -----
searx/data/useragents.json+13−7
@@ -1,14 +1,20 @@
11{
2− "ua": "Mozilla/5.0 ({os}; rv:{version}) Gecko/20100101 Firefox/{version}",
32 "versions": [
4− "61.0.1",
5− "61.0",
6− "60.0.2",
7− "60.0.1",
8− "60.0"
3+ "67.0.4",
4+ "67.0.3",
5+ "67.0.2",
6+ "67.0.1",
7+ "67.0",
8+ "66.0.5",
9+ "66.0.4",
10+ "66.0.3",
11+ "66.0.2",
12+ "66.0.1",
13+ "66.0"
914 ],
1015 "os": [
1116 "Windows NT 10; WOW64",
1217 "X11; Linux x86_64"
13− ]
18+ ],
19+ "ua": "Mozilla/5.0 ({os}; rv:{version}) Gecko/20100101 Firefox/{version}"
1420}