mirror of
				https://github.com/searxng/searxng.git
				synced 2025-11-03 19:17:07 -05:00 
			
		
		
		
	This PR adds a new setting to engines named `tokens`. It expects a list of tokens which lets searx validate if the request should be accepted or not.
		
			
				
	
	
		
			13 lines
		
	
	
		
			167 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			167 B
		
	
	
	
		
			Python
		
	
	
	
	
	
"""
 | 
						|
 Dummy Offline
 | 
						|
 | 
						|
 @results     one result
 | 
						|
 @stable      yes
 | 
						|
"""
 | 
						|
 | 
						|
 | 
						|
def search(query, request_params):
 | 
						|
    return [{
 | 
						|
        'result': 'this is what you get',
 | 
						|
    }]
 |