Skip to content

SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.

[fix] engine google_video: google changed the layout of the HTML response

Markus Heiser26097f444b53
diff --git a/searx/engines/google_videos.py b/searx/engines/google_videos.py
index c8fc934af..f41974cfe 100644
--- a/searx/engines/google_videos.py
+++ b/searx/engines/google_videos.py
@@ -115,9 +115,9 @@ def response(resp):
title = extract_text(eval_xpath_getindex(result, './/a/h3[1]', 0))
url = eval_xpath_getindex(result, './/a/h3[1]/../@href', 0)
- c_node = eval_xpath_getindex(result, './/div[@class="ITZIwc"]', 0)
+ c_node = eval_xpath_getindex(result, './/div[contains(@class, "ITZIwc")]', 0)
content = extract_text(c_node)
- pub_info = extract_text(eval_xpath(result, './/div[@class="gqF9jc"]'))
+ pub_info = extract_text(eval_xpath(result, './/div[contains(@class, "gqF9jc")]'))
results.append(
{