searxngRebrandZaclys/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>
2021-01-28 10:08:50 +01:00
..
answerers Drop Python 2 (4/n): SearchQuery.query is a str instead of bytes 2020-09-10 10:49:42 +02:00
data [data] make engines.languages 2021-01-24 09:52:32 +01:00
engines [fix] google: avoid unnecessary SearxEngineXPathException errors 2021-01-28 10:08:50 +01:00
metrology [fix] checker: fix engine statistics 2021-01-18 08:19:44 +01:00
plugins [mod] pylint: numerous minor code fixes 2020-12-01 15:21:19 +01:00
search [fix] checker: minor fix about language detection 2021-01-19 21:29:31 +01:00
shared [fix] checker: don't run the checker when uwsgi is not properly configured 2021-01-13 14:07:39 +01:00
static [mod] themes: remove legacy, courgette and pix-art themes 2020-12-17 11:33:28 +01:00
templates Merge pull request #2458 from MarcAbonce/hide-links-mobile2 2021-01-12 08:27:24 +01:00
translations [enh] update translations 2020-07-09 15:15:52 +02:00
__init__.py [mod] settings.yml: move brand settings to a dedicated section 2021-01-11 22:59:52 +01:00
autocomplete.py [fix] dbpedia autocomplete (and use HTTPS) 2020-12-04 16:47:43 +01:00
exceptions.py [enh] add raise_for_httperror 2020-12-11 14:37:08 +01:00
external_bang.py [mod] Add searx.data module 2020-10-07 10:29:34 +02:00
external_urls.py [mod] add external_urls.json and wikidata_units.json 2020-10-28 08:09:25 +01:00
languages.py [data] make engines.languages 2021-01-24 09:52:32 +01:00
poolrequests.py [enh] add raise_for_httperror 2020-12-11 14:37:08 +01:00
preferences.py Patch advanced search preferences 2020-11-23 19:13:29 +01:00
query.py fix empty colon in query from selecting Chinese 2021-01-09 22:11:41 -07:00
raise_for_httperror.py [enh] add raise_for_httperror 2020-12-11 14:37:08 +01:00
results.py [mod] results: don't crash when an engine don't have a category 2020-12-10 10:57:07 +01:00
settings.yml [mod] checker: add some additional tests 2021-01-28 10:08:50 +01:00
settings_loader.py [fix] pylint: use "raise ... from ..." 2020-12-20 09:46:53 +01:00
settings_robot.yml Let admins lock user preferences 2020-10-25 18:06:18 +01:00
testing.py Drop Python 2 (1/n): remove unicode string and url_utils 2020-09-10 10:39:04 +02:00
utils.py [fix] pylint: use "raise ... from ..." 2020-12-20 09:46:53 +01:00
version.py prepare release 0.18.0 2020-12-14 19:03:09 +01:00
webadapter.py [fix] pylint: use "raise ... from ..." 2020-12-20 09:46:53 +01:00
webapp.py [enh] checker: background check 2021-01-12 11:47:17 +01:00
webutils.py Merge pull request #2237 from dalf/mod-engines-init 2020-10-05 11:20:46 +02:00