searxng/searx
Ahmad Alkadri 7fc8d72889 [fix] bing: parsing result; check to see if the element contains links
This patch is to hardening the parsing of the bing response:

1. To fix [2087] check if the selected result item contains a link, otherwise
   skip result item and continue in the result loop.  Increment the result
   pointer when a result has been added / the enumerate that counts for skipped
   items is no longer valid when result items are skipped.

   To test the bugfix use:   ``!bi :all cerbot``

2. Limit the XPath selection of result items to direct children nodes (list
   items ``li``) of the ordered list (``ol``).

   To test the selector use: ``!bi :en pontiac aztek wiki``

   .. in the result list you should find the wikipedia entry on top,
   compare [2068]

[2087] https://github.com/searxng/searxng/issues/2087
[2068] https://github.com/searxng/searxng/issues/2068
2023-01-09 15:08:24 +01:00
..
answerers [fix] issue reported by pylint 22.1.0 2022-02-04 09:45:35 +01:00
data Update searx.data - update_firefox_version.py 2022-12-29 09:17:56 +01:00
engines [fix] bing: parsing result; check to see if the element contains links 2023-01-09 15:08:24 +01:00
infopage [mod] about page: add information about adding enginge to the brownser 2023-01-07 14:48:06 +01:00
metrics [fix] prepare for pylint 2.14.0 2022-06-03 15:41:52 +02:00
network Update network.py 2022-11-06 20:35:30 +01:00
plugins Merge branch 'master' into fasttext 2022-12-16 19:43:10 +00:00
search Merge branch 'master' into fasttext 2022-12-16 19:43:10 +00:00
static [build] /static 2023-01-08 18:39:37 +01:00
templates/simple [simple theme] set tab index for search page input field #1891 2023-01-08 13:41:48 +03:00
translations [translations] update from Weblate 2023-01-06 07:14:08 +00:00
__init__.py [format.python] initial formatting of the python code 2021-12-27 09:26:22 +01:00
autocomplete.py remove the print statement 2022-09-17 11:25:14 +03:00
babel_extract.py [mod] move category and names of constants to searx/searxng.msg 2022-03-16 09:55:53 +01:00
compat.py [fix] pyright repported errors 2022-07-30 18:04:44 +02:00
exceptions.py [pyright:strict] searx.search.checker.background 2022-01-27 22:07:12 +01:00
external_bang.py External bang: bug fix: URL encode the query so "!!g 1+1" works as intended 2022-08-27 07:10:26 +00:00
external_urls.py [fix] typos / reported by @kianmeng in searx PR-3366 2022-09-27 18:32:14 +02:00
flaskfix.py [format.python] initial formatting of the python code 2021-12-27 09:26:22 +01:00
languages.py [fix] add back missing languages & regions (followup of PR #1071) 2022-04-22 12:09:42 +02:00
locales.py searx.locale: add Dhivehi language 2022-11-05 21:26:15 +00:00
preferences.py Deserialize explicitly blank strings 2022-11-24 13:14:12 -06:00
query.py [fix] typos / reported by @kianmeng in searx PR-3366 2022-09-27 18:32:14 +02:00
redisdb.py move searx.shared.redisdb to searx.redisdb 2022-12-10 09:26:38 +01:00
redislib.py [mod] redislib - optimize LUA script registration. 2022-05-30 11:21:09 +02:00
results.py [fix] typos / reported by @kianmeng in searx PR-3366 2022-09-27 18:32:14 +02:00
searxng.msg Science category: update the engines 2022-09-23 20:45:58 +02:00
settings.yml [fix] Mojeek Xpath showing suggestions and searches + add lang support 2023-01-09 09:33:47 +01:00
settings_defaults.py [fix] follow up of PR-1856 2022-12-10 09:26:38 +01:00
settings_loader.py [fix] typos / reported by @kianmeng in searx PR-3366 2022-09-27 18:32:14 +02:00
unixthreadname.py [format.python] initial formatting of the python code 2021-12-27 09:26:22 +01:00
utils.py Lazy load fasttext-predict 2022-12-26 18:44:23 +00:00
version.py [fix] pyright repported errors 2022-07-30 18:04:44 +02:00
webadapter.py [fix] typos / reported by @kianmeng in searx PR-3366 2022-09-27 18:32:14 +02:00
webapp.py move searx.shared.redisdb to searx.redisdb 2022-12-10 09:26:38 +01:00
webutils.py [fix] typos / reported by @kianmeng in searx PR-3366 2022-09-27 18:32:14 +02:00