Browse Source

[fix] seznam engine

Venca24 6 years ago
parent
commit
c66a019478
1 changed files with 2 additions and 1 deletions
  1. 2 1
      searx/settings.yml

+ 2 - 1
searx/settings.yml

@@ -709,10 +709,11 @@ engines:
     engine: xpath
     engine: xpath
     paging : True
     paging : True
     search_url : https://search.seznam.cz/?q={query}&count=10&from={pageno}
     search_url : https://search.seznam.cz/?q={query}&count=10&from={pageno}
-    results_xpath: //div[@class="Page-content"]//div[@class="Result "]
+    results_xpath: //div[@class="Page-content"]//div[contains(@class, "Result ")]
     url_xpath : ./h3/a/@href
     url_xpath : ./h3/a/@href
     title_xpath : ./h3
     title_xpath : ./h3
     content_xpath : .//p[@class="Result-description"]
     content_xpath : .//p[@class="Result-description"]
+    suggestion_xpath: //div[@class="Related-container"]//div[@class="RelatedItem"]/div/span/a
     first_page_num : 0
     first_page_num : 0
     page_size : 10
     page_size : 10
     disabled : True
     disabled : True