mirror of https://github.com/searx/searx
parent
de0fde4ec2
commit
9ba072bb74
|
@ -73,7 +73,9 @@ def request(query, params):
|
||||||
# link again and again ..
|
# link again and again ..
|
||||||
|
|
||||||
params['headers']['Content-Type'] = 'application/x-www-form-urlencoded'
|
params['headers']['Content-Type'] = 'application/x-www-form-urlencoded'
|
||||||
|
params['headers']['Origin'] = 'https://lite.duckduckgo.com'
|
||||||
params['headers']['Referer'] = 'https://lite.duckduckgo.com/'
|
params['headers']['Referer'] = 'https://lite.duckduckgo.com/'
|
||||||
|
params['headers']['User-Agent'] = 'Mozilla/5.0'
|
||||||
|
|
||||||
# initial page does not have an offset
|
# initial page does not have an offset
|
||||||
if params['pageno'] == 2:
|
if params['pageno'] == 2:
|
||||||
|
|
Loading…
Reference in New Issue