1
0
mirror of https://github.com/searxng/searxng.git synced 2024-11-15 01:00:12 +01:00

[fix] engine yacy: update list of base URLs

https://search.lomig.me
  Poor results / tested `!yacy :en hello` and got zero results

https://yacy.ecosys.eu
  Slow response (> 6sec for trivial search terms)

https://search.webproject.link
  Dead instance / URL offline

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
Markus Heiser 2024-07-02 12:08:10 +02:00 committed by Markus Heiser
parent b0aa6fe8a5
commit 657dcb973a
2 changed files with 14 additions and 8 deletions

View File

@ -118,6 +118,8 @@ def _base_url() -> str:
url = engines['yacy'].base_url # type: ignore url = engines['yacy'].base_url # type: ignore
if isinstance(url, list): if isinstance(url, list):
url = random.choice(url) url = random.choice(url)
if url.endswith("/"):
url = url[:-1]
return url return url

View File

@ -2135,21 +2135,25 @@ engines:
disabled: true disabled: true
- name: yacy - name: yacy
# https://docs.searxng.org/dev/engines/online/yacy.html
engine: yacy engine: yacy
categories: general categories: general
search_type: text search_type: text
base_url: base_url:
- https://yacy.searchlab.eu - https://yacy.searchlab.eu
- https://search.lomig.me # see https://github.com/searxng/searxng/pull/3631#issuecomment-2240903027
- https://yacy.ecosys.eu # - https://search.kyun.li
- https://search.webproject.link # - https://yacy.securecomcorp.eu
# - https://yacy.myserv.ca
# - https://yacy.nsupdate.info
# - https://yacy.electroncash.de
shortcut: ya shortcut: ya
disabled: true disabled: true
# required if you aren't using HTTPS for your local yacy instance # if you aren't using HTTPS for your local yacy instance disable https
# https://docs.searxng.org/dev/engines/online/yacy.html # enable_http: false
# enable_http: true search_mode: 'global'
# timeout: 3.0 # timeout can be reduced in 'local' search mode
# search_mode: 'global' timeout: 5.0
- name: yacy images - name: yacy images
engine: yacy engine: yacy