mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
Update google.py
This commit is contained in:
parent
e4cb5670f2
commit
3e17d92cde
1 changed files with 5 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue