You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
searxng/searx
Markus Heiser 7f505bdc6f [fix] google: avoid unnecessary SearxEngineXPathException errors
Avoid SearxEngineXPathException errors when parsing non valid results::

    .//div[@class="yuRUbf"]//a/@href index 0 not found
    Traceback (most recent call last):
      File "./searx/engines/google.py", line 274, in response
        url = eval_xpath_getindex(result, href_xpath, 0)
      File "./searx/searx/utils.py", line 608, in eval_xpath_getindex
        raise SearxEngineXPathException(xpath_spec, 'index ' + str(index) + ' not found')
    searx.exceptions.SearxEngineXPathException: .//div[@class="yuRUbf"]//a/@href index 0 not found

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
4 years ago
..
answerers Drop Python 2 (4/n): SearchQuery.query is a str instead of bytes 4 years ago
data [data] make engines.languages 4 years ago
engines [fix] google: avoid unnecessary SearxEngineXPathException errors 4 years ago
metrology [fix] checker: fix engine statistics 4 years ago
plugins [mod] pylint: numerous minor code fixes 4 years ago
search [fix] checker: minor fix about language detection 4 years ago
shared [fix] checker: don't run the checker when uwsgi is not properly configured 4 years ago
static [mod] themes: remove legacy, courgette and pix-art themes 4 years ago
templates Merge pull request #2458 from MarcAbonce/hide-links-mobile2 4 years ago
translations [enh] update translations 4 years ago
__init__.py [mod] settings.yml: move brand settings to a dedicated section 4 years ago
autocomplete.py [fix] dbpedia autocomplete (and use HTTPS) 4 years ago
exceptions.py [enh] add raise_for_httperror 4 years ago
external_bang.py [mod] Add searx.data module 4 years ago
external_urls.py [mod] add external_urls.json and wikidata_units.json 4 years ago
languages.py [data] make engines.languages 4 years ago
poolrequests.py [enh] add raise_for_httperror 4 years ago
preferences.py Patch advanced search preferences 4 years ago
query.py fix empty colon in query from selecting Chinese 4 years ago
raise_for_httperror.py [enh] add raise_for_httperror 4 years ago
results.py [mod] results: don't crash when an engine don't have a category 4 years ago
settings.yml [mod] checker: add some additional tests 4 years ago
settings_loader.py [fix] pylint: use "raise ... from ..." 4 years ago
settings_robot.yml Let admins lock user preferences 4 years ago
testing.py Drop Python 2 (1/n): remove unicode string and url_utils 4 years ago
utils.py [fix] pylint: use "raise ... from ..." 4 years ago
version.py prepare release 0.18.0 4 years ago
webadapter.py [fix] pylint: use "raise ... from ..." 4 years ago
webapp.py [enh] checker: background check 4 years ago
webutils.py Merge pull request #2237 from dalf/mod-engines-init 4 years ago