summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-10-07Merge pull request #2248 from dalf/fix-webadapterAlexandre Flament
[fix] various fixes of searx.webadapter
2020-10-07Merge pull request #2244 from dalf/fix-drop-python2Alexandre Flament
Fix drop python2
2020-10-06[fix] fix searx.webadapterAlexandre Flament
* Fix "?q=test&engines=wikipedia": fix exception * Fix "?q=test&engines=wikipedia&categories=images": now the engines from images category are included. * Fix parse_timeout: make sure a value is always returned * Various typing fixes (searx.webadapter, searx.search.SearchQuery)
2020-10-06[fix] drop Python 2: use collections.abc.Iterable instead of ↵Alexandre Flament
collections.Iterable
2020-10-06[fix] drop Python 2: use importlib instead of imp.load_sourceAlexandre Flament
imp.load_source is not documented in Python 3 see documentation : https://docs.python.org/3/library/importlib.html#importing-a-source-file-directly partial fix of https://github.com/searx/searx/issues/1674
2020-10-05Merge pull request #2237 from dalf/mod-engines-initAlexandre Flament
Mod engines init
2020-10-05[mod] webapp.py: update engines initialization conditionAlexandre Flament
Always call initialize engines except on the first run of werkzeug with the reload feature. the reload feature is activated when: * searx_debug is True (SEARX_DEBUG environment variable or settings.yml) * FLASK_APP=searx/webapp.py FLASK_ENV=development flask run (see https://flask.palletsprojects.com/en/1.1.x/cli/ ) Fix SEARX_DEBUG=0 make docs docs/admin/engines.rst : engines are initialized See https://github.com/searx/searx/issues/2204#issuecomment-701373438
2020-10-04Merge pull request #2241 from dalf/move-extract-text-and-urlAlexandre Flament
Move the extract_text and extract_url functions to searx.utils
2020-10-04Merge pull request #2239 from dalf/mod-preferencesAlexandre Flament
[mod] preferences.py: check language setting with a regex instead of match_language
2020-10-03[enh] Add SepiaSearch engine (#2227)Finn
supported_languages values: see https://framagit.org/framasoft/peertube/search-index/-/blob/master/client/src/views/Search.vue#L618-641
2020-10-03[mod] searx.utils.normalize_url: remove Yahoo hackAlexandre Flament
* The hack for Yahoo URLs is not necessary anymore. (see searx.engines.yahoo.parse_url) * move the URL normalization in extract_url to normalize_url
2020-10-02[mod] searx/utils.py: add docstringAlexandre Flament
2020-10-02[mod] move extract_text, extract_url to searx.utilsAlexandre Flament
2020-10-01[fix] revert PR #2232 and #2230Alexandre Flament
2020-10-01[mod] preferences.py: check language setting with a regex instead of ↵Alexandre Flament
match_language
2020-10-01Merge pull request #2236 from return42/fix-2234Alexandre Flament
[fix] google engine - div classes has been renamed in HTML result
2020-10-01[fix] google engine - div classes has been renamed in HTML reultMarkus Heiser
Since 1. October 2020 google has changed the 'class' attribute of the HTML result page. Fix the xpath expressions and ignore <div class="g" ../> sections which do not match to title's xpath expression. Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2020-09-30Merge pull request #2232 from dalf/fix-sphinx-build2Alexandre Flament
[fix] Sphinx 3.2.1 build: call searx.engines.initialize_engines
2020-09-30[fix] Sphinx 3.2.1 build: call searx.engines.initialize_enginesAlexandre Flament
Fix admin/engines.html Fix #2230
2020-09-30Merge pull request #2230 from dalf/fix-sphinx-buildAlexandre Flament
[fix] Sphinx 3.2.1 build: add missing "engines" variable in the jinja context
2020-09-29Merge pull request #2226 from dalf/fix-searx-migrationAlexandre Flament
[fix] migration from github.com/asciimoo/searx to github.com/searx/searx : fix URLs
2020-09-29[fix] Sphinx 3.2.1 build: add missing "engines" variable in the jinja contextAlexandre Flament
Fix the admin/engines.html page
2020-09-28[fix] about.html: fix small inconsistencies in about page (#2219)Qt Resynth
2020-09-28[fix] migration from github.com/asciimoo/searx to github.com/searx/searx : ↵Alexandre Flament
fix URLs
2020-09-28Merge pull request #2189 from dalf/architecture-clean-upAdam Tauber
Architecture clean up
2020-09-28[fix] Update Sphinx package versionsAlexandre Flament
* Update call to sphinx-autobuild (remove --poll -B options, add --open-browser) * Upgrade the Sphinx and sphinx-tabs versions. * utils/makefile.sphinx: remove the SPHINXVERS variable. * utils/makefile.sphinx: remove the sphinx-doc and sphinx-live targets, Sphinx is already installed by the pyenvinstall target.
2020-09-28[fix] missing 'alias' typo in docs/admin/installation-nginx.rstMarkus Heiser
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2020-09-26[mod] upgrade requests to version 2.24.0. use ssl instead of pyopenssl.Alexandre Flament
requests 2.24.0 uses the ssl module except if it doesn't support SNI, in this case searx fallbacks to pyopenssl. searx logs a critical message and exit if the ssl modules doesn't support SNI and pyOpenSSL is not installed. searx logs a critical message and exit if the ssl version is older than 1.0.2. in requirements.txt, pyopenssl is still required to install searx as a fallback.
2020-09-24[mod] more typingAlexandre Flament
2020-09-22[mod] add typing and __slots__Alexandre Flament
2020-09-22[mod] searx/webadapter.py: add get_selected_categories share common code ↵Alexandre Flament
with get_search_query_from_webapp Update searx/webapp.py to use get_selected_categories Close #2142
2020-09-22[mod] searx/webadapter.py: each web parameter has a dedicated function ↵Alexandre Flament
(parse_pageno, page_lang,....).
2020-09-22[mod] check the engine tokens in searx/webadapter.py instead of searx/search.pyAlexandre Flament
2020-09-22[mod] check time_range parameter in searx/webadapter.pyAlexandre Flament
2020-09-22[mod] add searx.search.EngineRefAlexandre Flament
was previously a Dict with two or three keys: name, category, from_bang make clear that this is a engine reference (see tests/unit/test_search.py for example) all variables using this class are renamed accordingly.
2020-09-22[mod] add searx/webadapter.pyAlexandre Flament
* move searx.search.get_search_query_from_webapp to searx.webadapter * move searx.query.SearchQuery to searx.search
2020-09-22"Egde" → "Edge"Qt Resynth
2020-09-22[mod] searx.search: change function declaration: online then offline then ↵Alexandre Flament
utility functions.
2020-09-22[mod] searx.search: remove unused global variable number_of_searchesAlexandre Flament
2020-09-22[mod] searx.query.RawTextQuery: getSearchQuery and changeSearchQuery rename ↵Alexandre Flament
to getQuery and changeQuery getSearchQuery is confusing, the method returns a str not a SearchQuery object
2020-09-22[mod] searx.search.Search: split the search method into different methodsAlexandre Flament
2020-09-22[mod] add searx/webutils.pyAlexandre Flament
contains utility functions and classes used only by webapp.py
2020-09-22[mod] refactor searx.webapp.get_localeAlexandre Flament
* Log each call to get_locale: display the URL, the locale and the source (browser, preferences, form). * Rename _get_browser_language to _get_browser_or_settings_language to match the actual code.
2020-09-22[fix] /autocompleter: return HTTP 400 when q is empty as intent.Alexandre Flament
Fix commit c225db45c8a4ab466bff049216f7e0189dc1b067
2020-09-22fetch google's search langs rather than ui langsMarc Abonce Seguin
2020-09-22fix utils/fetch_languages to work with new languagesMarc Abonce Seguin
2020-09-22fetch supported languages for startpage engineMarc Abonce Seguin
2020-09-22add language names in qwant's fetch languages functionMarc Abonce Seguin
2020-09-21Merge pull request #2211 from return42/fix-centos-7Alexandre Flament
Bugfix of: ERROR: centos-: uWSGI not yet implemented
2020-09-20[fix] remove doc-build for centos-7 from './utils/searx.sh doc'Markus Heiser
Since there is no centos-7 documentation 'searx.sh doc' produce an error message:: ERROR: centos-: uWSGI not yet implemented Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>