mirror of
				https://github.com/searxng/searxng
				synced 2024-01-01 19:24:07 +01:00 
			
		
		
		
	[fix] character encoding fix
This commit is contained in:
		
							parent
							
								
									74b6be3991
								
							
						
					
					
						commit
						7ddf7d43ba
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -18,7 +18,7 @@ def request(query, params): | ||||||
| def response(resp): | def response(resp): | ||||||
|     global base_url |     global base_url | ||||||
|     results = [] |     results = [] | ||||||
|     dom = html.fromstring(resp.text) |     dom = html.fromstring(resp.content) | ||||||
|     for result in dom.xpath('//div[@class="result"]'): |     for result in dom.xpath('//div[@class="result"]'): | ||||||
|         link = result.xpath('.//h3/a')[0] |         link = result.xpath('.//h3/a')[0] | ||||||
|         url = urljoin(base_url, link.attrib.get('href')) |         url = urljoin(base_url, link.attrib.get('href')) | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 asciimoo
						asciimoo