SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.
Find a file
Lukas van den Berk 4829a76aae
Created new plugin type custom_results. Added new plugin bang_redirect (#2027)
* Made first attempt at the bangs redirects plugin.

* It redirects. But in a messy way via javascript.

* First version with custom plugin

* Added a help page and a operator to see all the bangs available.

* Changed to .format because of support

* Changed to .format because of support

* Removed : in params

* Fixed path to json file and changed bang operator

* Changed bang operator back to &

* Made first attempt at the bangs redirects plugin.

* It redirects. But in a messy way via javascript.

* First version with custom plugin

* Added a help page and a operator to see all the bangs available.

* Changed to .format because of support

* Changed to .format because of support

* Removed : in params

* Fixed path to json file and changed bang operator

* Changed bang operator back to &

* Refactored getting search query. Also changed bang operator to ! and is now working.

* Removed prints

* Removed temporary bangs_redirect.js file. Updated plugin documentation

* Added unit test for the bangs plugin

* Fixed a unit test and added 2 more for bangs plugin

* Changed back to default settings.yml

* Added myself to AUTHORS.rst

* Refacored working of custom plugin.

* Refactored _get_bangs_data from list to dict to improve search speed.

* Decoupled bangs plugin from webserver with redirect_url

* Refactored bangs unit tests

* Fixed unit test bangs. Removed dubbel parsing in bangs.py

* Removed a dumb print statement

* Refactored bangs plugin to core engine.

* Removed bangs plugin.

* Refactored external bangs unit tests from plugin to core.

* Removed custom_results/bangs documentation from plugins.rst

* Added newline in settings.yml so the PR stays clean.

* Changed searx/plugins/__init__.py back to the old file

* Removed newline search.py

* Refactored get_external_bang_operator from utils to external_bang.py

* Removed unnecessary import form test_plugins.py

* Removed _parseExternalBang and _isExternalBang from query.py

* Removed get_external_bang_operator since it was not necessary

* Simplified external_bang.py

* Simplified external_bang.py

* Moved external_bangs unit tests to test_webapp.py. Fixed return in search with external_bang

* Refactored query parsing to unicode to support python2

* Refactored query parsing to unicode to support python2

* Refactored bangs plugin to core engine.

* Refactored search parameter to search_query in external_bang.py
2020-07-03 13:25:04 +00:00
dockerfiles [fix] Disable HTTP keep alive 2020-02-07 19:16:15 +01:00
docs Created new plugin type custom_results. Added new plugin bang_redirect (#2027) 2020-07-03 13:25:04 +00:00
examples Fix whitespaces 2016-07-11 18:52:37 +07:00
searx Created new plugin type custom_results. Added new plugin bang_redirect (#2027) 2020-07-03 13:25:04 +00:00
tests Created new plugin type custom_results. Added new plugin bang_redirect (#2027) 2020-07-03 13:25:04 +00:00
utils Merge branch 'master' into gigablast 2020-06-29 16:09:59 +00:00
.codecov.yml codecov : update the commit status 2017-09-28 19:43:58 +02:00
.config.sh tooling box: added nginx + polished bash scripts and environment 2020-04-13 11:34:28 +02:00
.coveragerc Cover searx.utils 2014-07-12 15:46:55 +02:00
.dir-locals.el .dir-locals.el: add some comments about jedi & EPC 2019-11-29 13:15:15 +01:00
.dockerignore [fix] docker 'Error compiling' and 'SyntaxError' messages 2020-03-29 11:06:22 +02:00
.gitattributes [enh] add simple theme (WIP) 2017-08-06 16:04:21 +02:00
.gitignore Merge PR #1900 of https://github.com/asciimoo/searx into filtron 2020-03-29 13:03:27 +02:00
.landscape.yaml Add landscape.io configuration 2014-07-09 22:49:38 +02:00
.pylintrc boilerplate: add pylint / WIP: balance linting with pylint 2019-11-28 20:07:10 +01:00
.travis.yml [mod] .travis.yml: add Python 3.7 and Python 3.8 2020-04-08 15:42:02 +02:00
AUTHORS.rst Created new plugin type custom_results. Added new plugin bang_redirect (#2027) 2020-07-03 13:25:04 +00:00
babel.cfg [enh] babel.cfg added 2014-01-22 00:15:42 +01:00
CHANGELOG.rst [enh] version v0.16.0 2020-01-30 13:39:06 +01:00
Dockerfile Remove cache of pip upgrade 2020-05-09 18:58:26 +03:00
LICENSE [fix] full AGPLv3+ license according to #382 2015-07-04 18:23:54 +02:00
Makefile Merge branch 'master' of https://github.com/asciimoo/searx into csp-oscar-theme 2020-06-30 15:37:39 +02:00
manage.sh Merge branch 'master' into fix/manage.sh 2020-04-29 12:55:13 +00:00
README.rst [README] searx, world's first gluten free search engine ;) 2020-05-12 15:02:53 +02:00
requirements-dev.txt Merge branch 'master' of https://github.com/asciimoo/searx into filtron 2020-03-04 12:11:58 +01:00
requirements.txt [mod] requirements.txt: upgrade dependency versions. 2020-04-08 15:58:26 +02:00
setup.py brands: add ISSUE_URL 2020-03-25 17:48:34 +01:00
tox.ini [enh] tox.ini added to rewrite standard pep8 rules 2015-01-02 12:26:21 +01:00


searx install searx homepage searx wiki AGPL License Issues commits OpenCollective searx backers OpenCollective searx sponsors

Privacy-respecting, hackable metasearch engine / pronunciation ːks.

If you are looking for running instances, ready to use, then visit searx.space.

Otherwise jump to the user, admin and developer handbooks you will find on our homepage.

contact:

openhub // twitter // IRC: #searx @ freenode


gluten free