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
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
1 year ago
..
answerers [fix] issue reported by pylint 22.1.0 2 years ago
data Update searx.data - update_firefox_version.py 1 year ago
engines [fix] bing: parsing result; check to see if the element contains links 1 year ago
infopage [mod] about page: add information about adding enginge to the brownser 1 year ago
metrics [fix] prepare for pylint 2.14.0 2 years ago
network Update network.py 2 years ago
plugins Merge branch 'master' into fasttext 1 year ago
search Merge branch 'master' into fasttext 1 year ago
static [build] /static 1 year ago
templates/simple [simple theme] set tab index for search page input field #1891 1 year ago
translations [translations] update from Weblate 1 year ago
__init__.py [format.python] initial formatting of the python code 2 years ago
autocomplete.py remove the print statement 2 years ago
babel_extract.py [mod] move category and names of constants to searx/searxng.msg 2 years ago
compat.py [fix] pyright repported errors 2 years ago
exceptions.py [pyright:strict] searx.search.checker.background 2 years ago
external_bang.py External bang: bug fix: URL encode the query so "!!g 1+1" works as intended 2 years ago
external_urls.py [fix] typos / reported by @kianmeng in searx PR-3366 2 years ago
flaskfix.py [format.python] initial formatting of the python code 2 years ago
languages.py [fix] add back missing languages & regions (followup of PR #1071) 2 years ago
locales.py searx.locale: add Dhivehi language 2 years ago
preferences.py Deserialize explicitly blank strings 1 year ago
query.py [fix] typos / reported by @kianmeng in searx PR-3366 2 years ago
redisdb.py move searx.shared.redisdb to searx.redisdb 1 year ago
redislib.py [mod] redislib - optimize LUA script registration. 2 years ago
results.py [fix] typos / reported by @kianmeng in searx PR-3366 2 years ago
searxng.msg Science category: update the engines 2 years ago
settings.yml [fix] Mojeek Xpath showing suggestions and searches + add lang support 1 year ago
settings_defaults.py [fix] follow up of PR-1856 1 year ago
settings_loader.py [fix] typos / reported by @kianmeng in searx PR-3366 2 years ago
unixthreadname.py [format.python] initial formatting of the python code 2 years ago
utils.py Lazy load fasttext-predict 1 year ago
version.py [fix] pyright repported errors 2 years ago
webadapter.py [fix] typos / reported by @kianmeng in searx PR-3366 2 years ago
webapp.py move searx.shared.redisdb to searx.redisdb 1 year ago
webutils.py [fix] typos / reported by @kianmeng in searx PR-3366 2 years ago