Compare commits

..

No commits in common. "0ceb2563d233f618ae29c2568acd1bc80bcc58dc" and "6f28a69f1209ea33e4dc9daf0f10543003e2cee7" have entirely different histories.

1 changed files with 0 additions and 7 deletions

View File

@ -7,7 +7,6 @@ import re
from urllib.parse import quote, urljoin from urllib.parse import quote, urljoin
from lxml import html from lxml import html
from searx.utils import extract_text, eval_xpath, eval_xpath_list, eval_xpath_getindex from searx.utils import extract_text, eval_xpath, eval_xpath_list, eval_xpath_getindex
from searx.network import raise_for_httperror
# about # about
about = { about = {
@ -48,7 +47,6 @@ def request(query, params):
# after the last page of results, spelling corrections are returned after a HTTP redirect # after the last page of results, spelling corrections are returned after a HTTP redirect
# whatever the page number is # whatever the page number is
params['soft_max_redirects'] = 1 params['soft_max_redirects'] = 1
params['raise_for_httperror'] = False
return params return params
@ -58,11 +56,6 @@ def response(resp):
''' '''
results = [] results = []
if resp.status_code == 404:
return results
raise_for_httperror(resp)
dom = html.fromstring(resp.text) dom = html.fromstring(resp.text)
number_of_results_element = eval_xpath_getindex( number_of_results_element = eval_xpath_getindex(