diff options
| author | Markus Heiser <markus.heiser@darmarit.de> | 2024-11-23 10:32:15 +0100 |
|---|---|---|
| committer | Markus Heiser <markus.heiser@darmarIT.de> | 2024-11-23 13:02:24 +0100 |
| commit | c4b874e9b0cf2b54b0152d95aa5f5b00543383c6 (patch) | |
| tree | da18a3f02ffc37790f75d766c1f27f51de7cfcfb | |
| parent | 7c4e4ebd40d342735bf2e207d469aed2ca25cfa9 (diff) | |
[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>
| -rw-r--r-- | searx/engines/loc.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/engines/loc.py b/searx/engines/loc.py index 5f58eb3dc..927800061 100644 --- a/searx/engines/loc.py +++ b/searx/engines/loc.py @@ -27,7 +27,7 @@ categories = ['images'] paging = True endpoint = 'photos' -base_url = 'https://loc.gov' +base_url = 'https://www.loc.gov' search_string = "/{endpoint}/?sp={page}&{query}&fo=json" |