Explorar el Código

[fix] habrahabr.ru xpath fix

misnyo hace 7 años
padre
commit
bf1ca2ccd3
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  1. 3
    3
      searx/settings.yml

+ 3
- 3
searx/settings.yml Ver fichero

@@ -333,9 +333,9 @@ engines:
333 333
     engine : xpath
334 334
     paging : True
335 335
     search_url : https://habrahabr.ru/search/page{pageno}/?q={query}
336
-    url_xpath : //div[@class="search_results"]//a[contains(@class, "post__title_link")]/@href
337
-    title_xpath : //div[@class="search_results"]//a[contains(@class, "post__title_link")]
338
-    content_xpath : //div[@class="search_results"]//div[contains(@class, "content")]
336
+    url_xpath : //article[contains(@class, "post")]//a[@class="post__title_link"]/@href
337
+    title_xpath : //article[contains(@class, "post")]//a[@class="post__title_link"]
338
+    content_xpath : //article[contains(@class, "post")]//div[contains(@class, "post__text")]
339 339
     categories : it
340 340
     timeout : 4.0
341 341
     disabled : True