Browse Source

[fix] geektimes.ru xpath fix

misnyo 7 years ago
parent
commit
9711795876
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      searx/settings.yml

+ 3
- 3
searx/settings.yml View File

321
     engine : xpath
321
     engine : xpath
322
     paging : True
322
     paging : True
323
     search_url : https://geektimes.ru/search/page{pageno}/?q={query}
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
     categories : it
327
     categories : it
328
     timeout : 4.0
328
     timeout : 4.0
329
     disabled : True
329
     disabled : True