summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-11-17Fix type of unresponsive_enginesNoémi Ványi
Previously __get_translated_errors returned a list. But unresponsive_engines is a set. Closes #2305
2020-11-17[fix] fix github workflow: deploy documentationAlexandre Flament
2020-11-17[fix] fix github workflowAlexandre Flament
2020-11-17[fix] fix github workflowAlexandre Flament
bug fix of 9c25cd99c4b2bbeeb96f0a4efc3b2c21b06e1881
2020-11-17Merge pull request #2322 from dalf/github-actionsAlexandre Flament
[mod] use github actions instead of travis
2020-11-17[mod] use github actions instead of travisAlexandre Flament
fix https://github.com/searx/searx/issues/2279
2020-11-17Merge pull request #2321 from dalf/fix-standaloneAlexandre Flament
[fix] fix a test_standalone_searx test case
2020-11-17[fix] fix a test_standalone_searx test caseAlexandre Flament
If test_engines_init.py runs before test_standalone_searx.py, the engine list is not empty. It makes test_get_search_query flaky. This commit initializes the engline list in test_standalone_searx.py
2020-11-14Merge pull request #2286 from return42/fix-deviantartAlexandre Flament
[refactor] deviantart - improve results and clean up source code
2020-11-14[refactor] deviantart - improve results and clean up source codeMarkus Heiser
Devian's request and response forms has been changed. - fixed title - fixed time_range_dict to 'popular-*-***' - use image from <noscript> if exists - drop obsolete "http to https, remove domain sharding" - use query URL https://www.deviantart.com/search/deviations?page=5&q=foo - add searx/engines/deviantart.py to pylint check (test.pylint) Error pattern:: There DEBUG:searx:result: invalid title: {'url': 'https://www.deviantart.com/ ... Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2020-11-14Merge pull request #2288 from dalf/lintAlexandre Flament
[mod] remove unused import
2020-11-14[mod] remove unused importAlexandre Flament
use from searx.engines.duckduckgo import _fetch_supported_languages, supported_languages_url # NOQA so it is possible to easily remove all unused import using autoflake: autoflake --in-place --recursive --remove-all-unused-imports searx tests
2020-11-14Merge pull request #2299 from rachmadaniHaryono/feature/pep8-to-pycodestyleAlexandre Flament
pep8 to pycodestyle
2020-11-14Merge pull request #2296 from rachmadaniHaryono/feature/suppress-outputAlexandre Flament
suppress test output
2020-11-14Merge pull request #2292 from kvch/elasticsearch-engineAlexandre Flament
New engine: Elasticsearch
2020-11-14Merge pull request #2289 from dalf/pylintAlexandre Flament
[mod] pylint: add extension-pkg-whitelist=lxml.etree
2020-11-14Merge pull request #2309 from dalf/mod_search_reprAlexandre Flament
[mod] searx.search: EngineRef, SearchQuery: add __repr__ and __eq__ methods
2020-11-14Merge pull request #2300 from dalf/fix-webapp-indexAlexandre Flament
[fix] fix of / and /search
2020-11-13Merge pull request #2301 from pierrechtux/fix_typo_virualenvAlexandre Flament
Fix typo virualenv
2020-11-13Correct what was obviously a typo in vir(t)ualenv.Pierre Chevalier
2020-11-10New engine: ElasticsearchNoémi Ványi
2020-11-10[mod] searx.search: EngineRef, SearchQuery: add __repr__ and __eq__ methodsAlexandre Flament
2020-11-08Merge pull request #2295 from searx/default-http-headersNoémi Ványi
[enh] add default http headers - closes #715
2020-11-06[fix] fix of / and /searchAlexandre Flament
* URL / : the index page displayed the selected or the default category. * URL / : when the q parameter is set using the URL, the redirect includes the URL query. * URL /search : an empty query doesn't raise an exception.
2020-11-06new: test: ignored warning and errorsrachmadaniHaryono
2020-11-06chg: test: Makefile pep8 testrachmadaniHaryono
2020-11-06chg: dev: pep8 to pycodestylerachmadaniHaryono
2020-11-05[enh] add default http headers - closes #715Adam Tauber
2020-11-05chg: test: suppress outputrachmadaniHaryono
2020-11-04Feature/standalone searx update (#1591)rachmadani haryono
* chg: dev: update standalone_searx parent d8a5df721b33dd8a7cc9e21dba4060f21d629f69 author rachmadaniHaryono <foreturiga@gmail.com> 1603896594 +0800 committer rachmadaniHaryono <foreturiga@gmail.com> 1603896619 +0800 chg: dev: debug engine_shortcuts chg: dev: only initilize if engine is given chg: dev: split main chg: dev: standalone_searx chg: dev: update standalone_searx chg: doc: remove unnecessary log chg: test: differentiate travis chg: test: disable shortcut chg: test: use default engine settings fix: dev: category choices fix: dev: duplicate engine shortcut fix: dev: travis python3 fix: test: use empty string as shortcut fix: test: apkm fix: test: engine shortcut fix: test: mypy fix: test: parameter fix: test: pep8 fix: test: py2 compatibilities fix: test: searx settings fix: test: travis engines new: dev: deduplicate engine new: dev: main receive engines parameter new: dev: parse_argument accept engines parameter new: dev: split search query from get_result func new: test: basic result case Suggestions: use RawTextQuery to make the suggestions URLs. Update all themes accordingly. * new: doc: searx import and init * chg: dev: parse_argument - doc - run on __main__ - simple parse_args * chg: doc: module * chg: dev: import section - remove unused python path modification - new required package * chg: dev: script run - parse_argument func return directly parsed results - main func return dict instead json text - dump directly on sys.stdout.write * chg: dev: get_search_query and get_search_query func * chg: dev: main func - move inner function outside - return dict instead of json text * new: dev: add utils to doc sys path * new: doc: standalone_searx * fix: doc: run script * chg: dev: mypy type hint * chg: dev: SearchQuery don't have attr engines * chg: dev: reset engines __init__ * chg: test: unit test update * chg: dev: pylint and flake8 * new: test: standalone_searx * chg: dev: main func and doc * chg: dev: import and type hint * new: dev: main func - remove get_result func - single func which just translate dict * chg: test: put mypy on dev requirement * chg: doc: update * new: doc: add standalone_searx module member * chg: doc: shell command line * chg: dev: remove mypy * chg: doc: module docstring
2020-11-03Merge pull request #2290 from dalf/fix-miscAdam Tauber
Various bug fixes
2020-11-03Merge pull request #1681 from MarcAbonce/index_refactorAdam Tauber
[mod] Separate index and search routes
2020-11-03[mod] pylint: minor code change to allow pylint globallyAlexandre Flament
This commit is only a step, it doesn't fix all the issues reported by pylint
2020-11-03[fix] webadapter: fix locked categoriesAlexandre Flament
2020-11-03[fix] comamnd engine: fix importAlexandre Flament
2020-11-03[fix] scanr_structure engine: fix importAlexandre Flament
2020-11-02[mod] separate index and search routesMarc Abonce Seguin
This makes it easier to separately handle search and index requests from a web server or from a reverse proxy. If a request to index contains a query, a permanent redirect HTTP response is returned. This should give some level of backwards compatibility for users that have set a searx instance in their browser's search bar.
2020-11-02[mod] pylint: add extension-pkg-whitelist=lxml.etreeAlexandre Flament
2020-11-02[fix] searx configuration - quote bash calls in sed replacementsMarkus Heiser
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2020-11-02[doc] searx configuration - add 'mkdir /etc/searx' before copyMarkus Heiser
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2020-11-02[fix] doc - add missing quotation marks in docs/build-templatesMarkus Heiser
Escape the all the quotation marks (" --> \") in docs/build-templates. The scripts are *bash evaluated* (e.g):: eval "echo \"$(< "${REPO_ROOT}/docs/build-templates/searx.rst")\"" Backslash, quotation marks and other need to be escaped. Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2020-10-31Merge pull request #2287 from return42/fix-make-runNoémi Ványi
[fix] make.run - use SEARX_DEBUG=1 instead of modifing settings.yml
2020-10-31[fix] make.run - use SEARX_DEBUG=1 instead of modifing settings.ymlMarkus Heiser
Reloading webapp.py when a file is changed exit with error:: $ make run .... INFO:werkzeug: * Detected change in 'searx/searx/engines/deviantart.py', reloading INFO:werkzeug: * Restarting with stat ERROR:searx:server.secret_key is not changed. Please use something else instead of ultrasecretkey. make: *** [Makefile:69: run] Error 1 Patch suggested by @dalf [1] [1] https://github.com/searx/searx/issues/2278#issuecomment-719732579 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2020-10-30[mod] make docs-live - remove --port option from sphinx-autobuildMarkus Heiser
Setting port fixed to 8080 has drawbacks when this port is already in use from another application [1]. Removing this option from the command line offers the use of the sphinx-autobuild defaults which are much more flexible [2]. [1] https://github.com/searx/searx/issues/2282 [2] https://github.com/executablebooks/sphinx-autobuild/blob/master/README.md Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2020-10-28[mod] .travis.yml: build documentation automatically on the master branchAlexandre Flament
2020-10-28Merge pull request #2224 from dalf/update-infobox-enginesNoémi Ványi
[enh] update infobox engines
2020-10-28[mod] wikidata engine: use one SPARQL request instead of 2 HTTP requests.Alexandre Flament
2020-10-28[mod] duckduckgo_definitions: display only user friendly attributes / URLAlexandre Flament
various bug fixes
2020-10-28[mod] result.py: merge infobox URL and attributes when the same label or the ↵Alexandre Flament
same entity entity are wikidata entity (like "Q42" for "Douglas Adams", see https://www.wikidata.org/wiki/Q42 )
2020-10-28[fix] simple theme: infobox: remove useless entity informationAlexandre Flament