mirror of
https://github.com/searxng/searxng.git
synced 2025-09-03 16:58:34 +02:00
Bing images' unit test
This commit is contained in:
parent
d495704551
commit
dad0434f34
3 changed files with 273 additions and 1 deletions
|
@ -33,7 +33,10 @@ def request(query, params):
|
|||
offset = (params['pageno'] - 1) * 10 + 1
|
||||
|
||||
# required for cookie
|
||||
language = 'en-US'
|
||||
if params['language'] == 'all':
|
||||
language = 'en-US'
|
||||
else:
|
||||
language = params['language'].replace('_', '-')
|
||||
|
||||
search_path = search_string.format(
|
||||
query=urlencode({'q': query}),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue