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
..
2021-01-24 09:52:32 +01:00
2020-07-09 15:15:52 +02:00
2020-12-11 14:37:08 +01:00
2020-10-07 10:29:34 +02:00
2021-01-24 09:52:32 +01:00
2020-12-11 14:37:08 +01:00
2020-12-14 19:03:09 +01:00
2021-01-12 11:47:17 +01:00