diff options
Diffstat (limited to 'searx/utils.py')
| -rw-r--r-- | searx/utils.py | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/searx/utils.py b/searx/utils.py index 30b181ddd..1ebfda12f 100644 --- a/searx/utils.py +++ b/searx/utils.py @@ -26,7 +26,7 @@ from lxml.etree import XPath, XPathError, XPathSyntaxError from lxml.etree import ElementBase, _Element # pyright: ignore[reportPrivateUsage] from searx import settings -from searx.data import USER_AGENTS, gsa_useragents_loader +from searx.data import USER_AGENTS from searx.version import VERSION_TAG from searx.exceptions import SearxXPathSyntaxException, SearxEngineXPathException from searx import logger @@ -82,14 +82,6 @@ def gen_useragent(os_string: str | None = None) -> str: ) -def gen_gsa_useragent() -> str: - """Return a random "Google Go App" User Agent suitable for Google - - See searx/data/gsa_useragents.txt - """ - return choice(gsa_useragents_loader()) + " NSTNWV" - - class HTMLTextExtractor(HTMLParser): """Internal class to extract text from HTML""" |
