From bf1ca2ccd37dab4d43386e1c9863043c9dd817f5 Mon Sep 17 00:00:00 2001 From: misnyo Date: Thu, 31 Aug 2017 18:26:46 +0200 Subject: [PATCH] [fix] habrahabr.ru xpath fix --- searx/settings.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/searx/settings.yml b/searx/settings.yml index 26d4f8bee..77d1301b7 100644 --- a/searx/settings.yml +++ b/searx/settings.yml @@ -333,9 +333,9 @@ engines: engine : xpath paging : True search_url : https://habrahabr.ru/search/page{pageno}/?q={query} - url_xpath : //div[@class="search_results"]//a[contains(@class, "post__title_link")]/@href - title_xpath : //div[@class="search_results"]//a[contains(@class, "post__title_link")] - content_xpath : //div[@class="search_results"]//div[contains(@class, "content")] + url_xpath : //article[contains(@class, "post")]//a[@class="post__title_link"]/@href + title_xpath : //article[contains(@class, "post")]//a[@class="post__title_link"] + content_xpath : //article[contains(@class, "post")]//div[contains(@class, "post__text")] categories : it timeout : 4.0 disabled : True