forked from zaclys/searxng
Merge pull request #83 from return42/fix-archive-is
[fix] engine "archive is" - search_url has been changed
This commit is contained in:
commit
da2b0562d4
|
@ -14,6 +14,7 @@ suggestion_xpath = ''
|
||||||
results_xpath = ''
|
results_xpath = ''
|
||||||
cached_xpath = ''
|
cached_xpath = ''
|
||||||
cached_url = ''
|
cached_url = ''
|
||||||
|
soft_max_redirects = 0
|
||||||
|
|
||||||
# parameters for engines with paging support
|
# parameters for engines with paging support
|
||||||
#
|
#
|
||||||
|
@ -33,6 +34,7 @@ def request(query, params):
|
||||||
|
|
||||||
params['url'] = search_url.format(**fp)
|
params['url'] = search_url.format(**fp)
|
||||||
params['query'] = query
|
params['query'] = query
|
||||||
|
params['soft_max_redirects'] = soft_max_redirects
|
||||||
|
|
||||||
return params
|
return params
|
||||||
|
|
||||||
|
|
|
@ -170,7 +170,7 @@ engines:
|
||||||
|
|
||||||
- name : archive is
|
- name : archive is
|
||||||
engine : xpath
|
engine : xpath
|
||||||
search_url : https://archive.is/{query}
|
search_url : https://archive.is/search/?q={query}
|
||||||
url_xpath : (//div[@class="TEXT-BLOCK"]/a)/@href
|
url_xpath : (//div[@class="TEXT-BLOCK"]/a)/@href
|
||||||
title_xpath : (//div[@class="TEXT-BLOCK"]/a)
|
title_xpath : (//div[@class="TEXT-BLOCK"]/a)
|
||||||
content_xpath : //div[@class="TEXT-BLOCK"]/ul/li
|
content_xpath : //div[@class="TEXT-BLOCK"]/ul/li
|
||||||
|
@ -178,6 +178,7 @@ engines:
|
||||||
timeout : 7.0
|
timeout : 7.0
|
||||||
disabled : True
|
disabled : True
|
||||||
shortcut : ai
|
shortcut : ai
|
||||||
|
soft_max_redirects: 1
|
||||||
about:
|
about:
|
||||||
website: https://archive.is/
|
website: https://archive.is/
|
||||||
wikidata_id: Q13515725
|
wikidata_id: Q13515725
|
||||||
|
|
Loading…
Reference in New Issue