mirror of
				https://github.com/searxng/searxng
				synced 2024-01-01 19:24:07 +01:00 
			
		
		
		
	[mod] wikipedia engine removed
This commit is contained in:
		
							parent
							
								
									60d8e7febd
								
							
						
					
					
						commit
						e7792d77a7
					
				
					 1 changed files with 0 additions and 16 deletions
				
			
		|  | @ -1,16 +0,0 @@ | ||||||
| from json import loads |  | ||||||
| 
 |  | ||||||
| def request(query, params): |  | ||||||
|     params['url'] = 'http://en.wikipedia.org/w/api.php?action=query&list=search&srsearch=%s&srprop=timestamp&format=json' % query |  | ||||||
| 
 |  | ||||||
|     return params |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| def response(resp): |  | ||||||
|     search_results = loads(resp.text) |  | ||||||
|     results = [] |  | ||||||
|     res = search_results.get('query', {}).get('search', []) |  | ||||||
|     if len(res): |  | ||||||
|         results.append({'url': 'https://en.wikipedia.org/wiki/%s' % res[0]['title'].replace(' ', '_'), 'title': res[0]['title']}) |  | ||||||
|     return results |  | ||||||
| 
 |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 asciimoo
						asciimoo