SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.
Python bingbravedegoogleduckduckgogooglemetasearchprivacypythonqwantsearchsearch-enginesearxsearxngstartpageyahoo
[fix] google images: @href index 0 not found
Markus Heiser5b28c9109f58
diff --git a/searx/engines/google_images.py b/searx/engines/google_images.pyindex ffdd6675e..61d291e3f 100644--- a/searx/engines/google_images.py+++ b/searx/engines/google_images.py@@ -172,7 +172,10 @@ def response(resp):thumbnail_src = ''link_node = eval_xpath_getindex(img_node, '../../../a[2]', 0)- url = eval_xpath_getindex(link_node, '@href', 0)+ url = eval_xpath_getindex(link_node, '@href', 0, None)+ if url is None:+ logger.error("missing @href in node: %s", html.tostring(link_node))+ continuepub_nodes = eval_xpath(link_node, './div/div')pub_descr = img_alt