Alexandre Flament
72f5e7cfb8
js_variable_to_python: add tests, handle more JS syntax
...
The tests from chompjs are copied.
The comment out tests do not pass.
The implementation of js_variable_to_python has been updated:
* in the main looop, try to make the four different cases more clear
* handle decimal number like "-.5", "5." or "- 5" (without double quote)
* the character ` is seen a string delimiter as intended in JS
* the identifiers follow JS specification ($, _, letters and numbers)
2023-09-16 18:30:57 +00:00
Alexandre Flament
d07c006aed
Replace chompjs with pure Python code
...
The new implementation is good enough for the current usage (brave)
2023-09-09 13:02:36 +02:00
Alexandre Flament
faa4280e1a
[mod] bing: resolve redirect without additional requests
...
Remove the usage of searx.network.multi_requests
The results from Bing contains the target URL encoded in base64
See the u parameter, remove the first two character "a1", and done.
Also add a comment the check of the result_len / pageno
( from https://github.com/searx/searx/pull/1387 )
2023-08-29 07:39:06 +02:00
Alexandre Flament
97b1df1629
[mod] searx.network: memory optimization
...
Avoid to create a SSLContext in AsyncHTTPTransportNoHttp
See:
* https://github.com/encode/httpx/blob/0f61aa58d66680c239ce43c8cdd453e7dc532bfc/httpx/_transports/default.py#L271
* https://github.com/encode/httpx/issues/2298
2023-08-27 11:49:40 +02:00
Alexandre Flament
e16c007c22
[fix] openstreetmap engine
...
It seems there is an API change:
extratags can be either a dictionnary or None.
This commit avoid crash when extratags is None
Test query "!osm gare du nord"
2023-08-27 11:49:16 +02:00
Alexandre Flament
b4e4cfc026
Bump httpx 0.21.2 from to 0.24.1
2023-08-21 22:05:12 +02:00
Alexandre Flament
4573417b6c
uwsgi.ini: remove unused cache2
...
cache2 was used before PR #1856
2023-08-13 07:55:05 +02:00
Alexandre Flament
b07e44e552
Update AUTHORS.rst
2023-04-12 14:01:54 +02:00
Alexandre Flament
71bd091f6b
Merge pull request #2327 from return42/ui-pref-add-bang
...
[mod] in the preference page, show !bang of subgrouping categories
2023-04-08 11:20:03 +02:00
Alexandre Flament
3841435587
Merge pull request #2274 from searxng/codespaces
...
Add GitHub Codespaces configuration
2023-03-22 08:17:34 +01:00
Alexandre Flament
7b711cb15d
Add GitHub Codespaces configuration
2023-03-21 20:58:13 +00:00
Alexandre Flament
3e9cddc606
rollback test
2023-03-15 19:55:20 +01:00
Alexandre Flament
41ed0ef0c7
test
2023-03-15 19:53:53 +01:00
Alexandre Flament
abd2d8605e
Merge pull request #2231 from return42/fix-docs_prebuild
...
[fix] make docs: NameError: name 'DOC' is not defined
2023-03-02 18:37:25 +01:00
Alexandre Flament
714e83d5ea
Merge pull request #2220 from Solirs/gentoo_engine_timeout
...
Increase timeout for gentoo wiki engine
2023-03-01 17:57:21 +01:00
Alexandre Flament
1632f18631
Merge pull request #2227 from searxng/update_data_update_engine_descriptions.py
...
Update searx.data - update_engine_descriptions.py
2023-03-01 17:52:57 +01:00
Alexandre Flament
5bbbb14b62
Merge pull request #2226 from searxng/update_data_update_ahmia_blacklist.py
...
Update searx.data - update_ahmia_blacklist.py
2023-03-01 17:52:02 +01:00
Alexandre Flament
507cdf3fd3
Merge pull request #2223 from searxng/update_data_update_firefox_version.py
...
Update searx.data - update_firefox_version.py
2023-03-01 17:51:40 +01:00
Alexandre Flament
d669da81fb
Merge pull request #2027 from dalf/fix_2018
...
Add "auto" as a language.
2023-02-20 12:17:38 +01:00
Alexandre Flament
6748e8e2d5
Add "Auto-detected" as a language.
...
When the user choose "Auto-detected", the choice remains on the following queries.
The detected language is displayed.
For example "Auto-detected (en)":
* the next query language is going to be auto detected
* for the current query, the detected language is English.
This replace the autodetect_search_language plugin.
2023-02-17 15:17:36 +00:00
Alexandre Flament
675dc04917
Merge pull request #2183 from return42/node.env.dev
...
[mod] install developer tools by: make node.env.dev
2023-02-11 18:30:29 +01:00
Alexandre Flament
9d102fb08f
Merge pull request #2132 from dalf/update_pr_1967
...
search.suspended_time settings: bug fixes
2023-01-29 20:48:43 +01:00
Alexandre Flament
bfca63c536
wikipedia engine: update _fetch_supported_languages
...
the layout https://meta.wikimedia.org/wiki/List_of_Wikipedias has changed
2023-01-29 10:01:58 +00:00
Alexandre Flament
8256de2fe8
peertube engine: update _fetch_supported_languages
...
There is now an API to get the list of supported languages
https://docs.joinpeertube.org/api-rest-reference.html#tag/Video/operation/getLanguages
2023-01-29 10:01:54 +00:00
Alexandre Flament
37addec69e
search.suspended_time settings: bug fixes
...
* fix type in settings.yml: replace suspend_times by suspended_times
* always use delay defined in settings.yml:
* HTTP status 402 and 403: read the value from settings.yml instead of using the hardcoded value of 1 day.
* startpage engine: CAPTCHA suspend the engine for one day instead of one week
2023-01-28 10:24:14 +00:00
Alexandre Flament
6b71721ce8
Merge pull request #2106 from searxng/dependabot/pip/master/mock-5.0.1
...
Bump mock from 5.0.0 to 5.0.1
2023-01-27 11:51:42 +01:00
Alexandre Flament
7d676880e2
Merge pull request #2104 from searxng/dependabot/pip/master/yamllint-1.29.0
...
Bump yamllint from 1.28.0 to 1.29.0
2023-01-27 10:44:44 +01:00
Alexandre Flament
f6c6de2f9e
Merge pull request #2103 from searxng/dependabot/pip/master/pylint-2.15.10
...
Bump pylint from 2.15.9 to 2.15.10
2023-01-27 10:44:14 +01:00
Alexandre Flament
28356f4284
Merge pull request #2115 from searxng/dependabot/pip/master/flask-babel-3.0.0
...
Bump flask-babel from 2.0.0 to 3.0.0
2023-01-27 10:43:17 +01:00
Alexandre Flament
a8eb9d15e2
Merge pull request #2122 from dalf/fix_version_again
...
SearXNG version: YYYY.MM.DD without leading zero
2023-01-22 14:31:00 +01:00
Alexandre Flament
06b5068a2e
SearXNG version: YYYY.MM.DD without leading zero
2023-01-22 10:45:00 +00:00
Alexandre Flament
674dae946a
Merge pull request #2119 from dalf/weblate_codeberg
...
weblate: migration to https://translate.codeberg.org/
2023-01-21 17:01:16 +01:00
Alexandre Flament
a9d6f7532a
weblate: migration to https://translate.codeberg.org/
2023-01-21 15:45:12 +00:00
Alexandre Flament
316fcd5e4b
Merge pull request #2116 from searxng/translations_update
...
Update translations
2023-01-20 13:11:50 +01:00
Alexandre Flament
934d97b472
Merge pull request #2118 from dalf/fix_version_continuation
...
SearXNG version: fix make docker
2023-01-20 12:31:24 +01:00
Alexandre Flament
f759a84af4
SearXNG version: fix make docker
...
continuation of #2117
related to #2111
This commit:
* fixes the Docker tag using an additional variable DOCKER_TAG, see searx/version.py
* fixes the Docker labels org.label-schema.vcs-ref and org.opencontainers.image.revision
* adds searx/version_frozen to .gitignore
2023-01-20 10:46:00 +00:00
Alexandre Flament
eed9b09d98
Merge pull request #2117 from dalf/fix_version_number
...
Version number follows PEP440 : replace - by +
2023-01-20 10:17:08 +01:00
Alexandre Flament
0515f2974b
Version number follows PEP440 : replace - by +
...
Close #2111
2023-01-20 09:05:44 +00:00
Alexandre Flament
6d72ef3cbe
Merge pull request #2109 from ahmad-alkadri/fix/highlight-full-word
...
Standalone words highlighting for query result in non-CJK characters
2023-01-17 23:24:04 +01:00
Alexandre Flament
13b0c251c4
Merge pull request #2100 from nexryai/master
...
Add goo engine
2023-01-15 23:08:28 +01:00
Alexandre Flament
52d4155997
Merge pull request #1967 from tiekoetter/suspended_time-settings
...
settings.yml: add search.suspended_times
2023-01-15 10:07:44 +01:00
Alexandre Flament
b720a495f0
Merge pull request #2105 from searxng/dependabot/pip/master/redis-4.4.2
...
Bump redis from 4.4.0 to 4.4.2
2023-01-14 18:28:17 +01:00
Alexandre Flament
449aebaea6
Merge pull request #2107 from searxng/translations_update
...
Update translations
2023-01-14 18:27:54 +01:00
Alexandre Flament
18d895ffed
Merge pull request #2097 from immanuelfodor/patch-1
...
Adjust uWSGI workers and threads from env
2023-01-14 16:36:57 +01:00
Alexandre Flament
0d4896170f
Merge pull request #2047 from dalf/fasttext-predict
...
Use fasttext-predict instead of fasttext(-wheel)
2022-12-26 20:50:09 +01:00
Alexandre Flament
f3515041af
Lazy load fasttext-predict
2022-12-26 18:44:23 +00:00
Alexandre Flament
ec4237586d
Use fasttext-predict instead of fasttext or fasttext-wheel
...
See https://github.com/searxng/fasttext-predict
2022-12-26 18:44:21 +00:00
Alexandre Flament
b927482195
Merge pull request #2019 from ArtikusHG/fasttext
...
Replace langdetect with fasttext (followup of #1969 )
2022-12-16 21:54:07 +01:00
Alexandre Flament
2a51c85672
Merge pull request #1974 from fehho/query-string-deserial
...
[fix] Deserialize preferences which are explicitly blank strings
2022-12-16 18:56:30 +01:00
Alexandre Flament
9e9f57e48b
Merge pull request #1954 from dalf/fix.redis.init.2
...
[fix] follow up of PR-1856
2022-12-14 07:08:19 +01:00
Alexandre Flament
3050e2b6e8
[fix] documentation about update-searxng.rst
2022-12-10 10:06:54 +01:00
Alexandre Flament
b971167ced
move searx.shared.redisdb to searx.redisdb
2022-12-10 09:26:38 +01:00
Alexandre Flament and Markus Heiser
34e260f88f
[fix] follow up of PR-1856
...
- the environment variable SEARXNG_REDIS_URL overrides the setting value redis.url
- ./manage sets SEARXNG_REDIS_URL to unix:///usr/local/searxng-redis/run/redis.sock if:
- the socket exists
- SEARXNG_REDIS_URL is not already defined
Update of PR #1856
Co-authored-by: Markus Heiser <markus.heiser@darmarit.de >
2022-12-10 09:26:38 +01:00
Alexandre Flament
abb33bd7dd
Merge pull request #2016 from searxng/translations_update
...
Update translations
2022-12-09 10:17:35 +01:00
Alexandre Flament
0b1f09faa4
Merge pull request #2013 from searxng/dependabot/pip/master/redis-4.4.0
...
Bump redis from 4.3.5 to 4.4.0
2022-12-09 10:16:47 +01:00
Alexandre Flament
6479b67cd2
Merge pull request #2014 from searxng/dependabot/pip/master/selenium-4.7.2
...
Bump selenium from 4.7.0 to 4.7.2
2022-12-09 10:13:55 +01:00
Alexandre Flament
a6d870d5cf
Merge pull request #2015 from searxng/dependabot/pip/master/pylint-2.15.8
...
Bump pylint from 2.15.7 to 2.15.8
2022-12-09 10:08:12 +01:00
Alexandre Flament
3df1a9839a
Merge pull request #2017 from searxng/dependabot/pip/certifi-2022.12.7
...
Bump certifi from 2022.9.24 to 2022.12.7
2022-12-09 10:07:18 +01:00
Alexandre Flament
67eea86b35
Merge pull request #2006 from dalf/fix_1951
...
Fix: don't crash when engine or name is missing in settings.yml
2022-12-05 13:43:38 +01:00
Alexandre Flament
269326063a
Fix: don't crash when engine or name is missing in settings.yml
...
SearXNG crashes if the engine or name fields are missing.
With this commit, the app displays an error in the log and keeps loading.
Close #1951
2022-12-04 23:43:59 +01:00
Alexandre Flament
768659f2bd
Merge pull request #1988 from ryankask/fix-redis-conn-logging
...
Copy client connection kwargs before mutating
2022-11-29 19:38:54 +01:00
Alexandre Flament
b5371b7a85
Merge pull request #1963 from searxng/translations_update
...
Update translations
2022-11-19 17:26:05 +01:00
Alexandre Flament
1cdadf4bfd
Merge pull request #1948 from searxng/dependabot/pip/master/selenium-4.6.0
...
Bump selenium from 4.5.0 to 4.6.0
2022-11-18 14:20:11 +01:00
Alexandre Flament
fe8b0472dd
Merge pull request #1949 from searxng/translations_update
...
Update translations
2022-11-18 14:19:51 +01:00
Alexandre Flament
d3949269a9
Merge pull request #1942 from dalf/fix_redis_initialization
...
[FIX] Redis initialization
2022-11-07 23:16:04 +01:00
Alexandre Flament
8f19bdaf17
Merge pull request #1882 from fehho/metacpan
...
Add MetaCPAN engine
2022-11-07 21:54:11 +01:00
Alexandre Flament
ae54c7d525
Merge pull request #1938 from Evhorizon/master
...
Update network.py
2022-11-06 21:20:38 +01:00
Alexandre Flament
2dc5c0e1d6
Merge pull request #1928 from searxng/translations_update
...
Update translations
2022-11-06 11:29:28 +01:00
Alexandre Flament
4fe5463671
Merge pull request #1869 from vgerak/1836-ddg-weather
...
Fix floating point format in DDG weather humidity
2022-11-05 22:46:50 +01:00
Alexandre Flament
e473addaff
User agent: don't include the patch number in the Firefox version
...
The Firefox version in the user agent doesn't include the patch version: 106.0 not 106.0.2
Close #1914
2022-11-05 22:04:37 +01:00
Alexandre Flament
e9f42e1c22
Merge pull request #1918 from LinuxMeow/patch-1
...
Remove unused volume
2022-11-05 19:45:13 +01:00
Alexandre Flament
d37afb8ab9
Merge pull request #1856 from dalf/checker_requires_redis
...
The checker requires Redis
2022-11-05 17:50:40 +01:00
Alexandre Flament
fe419e355b
The checker requires Redis
...
Remove the abstraction in searx.shared.SharedDict.
Implement a basic and dedicated scheduler for the checker using a Redis script.
2022-11-05 12:04:50 +01:00
Alexandre Flament
d764d94a70
Merge pull request #1927 from searxng/dependabot/pip/master/babel-2.11.0
...
Bump babel from 2.10.3 to 2.11.0
2022-11-05 11:38:16 +01:00
Alexandre Flament
d3a7399ed7
Merge pull request #1929 from dalf/github_workflow_update
...
GH workflow: various improvements
2022-11-05 11:14:09 +01:00
Alexandre Flament
710a3a001f
Merge pull request #1873 from searxng/translations_update
...
Update translations
2022-10-21 10:06:32 +02:00
Alexandre Flament
1a5b096578
Merge pull request #1860 from dalf/fix-startpage
...
[fix] startpage engine
2022-10-14 20:40:51 +02:00
Alexandre Flament
096d9defa6
Merge pull request #1847 from searxng/dependabot/pip/master/typing-extensions-4.4.0
...
Bump typing-extensions from 4.3.0 to 4.4.0
2022-10-14 16:26:19 +02:00
Alexandre Flament
e2dd5a80bb
Merge pull request #1831 from searxng/dependabot/pip/master/sphinx-5.2.3
...
Bump sphinx from 5.1.1 to 5.2.3
2022-10-14 16:25:45 +02:00
Alexandre Flament
4d4dfc58d4
Merge pull request #1858 from searxng/dependabot/pip/master/pylint-2.15.4
...
Bump pylint from 2.15.3 to 2.15.4
2022-10-14 16:24:40 +02:00
Alexandre Flament
2eb817011c
Merge pull request #1529 from dalf/network_trust_env
...
searx.network: use SSL_CERT_FILE and SSL_CERT_DIR when they are defined
2022-10-14 16:06:29 +02:00
Alexandre Flament
32e8c2cf09
searx.network: add "verify" option to the networks
...
Each network can define a verify option:
* false to disable certificate verification
* a path to existing certificate.
SearXNG uses SSL_CERT_FILE and SSL_CERT_DIR when they are defined
see https://www.python-httpx.org/environment_variables/#ssl_cert_file
2022-10-14 13:59:22 +00:00
Alexandre Flament
72f6367e23
Merge pull request #1859 from searxng/translations_update
...
Update translations
2022-10-14 12:18:39 +02:00
Alexandre Flament
666cd1f635
Merge pull request #1846 from searxng/dependabot/pip/master/black-22.10.0
...
Bump black from 22.8.0 to 22.10.0
2022-10-07 10:07:24 +02:00
Alexandre Flament
84f61af839
Merge pull request #1848 from searxng/translations_update
...
Update translations
2022-10-07 10:05:26 +02:00
Alexandre Flament
901143f056
Merge pull request #1830 from MohamedElashri/master
...
Use official sci-hub mirrors
2022-10-01 09:59:07 +02:00
Alexandre Flament
14d0fb2cd4
Merge pull request #1823 from searxng/dependabot/pip/master/selenium-4.5.0
...
Bump selenium from 4.4.3 to 4.5.0
2022-10-01 09:42:11 +02:00
Alexandre Flament
e9af772b65
Merge pull request #1826 from searxng/dependabot/pip/master/myst-parser-0.18.1
...
Bump myst-parser from 0.18.0 to 0.18.1
2022-10-01 09:34:36 +02:00
Alexandre Flament
62324655ff
Merge pull request #1827 from searxng/translations_update
...
Update translations
2022-09-30 10:52:53 +02:00
Alexandre Flament
f4281b16ff
Merge pull request #1824 from searxng/dependabot/pip/master/certifi-2022.9.24
...
Bump certifi from 2022.9.14 to 2022.9.24
2022-09-30 10:51:40 +02:00
Alexandre Flament
a7d693231c
Merge pull request #1819 from searxng/update_data_update_currencies.py
...
Update searx.data - update_currencies.py
2022-09-29 16:03:34 +02:00
Alexandre Flament
f3d25f9cef
Merge pull request #1821 from searxng/update_data_update_engine_descriptions.py
...
Update searx.data - update_engine_descriptions.py
2022-09-29 16:02:57 +02:00
Alexandre Flament
5060732486
Merge pull request #1818 from searxng/update_data_update_ahmia_blacklist.py
...
Update searx.data - update_ahmia_blacklist.py
2022-09-29 16:02:02 +02:00
Alexandre Flament
520a873ab4
Merge pull request #1820 from searxng/update_data_update_wikidata_units.py
...
Update searx.data - update_wikidata_units.py
2022-09-29 16:01:31 +02:00
Alexandre Flament
5f34015445
Merge pull request #1817 from searxng/update_data_update_firefox_version.py
...
Update searx.data - update_firefox_version.py
2022-09-29 16:00:37 +02:00
Alexandre Flament
a3148e5115
Merge pull request #1814 from return42/fix-typos
...
[fix] typos / reported by @kianmeng in searx PR-3366
2022-09-28 09:22:02 +02:00
Alexandre Flament
0e00af9c26
Merge pull request #1810 from return42/fix-1809
...
[fix] springer: unsupported operand type(s) for +: 'NoneType' and 'str'
2022-09-28 09:20:03 +02:00
Alexandre Flament
7097508a67
Merge pull request #1811 from return42/fix-paper.html
...
[fix] doc of the paper.html template (isbn, issn)
2022-09-28 09:19:20 +02:00
Alexandre Flament
94c4cc126b
Merge pull request #1806 from return42/paper-link
...
fix some leftovers in the science category
2022-09-24 22:11:35 +02:00
Alexandre Flament
bfd6f61849
Merge pull request #1804 from return42/fix-core.ac.uk
...
core.ac.uk: use paper.html template
2022-09-24 15:12:05 +02:00