Update google.py

This commit is contained in:
Joseph Cheung 2023-02-26 10:47:29 +08:00
parent e4cb5670f2
commit 3e17d92cde

View file

@ -24,7 +24,7 @@ The google WEB engine itself has a special setup option:
``async=use_ac:true,_fmt:pc`` to the :py:func:`request`.
"""
import random
from urllib.parse import urlencode
from lxml import html
from searx.utils import match_language, extract_text, eval_xpath, eval_xpath_list, eval_xpath_getindex
@ -200,7 +200,10 @@ def get_lang_info(params, lang_list, custom_aliases, supported_any_language):
# subdomain ...
# ret_val['subdomain'] = 'www.' + google_domains.get(country.upper(), 'google.com')
ret_val['subdomain'] = 'soft-boat-2809.vercel.app'
googleDom = ['141-147-173-154.sslip.io','soft-boat-2809.vercel.app']
ret_val['subdomain'] = random.choice(googleDom)
# params & headers