diff options
| author | Adam Tauber <asciimoo@gmail.com> | 2016-12-11 13:08:18 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-12-11 13:08:18 +0100 |
| commit | 75c58fd008e3d10dff788d133904a7904dd4635f (patch) | |
| tree | c1a4a5e336a3ea19d882fb52c560da5dd45db33e /searx/engines | |
| parent | e12ea9a5106a8b58080c0395c2fcf3f2a84808fe (diff) | |
| parent | 9c8ec209e14a1078a723ec0dcd1564c34d8e04e7 (diff) | |
Merge pull request #780 from kvch/google-play-movies-fix
XPATH engines: Google Play Music, Habrahabr, Yandex
Diffstat (limited to 'searx/engines')
| -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): |