mirror of
				https://github.com/searxng/searxng
				synced 2024-01-01 19:24:07 +01:00 
			
		
		
		
	fixing results parsing brave
This commit is contained in:
		
							parent
							
								
									7f59b6d62e
								
							
						
					
					
						commit
						4280318fc5
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -244,7 +244,7 @@ def _parse_search(resp): | ||||||
|     for result in eval_xpath_list(dom, xpath_results): |     for result in eval_xpath_list(dom, xpath_results): | ||||||
| 
 | 
 | ||||||
|         url = eval_xpath_getindex(result, './/a[contains(@class, "h")]/@href', 0, default=None) |         url = eval_xpath_getindex(result, './/a[contains(@class, "h")]/@href', 0, default=None) | ||||||
|         title_tag = eval_xpath_getindex(result, './/div[contains(@class, "title")]', 0, default=None) |         title_tag = eval_xpath_getindex(result, './/div[contains(@class, "url")]', 0, default=None) | ||||||
|         if url is None or title_tag is None or not urlparse(url).netloc:  # partial url likely means it's an ad |         if url is None or title_tag is None or not urlparse(url).netloc:  # partial url likely means it's an ad | ||||||
|             continue |             continue | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Émilien (perso)
						Émilien (perso)