Browse Source

fix xpath of yandex

Noémi Ványi 8 years ago
parent
commit
553f3a3a1a
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      searx/engines/yandex.py

+ 2
- 2
searx/engines/yandex.py View File

29
 base_url = 'https://yandex.{tld}/'
29
 base_url = 'https://yandex.{tld}/'
30
 search_url = 'search/?{query}&p={page}'
30
 search_url = 'search/?{query}&p={page}'
31
 
31
 
32
-results_xpath = '//div[@class="serp-item serp-item_plain_yes clearfix i-bem"]'
32
+results_xpath = '//li[@class="serp-item"]'
33
 url_xpath = './/h2/a/@href'
33
 url_xpath = './/h2/a/@href'
34
 title_xpath = './/h2/a//text()'
34
 title_xpath = './/h2/a//text()'
35
-content_xpath = './/div[@class="serp-item__text"]//text()'
35
+content_xpath = './/div[@class="text-container typo typo_text_m typo_line_m organic__text"]//text()'
36
 
36
 
37
 
37
 
38
 def request(query, params):
38
 def request(query, params):