mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
bing: fix rebates URLs
This commit is contained in:
parent
7320b0c796
commit
eecd2d2308
1 changed files with 2 additions and 0 deletions
|
@ -119,6 +119,8 @@ def response(resp):
|
||||||
url_to_resolve.append(url.replace('&ntb=1', '&ntb=F'))
|
url_to_resolve.append(url.replace('&ntb=1', '&ntb=F'))
|
||||||
url_to_resolve_index.append(i)
|
url_to_resolve_index.append(i)
|
||||||
url = None # remove the result if the HTTP Bing redirect raise an exception
|
url = None # remove the result if the HTTP Bing redirect raise an exception
|
||||||
|
elif url.startswith('/rebates/welcome?'):
|
||||||
|
url = parse_qs(urlparse(url).query)["url"][0]
|
||||||
|
|
||||||
# append result
|
# append result
|
||||||
results.append({'url': url, 'title': title, 'content': content})
|
results.append({'url': url, 'title': title, 'content': content})
|
||||||
|
|
Loading…
Add table
Reference in a new issue