Pārlūkot izejas kodu

[fix] geektimes.ru xpath fix

misnyo 7 gadus atpakaļ
vecāks
revīzija
9711795876
1 mainītis faili ar 3 papildinājumiem un 3 dzēšanām
  1. 3
    3
      searx/settings.yml

+ 3
- 3
searx/settings.yml Parādīt failu

@@ -321,9 +321,9 @@ engines:
321 321
     engine : xpath
322 322
     paging : True
323 323
     search_url : https://geektimes.ru/search/page{pageno}/?q={query}
324
-    url_xpath : //div[@class="search_results"]//a[@class="post__title_link"]/@href
325
-    title_xpath : //div[@class="search_results"]//a[@class="post__title_link"]
326
-    content_xpath : //div[@class="search_results"]//div[contains(@class, "content")]
324
+    url_xpath : //article[contains(@class, "post")]//a[@class="post__title_link"]/@href
325
+    title_xpath : //article[contains(@class, "post")]//a[@class="post__title_link"]
326
+    content_xpath : //article[contains(@class, "post")]//div[contains(@class, "post__text")]
327 327
     categories : it
328 328
     timeout : 4.0
329 329
     disabled : True