add "Accept" header to bing.py

This commit is contained in:
Grant Lanham Jr 2023-02-22 20:54:02 -05:00
parent c647b55eb0
commit 2277c11f10
1 changed files with 1 additions and 0 deletions

View File

@ -54,6 +54,7 @@ def request(query, params):
params['url'] = base_url + search_path
params['headers']['User-Agent'] = ('Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 '
'(KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36')
params['headers']['Accept'] = 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8'
return params