浏览代码

Merge pull request #1017 from misnyo/geektimes

[fix] geektimes.ru xpath fix
Adam Tauber 7 年前
父节点
当前提交
688801076d
共有 1 个文件被更改,包括 6 次插入6 次删除
  1. 6
    6
      searx/settings.yml

+ 6
- 6
searx/settings.yml 查看文件

322
     engine : xpath
322
     engine : xpath
323
     paging : True
323
     paging : True
324
     search_url : https://geektimes.ru/search/page{pageno}/?q={query}
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
     categories : it
328
     categories : it
329
     timeout : 4.0
329
     timeout : 4.0
330
     disabled : True
330
     disabled : True
334
     engine : xpath
334
     engine : xpath
335
     paging : True
335
     paging : True
336
     search_url : https://habrahabr.ru/search/page{pageno}/?q={query}
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
     categories : it
340
     categories : it
341
     timeout : 4.0
341
     timeout : 4.0
342
     disabled : True
342
     disabled : True