mirror of
https://github.com/searxng/searxng.git
synced 2025-09-01 07:48:32 +02:00
[fix] duckduckgo's xpaths changed
test_duckduckgo modified to reflect changes in duckduckgo's html
This commit is contained in:
parent
dbf4f83231
commit
751c9a346e
2 changed files with 28 additions and 48 deletions
|
@ -28,10 +28,10 @@ language_support = True
|
|||
url = 'https://duckduckgo.com/html?{query}&s={offset}'
|
||||
|
||||
# specific xpath variables
|
||||
result_xpath = '//div[@class="results_links results_links_deep web-result"]' # noqa
|
||||
url_xpath = './/a[@class="large"]/@href'
|
||||
title_xpath = './/a[@class="large"]'
|
||||
content_xpath = './/div[@class="snippet"]'
|
||||
result_xpath = '//div[@class="result results_links results_links_deep web-result "]' # noqa
|
||||
url_xpath = './/a[@class="result__a"]/@href'
|
||||
title_xpath = './/a[@class="result__a"]'
|
||||
content_xpath = './/a[@class="result__snippet"]'
|
||||
|
||||
|
||||
# do search-request
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue