diff options
author | jazzzooo <38244149+jazzzooo@users.noreply.github.com> | 2023-09-20 08:39:42 -0700 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarIT.de> | 2023-10-01 08:01:38 +0200 |
commit | 079636c0795aafed9306703a4decdc92447ed57f (patch) | |
tree | e476048a875fdd2b7e972f3a8dcfa5cf91800a3a /searx/engines/bing_news.py | |
parent | 5ce1792432e00c723ba6b1a337abd06e472aee4a (diff) | |
download | searxng-079636c0795aafed9306703a4decdc92447ed57f.tar.gz searxng-079636c0795aafed9306703a4decdc92447ed57f.zip |
[fix] engine - bing fix search, pagination, remove safesearch
Diffstat (limited to 'searx/engines/bing_news.py')
-rw-r--r-- | searx/engines/bing_news.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/searx/engines/bing_news.py b/searx/engines/bing_news.py index 18992e2d1..81c8df0f3 100644 --- a/searx/engines/bing_news.py +++ b/searx/engines/bing_news.py @@ -6,7 +6,6 @@ # pylint: disable=invalid-name from typing import TYPE_CHECKING -import uuid from urllib.parse import urlencode from lxml import html @@ -16,7 +15,6 @@ from searx.engines.bing import ( set_bing_cookies, _fetch_traits, ) -from searx.engines.bing import send_accept_language_header # pylint: disable=unused-import if TYPE_CHECKING: import logging @@ -70,10 +68,9 @@ def request(query, params): sxng_locale = params['searxng_locale'] engine_region = traits.get_region(mkt_alias.get(sxng_locale, sxng_locale), traits.all_locale) - engine_language = traits.get_language(sxng_locale, 'en') + engine_language = traits.get_language(sxng_locale, 'en-us') - SID = uuid.uuid1().hex.upper() - set_bing_cookies(params, engine_language, engine_region, SID) + set_bing_cookies(params, engine_language, engine_region) # build URL query # |