Sep-15-2024, 07:49 PM
Yacy is a self-host search engine with an API
When I search via the web panel it produces real results in JSON format. For example searching "python":
https://search.simplifiedprivacy.is/yacy...ery=python
But when I try do it via python, it shows up with weird URLs like “yacysearch.json?query=python” in the URLs and a totally different format.
here's the code I used to test:
When I search via the web panel it produces real results in JSON format. For example searching "python":
https://search.simplifiedprivacy.is/yacy...ery=python
But when I try do it via python, it shows up with weird URLs like “yacysearch.json?query=python” in the URLs and a totally different format.
here's the code I used to test:
import requests import json entry = input("Enter search:") api_url1 = f"https://search.simplifiedprivacy.is/yacysearch.json?query={entry}" response1 = requests.get(api_url1) round2 = response1.json() pretty = json.dumps(round2, indent=2) print(pretty)