Kaynağa Gözat

Merge pull request #1017 from misnyo/geektimes

[fix] geektimes.ru xpath fix
Adam Tauber 7 yıl önce
ebeveyn
işleme
688801076d
1 değiştirilmiş dosya ile 6 ekleme ve 6 silme
  1. 6
    6
      searx/settings.yml

+ 6
- 6
searx/settings.yml Dosyayı Görüntüle

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