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.
 
 
 
 
 
 
Go to 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
4 years ago
dockerfiles [fix] Disable HTTP keep alive 4 years ago
docs Created new plugin type custom_results. Added new plugin bang_redirect (#2027) 4 years ago
examples Fix whitespaces 8 years ago
searx Created new plugin type custom_results. Added new plugin bang_redirect (#2027) 4 years ago
tests Created new plugin type custom_results. Added new plugin bang_redirect (#2027) 4 years ago
utils Merge branch 'master' into gigablast 4 years ago
.codecov.yml codecov : update the commit status 7 years ago
.config.sh tooling box: added nginx + polished bash scripts and environment 4 years ago
.coveragerc Cover searx.utils 10 years ago
.dir-locals.el .dir-locals.el: add some comments about jedi & EPC 5 years ago
.dockerignore [fix] docker 'Error compiling' and 'SyntaxError' messages 4 years ago
.gitattributes [enh] add simple theme (WIP) 7 years ago
.gitignore Merge PR #1900 of https://github.com/asciimoo/searx into filtron 4 years ago
.landscape.yaml Add landscape.io configuration 10 years ago
.pylintrc boilerplate: add pylint / WIP: balance linting with pylint 5 years ago
.travis.yml [mod] .travis.yml: add Python 3.7 and Python 3.8 4 years ago
AUTHORS.rst Created new plugin type custom_results. Added new plugin bang_redirect (#2027) 4 years ago
CHANGELOG.rst [enh] version v0.16.0 4 years ago
Dockerfile Remove cache of pip upgrade 4 years ago
LICENSE [fix] full AGPLv3+ license according to #382 9 years ago
Makefile Merge branch 'master' of https://github.com/asciimoo/searx into csp-oscar-theme 4 years ago
README.rst [README] searx, world's first gluten free search engine ;) 4 years ago
babel.cfg [enh] babel.cfg added 11 years ago
manage.sh Merge branch 'master' into fix/manage.sh 4 years ago
requirements-dev.txt Merge branch 'master' of https://github.com/asciimoo/searx into filtron 4 years ago
requirements.txt [mod] requirements.txt: upgrade dependency versions. 4 years ago
setup.py brands: add ISSUE_URL 4 years ago
tox.ini [enh] tox.ini added to rewrite standard pep8 rules 10 years ago

README.rst

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

.. SPDX-License-Identifier: AGPL-3.0-or-later

.. figure:: https://raw.githubusercontent.com/asciimoo/searx/master/searx/static/themes/oscar/img/logo_searx_a.png
   :target: https://asciimoo.github.io/searx/
   :alt: searX
   :width: 100%
   :align: center

-------

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

Privacy-respecting, hackable `metasearch engine`_ / *pronunciation* **səːks**.

.. _metasearch engine: https://en.wikipedia.org/wiki/Metasearch_engine

.. |searx install| image:: https://img.shields.io/badge/-install-blue
   :target: https://asciimoo.github.io/searx/admin/installation.html

.. |searx homepage| image:: https://img.shields.io/badge/-homepage-blue
   :target: https://asciimoo.github.io/searx

.. |searx wiki| image:: https://img.shields.io/badge/-wiki-blue
   :target: https://github.com/asciimoo/searx/wiki

.. |AGPL License|  image:: https://img.shields.io/badge/license-AGPL-blue.svg
   :target: https://github.com/asciimoo/searx/blob/master/LICENSE

.. |Issues| image:: https://img.shields.io/github/issues/asciimoo/searx?color=yellow&label=issues
   :target: https://github.com/asciimoo/searx/issues

.. |PR| image:: https://img.shields.io/github/issues-pr-raw/asciimoo/searx?color=yellow&label=PR
   :target: https://github.com/asciimoo/searx/pulls

.. |commits| image:: https://img.shields.io/github/commit-activity/y/asciimoo/searx?color=yellow&label=commits
   :target: https://github.com/asciimoo/searx/commits/master

.. |OpenCollective searx backers| image:: https://opencollective.com/searx/backers/badge.svg
   :target: https://opencollective.com/searx#backer

.. |OpenCollective searx sponsors| image:: https://opencollective.com/searx/sponsors/badge.svg
   :target: https://opencollective.com/searx#sponsor


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_.

.. _searx.space: https://searx.space
.. _user: https://asciimoo.github.io/searx/user
.. _admin: https://asciimoo.github.io/searx/admin
.. _developer: https://asciimoo.github.io/searx/dev
.. _homepage: https://asciimoo.github.io/searx

contact:
  openhub_ // twitter_ // IRC: #searx @ freenode

.. _openhub: https://www.openhub.net/p/searx
.. _twitter: https://twitter.com/Searx_engine

-------

|gluten free|

.. |gluten free| image:: https://forthebadge.com/images/featured/featured-gluten-free.svg