summaryrefslogtreecommitdiff
path: root/searx/engines/loc.py
AgeCommit message (Collapse)Author
2024-11-26[fix] engine: Library of Congress - image & thumb linksMarkus Heiser
The properties `item.service_medium` and `item.thumb_gallery` are not given for every result item. It is more reliable to use the first (thumb) and last (image) URL in the list of of URLs in `image_url`. Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2024-11-23[fix] engine Library of Congress: fix API URL loc.gov -> www.loc.govMarkus Heiser
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>
2023-09-11[mod] library of congress: fix engineBnyro
2021-12-27[format.python] initial formatting of the python codeMarkus Heiser
This patch was generated by black [1]:: make format.python [1] https://github.com/psf/black Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-02-09Add Library of Congress enginemrwormo