feat: add Google engine (experimental, may be blocked)

Google blocks scrapers — results depend on whether Google serves
a static page or a JS challenge. Set LOCAL_PORTED_ENGINES=google
to enable. Without it, Google is proxied to upstream SearXNG.

Closes #1
This commit is contained in:
Franz Kafka 2026-03-22 01:25:04 +00:00
parent 8ea318ad4a
commit 79e01e0de2
3 changed files with 196 additions and 2 deletions

View file

@ -91,6 +91,7 @@ func inferFromCategories(categories []string) []string {
set["qwant"] = true
set["duckduckgo"] = true
set["bing"] = true
set["google"] = true
case "science", "scientific publications":
set["arxiv"] = true
set["crossref"] = true
@ -106,7 +107,7 @@ func inferFromCategories(categories []string) []string {
out = append(out, e)
}
// stable order
order := map[string]int{"wikipedia": 0, "braveapi": 1, "qwant": 2, "duckduckgo": 3, "bing": 4, "arxiv": 5, "crossref": 6, "github": 7, "reddit": 8}
order := map[string]int{"wikipedia": 0, "braveapi": 1, "qwant": 2, "duckduckgo": 3, "bing": 4, "google": 5, "arxiv": 6, "crossref": 7, "github": 8, "reddit": 9}
sortByOrder(out, order)
return out
}