mirror of
https://github.com/searxng/searxng.git
synced 2024-11-26 21:01:01 +00:00
Fix time range support and add soft_max_redirects
Add custom time_range_url and time_range_map Set soft_max_redirects = 2 to prevent "ErrorContext('searx/search/processors/online.py', 116, 'count_error(', None, '2 redirects, maximum: 0', ('200', 'OK', 'neeva.com')) True"
This commit is contained in:
parent
d6dfada1a9
commit
8fa84ee9f4
1 changed files with 8 additions and 0 deletions
|
@ -963,6 +963,13 @@ engines:
|
|||
- name: neeva
|
||||
engine: xpath
|
||||
shortcut: nv
|
||||
time_range_support: true
|
||||
time_range_url: '&alf%5Bfreshness%5D={time_range_val}'
|
||||
time_range_map:
|
||||
day: 'Day'
|
||||
week: 'Week'
|
||||
month: 'Month'
|
||||
year: 'Year'
|
||||
search_url: https://neeva.com/search?q={query}&c=All&src=Pagination&page={pageno}{time_range}
|
||||
results_xpath: //div[@class="web-index__component-2rKiM"] | //li[@class="web-rich-deep-links__deepLink-SIbD4"]
|
||||
url_xpath: .//a[@class="lib-doc-title__link-1b9rC"]/@href | ./h2/a/@href
|
||||
|
@ -977,6 +984,7 @@ engines:
|
|||
disabled: true
|
||||
categories: [general, web]
|
||||
timeout: 5.0
|
||||
soft_max_redirects: 2
|
||||
about:
|
||||
website: https://neeva.com
|
||||
official_api_documentation:
|
||||
|
|
Loading…
Reference in a new issue