mirror of
				https://github.com/searxng/searxng
				synced 2024-01-01 19:24:07 +01:00 
			
		
		
		
	[enh] xpath engine - add request parameter 'soft_max_redirects'
Make 'soft_max_redirects' configurable per Xpath engine::
    - name : <engine-name>
      engine : xpath
      soft_max_redirects: 1
      ...
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
			
			
This commit is contained in:
		
							parent
							
								
									1970d28a60
								
							
						
					
					
						commit
						ffcebf5e12
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		|  | @ -14,6 +14,7 @@ suggestion_xpath = '' | |||
| results_xpath = '' | ||||
| cached_xpath = '' | ||||
| cached_url = '' | ||||
| soft_max_redirects = 0 | ||||
| 
 | ||||
| # parameters for engines with paging support | ||||
| # | ||||
|  | @ -33,6 +34,7 @@ def request(query, params): | |||
| 
 | ||||
|     params['url'] = search_url.format(**fp) | ||||
|     params['query'] = query | ||||
|     params['soft_max_redirects'] = soft_max_redirects | ||||
| 
 | ||||
|     return params | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Markus Heiser
						Markus Heiser