summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2020-06-25 22:34:52 +0200
committerGitHub <noreply@github.com>2020-06-25 22:34:52 +0200
commit040adecabf0540ebcbb672dcd20097bce3535503 (patch)
treea334a5debc2094881f56eb6f9437a28ed386e40b
parent969b4340fd5c86b15112402cf550b6cfcdf11a59 (diff)
parent5293e580323c28476b27639156d0a780745e0760 (diff)
downloadsearxng-040adecabf0540ebcbb672dcd20097bce3535503.tar.gz
searxng-040adecabf0540ebcbb672dcd20097bce3535503.zip
Merge pull request #2026 from return42/fix-yh
[fix] yahoo engine - changed content_xpath
-rw-r--r--searx/engines/yahoo.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/engines/yahoo.py b/searx/engines/yahoo.py
index 36c1a11f8..a6b4aeb9f 100644
--- a/searx/engines/yahoo.py
+++ b/searx/engines/yahoo.py
@@ -33,7 +33,7 @@ supported_languages_url = 'https://search.yahoo.com/web/advanced'
results_xpath = "//div[contains(concat(' ', normalize-space(@class), ' '), ' Sr ')]"
url_xpath = './/h3/a/@href'
title_xpath = './/h3/a'
-content_xpath = './/div[@class="compText aAbs"]'
+content_xpath = './/div[contains(@class, "compText")]'
suggestion_xpath = "//div[contains(concat(' ', normalize-space(@class), ' '), ' AlsoTry ')]//a"
time_range_dict = {'day': ['1d', 'd'],