mirror of
				https://github.com/searxng/searxng
				synced 2024-01-01 19:24:07 +01:00 
			
		
		
		
	[fix] engine Library of Congress: fix API URL loc.gov -> www.loc.gov
Avoid HTTP 404 and redirects. Requests to the JSON/YAML API use the base url [1]
    https://www.loc.gov/{endpoint}/?fo=json
[1] https://www.loc.gov/apis/json-and-yaml/requests/
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
			
			
This commit is contained in:
		
							parent
							
								
									7c4e4ebd40
								
							
						
					
					
						commit
						c4b874e9b0
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -27,7 +27,7 @@ categories = ['images'] | ||||||
| paging = True | paging = True | ||||||
| 
 | 
 | ||||||
| endpoint = 'photos' | endpoint = 'photos' | ||||||
| base_url = 'https://loc.gov' | base_url = 'https://www.loc.gov' | ||||||
| search_string = "/{endpoint}/?sp={page}&{query}&fo=json" | search_string = "/{endpoint}/?sp={page}&{query}&fo=json" | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Markus Heiser
						Markus Heiser