Browse Source

Merge pull request #1017 from misnyo/geektimes

[fix] geektimes.ru xpath fix
Adam Tauber 7 years ago
parent
commit
688801076d
1 changed files with 6 additions and 6 deletions
  1. 6
    6
      searx/settings.yml

+ 6
- 6
searx/settings.yml View File

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