Selaa lähdekoodia

[fix] habrahabr.ru xpath fix

misnyo 7 vuotta sitten
vanhempi
commit
bf1ca2ccd3
1 muutettua tiedostoa jossa 3 lisäystä ja 3 poistoa
  1. 3
    3
      searx/settings.yml

+ 3
- 3
searx/settings.yml Näytä tiedosto

333
     engine : xpath
333
     engine : xpath
334
     paging : True
334
     paging : True
335
     search_url : https://habrahabr.ru/search/page{pageno}/?q={query}
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
     categories : it
339
     categories : it
340
     timeout : 4.0
340
     timeout : 4.0
341
     disabled : True
341
     disabled : True