diff options
author | Noémi Ványi <sitbackandwait@gmail.com> | 2016-12-11 04:57:42 +0100 |
---|---|---|
committer | Noémi Ványi <sitbackandwait@gmail.com> | 2016-12-11 11:58:49 +0100 |
commit | 553f3a3a1a72f0f0ba60f739fce5d6b22f23cb22 (patch) | |
tree | 0a3e008d350ea1df38dab809ec9f1ad54519a72d /searx/engines/yandex.py | |
parent | 85f363774c94ae8db67bea5de9eddcba4d2757a0 (diff) | |
download | searxng-553f3a3a1a72f0f0ba60f739fce5d6b22f23cb22.tar.gz searxng-553f3a3a1a72f0f0ba60f739fce5d6b22f23cb22.zip |
fix xpath of yandex
Diffstat (limited to 'searx/engines/yandex.py')
-rw-r--r-- | searx/engines/yandex.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/searx/engines/yandex.py b/searx/engines/yandex.py index 938fdd184..b83a747f9 100644 --- a/searx/engines/yandex.py +++ b/searx/engines/yandex.py @@ -29,10 +29,10 @@ language_map = {'ru': 'ru', base_url = 'https://yandex.{tld}/' search_url = 'search/?{query}&p={page}' -results_xpath = '//div[@class="serp-item serp-item_plain_yes clearfix i-bem"]' +results_xpath = '//li[@class="serp-item"]' url_xpath = './/h2/a/@href' title_xpath = './/h2/a//text()' -content_xpath = './/div[@class="serp-item__text"]//text()' +content_xpath = './/div[@class="text-container typo typo_text_m typo_line_m organic__text"]//text()' def request(query, params): |