mirror of
https://github.com/searxng/searxng.git
synced 2024-11-22 20:17:45 +01:00
[mod] add Makfile targets for search.checker.<engine_name>
To check all engines: make search.checker To check a engine 'google news' replace space by underline: make search.checker.google_news To see HTTP requests and more use SEARX_DEBUG: make SEARX_DEBUG=1 search.checker.google_news To filter out HTTP redirects: make SEARX_DEBUG=1 search.checker.google_news | grep -A1 "HTTP/1.1\" 3[0-9][0-9]" ... Engine google news Checking https://news.google.com:443 "GET /search?q=life&hl=en&lr=lang_en&ie=utf8&oe=utf8&ceid=US%3Aen&gl=US HTTP/1.1" 302 0 https://news.google.com:443 "GET /search?q=life&hl=en-US&lr=lang_en&ie=utf8&oe=utf8&ceid=US:en&gl=US HTTP/1.1" 200 None -- https://news.google.com:443 "GET /search?q=computer&hl=en&lr=lang_en&ie=utf8&oe=utf8&ceid=US%3Aen&gl=US HTTP/1.1" 302 0 https://news.google.com:443 "GET /search?q=computer&hl=en-US&lr=lang_en&ie=utf8&oe=utf8&ceid=US:en&gl=US HTTP/1.1" 200 None -- Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
parent
ff6804e545
commit
923b490022
15
Makefile
15
Makefile
@ -166,6 +166,18 @@ PHONY += gecko.driver
|
|||||||
gecko.driver:
|
gecko.driver:
|
||||||
$(PY_ENV_ACT); ./manage.sh install_geckodriver
|
$(PY_ENV_ACT); ./manage.sh install_geckodriver
|
||||||
|
|
||||||
|
# search.checker
|
||||||
|
# --------------
|
||||||
|
|
||||||
|
search.checker: pyenvinstall
|
||||||
|
$(Q)$(PY_ENV_ACT); searx-checker -v
|
||||||
|
|
||||||
|
ENGINE_TARGETS=$(patsubst searx/engines/%.py,search.checker.%,$(wildcard searx/engines/[!_]*.py))
|
||||||
|
|
||||||
|
$(ENGINE_TARGETS): pyenvinstall
|
||||||
|
$(Q)$(PY_ENV_ACT); searx-checker -v "$(subst _, ,$(patsubst search.checker.%,%,$@))"
|
||||||
|
|
||||||
|
|
||||||
# test
|
# test
|
||||||
# ----
|
# ----
|
||||||
|
|
||||||
@ -180,7 +192,8 @@ PYLINT_FILES=\
|
|||||||
searx/engines/digg.py \
|
searx/engines/digg.py \
|
||||||
searx/engines/google.py \
|
searx/engines/google.py \
|
||||||
searx/engines/google_news.py \
|
searx/engines/google_news.py \
|
||||||
searx/engines/google_videos.py
|
searx/engines/google_videos.py \
|
||||||
|
searx/engines/google_images.py
|
||||||
|
|
||||||
test.pylint: pyenvinstall
|
test.pylint: pyenvinstall
|
||||||
$(call cmd,pylint,$(PYLINT_FILES))
|
$(call cmd,pylint,$(PYLINT_FILES))
|
||||||
|
Loading…
Reference in New Issue
Block a user