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
2 years ago
..
answerers
data Update searx.data - update_firefox_version.py 2 years ago
engines [fix] bing: parsing result; check to see if the element contains links 2 years ago
infopage [mod] about page: add information about adding enginge to the brownser 2 years ago
metrics
network
plugins Merge branch 'master' into fasttext 2 years ago
search Merge branch 'master' into fasttext 2 years ago
static [build] /static 2 years ago
templates/simple [simple theme] set tab index for search page input field #1891 2 years ago
translations [translations] update from Weblate 2 years ago
__init__.py
autocomplete.py
babel_extract.py
compat.py
exceptions.py
external_bang.py
external_urls.py
flaskfix.py
languages.py
locales.py
preferences.py
query.py
redisdb.py
redislib.py
results.py
searxng.msg
settings.yml [fix] Mojeek Xpath showing suggestions and searches + add lang support 2 years ago
settings_defaults.py
settings_loader.py
unixthreadname.py
utils.py Lazy load fasttext-predict 2 years ago
version.py
webadapter.py
webapp.py
webutils.py