Commit Graph

4629 Commits

Author SHA1 Message Date
Markus Heiser 17048c5137 [fix] engine: wikicommons - don't quoute ':|' in URL parameters
From [1]: It seems to be because of [2] For some reason it gets url encoded
twice, resulting in

- ``filetype%253Abitmap%257Cdrawing+birds`` instead of
- ``filetype:bitmap%7Cdrawing+birds``

[1] https://github.com/searxng/searxng/issues/2707
[2] https://github.com/searxng/searxng/blob/master/searx/engines/wikicommons.py#L43

Closes: #2707
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2023-09-04 17:25:30 +02:00
Markus Heiser 4b3c985064 [fix] follow-up of 4da7003ae / add missing review from @Bnyro
[1] https://github.com/searxng/searxng/pull/2656#pullrequestreview-1607956209

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2023-09-04 17:25:30 +02:00
Hackurei 9f2e0b276b [feat] engine: implementation of odysee 2023-09-04 17:25:30 +02:00
Bnyro 8e0fae9dc4 [feat] implementation of Wikimedia commons for images 2023-09-04 17:25:30 +02:00
searxng-bot 5dd289ccad [translations] update from Weblate
979909acc - 2023-09-01 - return42 <markus.heiser@darmarit.de>
f40af3403 - 2023-08-28 - return42 <markus.heiser@darmarit.de>
2023-09-04 17:25:30 +02:00
Jafar Farganlooj d053ac5397 Create search-syntax.md fa 2023-09-04 17:25:30 +02:00
Jafar Farganlooj bbf23ef88c [mod] Persian translation of the about page (fa_IR) 2023-09-04 17:25:30 +02:00
Alexandre Flament 21ba135aae [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-09-04 17:25:30 +02:00
dalf f59c72f703 Update searx.data - update_firefox_version.py 2023-09-04 17:25:30 +02:00
dalf 32997c1e89 Update searx.data - update_ahmia_blacklist.py 2023-09-04 17:25:30 +02:00
dalf 59921b3969 Update searx.data - update_currencies.py 2023-09-04 17:25:30 +02:00
dalf 0495263970 Update searx.data - update_engine_descriptions.py 2023-09-04 17:25:30 +02:00
dalf 3929ff941c Update searx.data - update_wikidata_units.py 2023-09-04 17:25:30 +02:00
Markus Heiser cb07e8966e [fix] reduce error logs related to X-Forwarded-For & X-Real-IP headers
To test start a `make run` instance and query multiple times for `ip` (the
answerer), you should see only once the error message(s):

    ERROR   searx.botdetection            : X-Forwarded-For header is not set!
    ERROR   searx.botdetection            : X-Real-IP header is not set!

[1] https://github.com/searxng/searxng-docker/discussions/174
[2] https://github.com/searxng/searxng-docker/pull/162#issuecomment-1692834457

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2023-09-04 17:25:30 +02:00
Markus Heiser 97b326a0e3 [build] /static 2023-09-04 17:25:30 +02:00
MatthieuBarbu 45ef7ef25e add rebuild theme 2023-08-28 10:28:48 +02:00
Bnyro 82b6bdd708 [mod] preferences.py: add and use BooleanSetting for checkbox preferences 2023-08-28 10:25:44 +02:00
Bnyro d12e02b1da [feat] settings: replace boolean select preferences with checkboxes 2023-08-28 10:25:44 +02:00
Bnyro f18da4de17 [mod] random answerer: add random hex color generator 2023-08-28 10:25:44 +02:00
Markus Heiser 4016ee8842 [doc] add documentation of Mwmbl engine & autocompleter
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2023-08-28 10:25:44 +02:00
Bnyro 607be42b17 [mod] autocomplete.py: add support for mwmbl completions 2023-08-28 10:25:44 +02:00
Bnyro bd96f7f792 [mod] engine mwmbl: add link to official api docs 2023-08-28 10:25:44 +02:00
Alexandre Flament 89fe1c6c1a [mod] searx.network: memory optimization
Avoid to create a SSLContext in AsyncHTTPTransportNoHttp

See:
* 0f61aa58d6/httpx/_transports/default.py (L271)
* https://github.com/encode/httpx/issues/2298
2023-08-28 10:25:44 +02:00
Alexandre Flament 159b7c30fe [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-28 10:25:44 +02:00
Markus Heiser 4c4ee13196 [fix] google engine: don't overspecify the search query to Google
The method EngineTraits.get_region(..) returns engine's region string
that **best fits** to SearXNG's locale.  This means it returns a
region (country) if only a language is set in the locale.  By example the method
returns for a locale tag `es` a region `ES`.

Google's search parameter `cr` restricts search results to documents originating
in a particular country / in case of a locale tag (language) as described above,
this argument should be unset in the query send to Google.

Closes: https://github.com/searxng/searxng/issues/2672
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2023-08-28 10:25:44 +02:00
searxng-bot 7ab3385558 [translations] update from Weblate
a6c2d1988 - 2023-08-22 - shoko <nickskorohod@outlook.com>
38bc33a71 - 2023-08-20 - return42 <markus.heiser@darmarit.de>
0ff21aa3c - 2023-08-19 - MonsoonFire <re1qnb5mq@mozmail.com>
2023-08-28 10:25:44 +02:00
Alexandre Flament 3ea3ade01b Bump httpx 0.21.2 from to 0.24.1 2023-08-28 10:25:44 +02:00
Markus Heiser 80b6001ed2 [fix] engine google_video: google has changed the layout of the rsponse
Closes: https://github.com/searxng/searxng/issues/2664
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2023-08-28 10:25:44 +02:00
Markus Heiser b283dedf39 [mod] decrease the weighting of wikivoyage, wikibooks, wikisource and wikiversity
The search engines deliver hits for many search terms [1], but these are usually
not the focus of the user. In order to arrange these hits further down in the
list, their weighting is reduced.

[1] https://github.com/searxng/searxng/pull/2589#issuecomment-1670915089

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2023-08-28 10:25:44 +02:00
PlayDay 355a88d031 [feat] engine: XPath configuration for pkg.go.dev 2023-08-28 10:25:44 +02:00
Bnyro 8225257e69 [feat] engine: implementation of mwmbl 2023-08-28 10:25:44 +02:00
searxng-bot e0fa5d3a2d [translations] update from Weblate
d8e4100b6 - 2023-08-16 - return42 <markus.heiser@darmarit.de>
b8e03f3bc - 2023-08-17 - ghose <correo@xmgz.eu>
2023-08-28 10:25:44 +02:00
Markus Heiser 8ef0b60ef9 [mod] currency_convert: support for showing the answer source url
Show URL of the ddg-search page, not the URL of a (generic) Javascript.  The
latter one is not usefull for the user.

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2023-08-28 10:25:44 +02:00
Markus Heiser 3b2a2e28fa [mod] google: support for showing the answer source url
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2023-08-28 10:25:44 +02:00
Bnyro 3dffdf17f7 [mod] engine duckduckgo definitions: support for answer source 2023-08-28 10:25:44 +02:00
Bnyro 2e85382ffe [mod] brave: support for showing the answer source url 2023-08-28 10:25:44 +02:00
Markus Heiser 8bab384843 [build] /static 2023-08-28 10:25:44 +02:00
Bnyro 0264a1a205 [feat] results: show source of suggested answer 2023-08-28 10:23:45 +02:00
Markus Heiser 17394ad558 [mod] improve seekr engines and add documentation
Tis patch adds some more fields to the result items and changed paging to the
``nextResultSet`` given in seekr's JSON response.

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2023-08-28 10:23:45 +02:00
Bnyro 8bf0791117 [feat] engine: implementation of seekr for news, images and videos 2023-08-28 10:23:45 +02:00
Markus Heiser 014fe5d9c6 [drop] engine archive.is / blocked by CAPTCHA [1]
Sadly archive.is is blocked by a CAPTCHA that can't be avoid (at least in a
XPath engine).

[1] https://github.com/searxng/searxng/issues/2643

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2023-08-28 10:23:45 +02:00
mrpaulblack 9af006f688 [fix] preferences: change engine table category colspan to 8
* this is a small fix to increase the colspan of the category in engine preferences from 7 to 8, since there was a column added
=> fixing a small fallout from 4731290317
2023-08-28 10:23:45 +02:00
ToxyFlog1627 301cc34904 [fix] typos in documentation & messages 2023-08-28 10:23:45 +02:00
MatthieuBarbu 7c4e5b3860 rebrand
add zaclys menu
adjust style
2023-08-28 09:52:05 +02:00
Markus Heiser c348427f07 [update] make pygments.less
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2023-08-11 10:54:50 +02:00
searxng-bot 99df7b84d1 [translations] update from Weblate
12c527bcd - 2023-08-10 - maxch <maxletters@tutanota.com>
ea46b66fc - 2023-08-10 - return42 <markus.heiser@darmarit.de>
ae3d8dcdf - 2023-08-10 - return42 <markus.heiser@darmarit.de>
ab6a59e35 - 2023-08-10 - return42 <markus.heiser@darmarit.de>
1db1affcc - 2023-08-10 - gallegonovato <fran-carro@hotmail.es>
94b682aa0 - 2023-08-10 - Fjuro <ifjuro@proton.me>
07c49bb6c - 2023-08-10 - return42 <markus.heiser@darmarit.de>
2023-08-11 09:17:56 +02:00
Bnyro c76c999a1e [feat] engine: implementation of anaconda 2023-08-10 23:51:07 +02:00
Bnyro e25d1c7288 [feat] engine: implementation of German news, Tagesschau
Co-authored-by: Markus Heiser <markus.heiser@darmarit.de>
2023-08-10 20:27:54 +02:00
GeckoLinux 2256ba2ffb [mod] settings.yml: move wolframalpha to categ general & disable by default
As suggested in comment [1] as a good compromise between [2] and [3].

This will help users that want Wolfram Alpha instant answers by default with
every query and don't mind the slowness.  It will be disabled by default so it's
fast for all users, and those that need it can enable it as a user-configurable
option without requiring setting up their own instance to change the Wolfram
Alpha categorization.

[1] https://github.com/searxng/searxng/pull/813#issuecomment-1574851572
[2] https://github.com/searxng/searxng/pull/813#issuecomment-1020581765
[3] https://github.com/searxng/searxng/issues/966#issue-1171107451
2023-08-10 14:31:09 +02:00
Bnyro 834e1c3f12 [mod] engine lemmy: increase thumbnail quality to align with theme 2023-08-10 12:58:40 +02:00