Просмотр исходного кода

Merge pull request #1017 from misnyo/geektimes

[fix] geektimes.ru xpath fix
Adam Tauber 7 лет назад
Родитель
Сommit
688801076d
1 измененных файлов: 6 добавлений и 6 удалений
  1. 6
    6
      searx/settings.yml

+ 6
- 6
searx/settings.yml Просмотреть файл

@@ -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