mirror of
https://github.com/searxng/searxng.git
synced 2026-07-29 11:21:23 +00:00
Compare commits
2 Commits
885d02c8c3
...
82b9e533b2
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
82b9e533b2 | ||
|
|
babbe9e1ae |
@@ -8,7 +8,7 @@ from __future__ import annotations
|
||||
|
||||
from typing import TYPE_CHECKING
|
||||
import re
|
||||
from urllib.parse import urlencode, quote_plus
|
||||
from urllib.parse import quote_plus
|
||||
import json
|
||||
import babel
|
||||
import lxml.html
|
||||
@@ -397,14 +397,10 @@ def response(resp) -> EngineResults:
|
||||
and "Your user agent:" not in zero_click
|
||||
and "URL Decoded:" not in zero_click
|
||||
):
|
||||
current_query = resp.search_params["data"].get("q")
|
||||
results.add(
|
||||
results.types.Answer(
|
||||
answer=zero_click,
|
||||
url="https://duckduckgo.com/?"
|
||||
+ urlencode(
|
||||
{"q": current_query},
|
||||
),
|
||||
url=extract_text(eval_xpath(doc, '//div[@id="zero_click_abstract"]/a/@href')),
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
declare _Blue
|
||||
declare _creset
|
||||
|
||||
export NODE_MINIMUM_VERSION="16.13.0"
|
||||
export NODE_MINIMUM_VERSION="18.17.0"
|
||||
|
||||
node.help(){
|
||||
cat <<EOF
|
||||
|
||||
Reference in New Issue
Block a user