searxng/searx
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
..
answerers [fix] small fixes in preferences view's text 2019-07-27 22:53:46 -07:00
data Created new plugin type custom_results. Added new plugin bang_redirect (#2027) 2020-07-03 13:25:04 +00:00
engines Merge branch 'master' into gigablast 2020-06-29 16:09:59 +00:00
plugins [enh] add routing directions to osm search - closes #254 2020-06-09 17:18:44 +02:00
static [fix] refine contrast ratios of texts and borders - #350 2020-07-02 16:24:58 +02:00
templates [fix] refine contrast ratios of texts and borders - #350 2020-07-02 16:24:58 +02:00
translations Fix Farsi language in Oscar && adjust tables with RTL 2020-05-31 23:44:34 +02:00
__init__.py [enh] introduce private engines 2020-02-08 11:47:39 +01:00
autocomplete.py Add Swisscows autocomplete option 2020-02-14 19:19:24 +01:00
brand.py build environment: add GIT_BRANCH variable 2020-03-29 16:28:17 +02:00
exceptions.py [fix] add message to SearxParameterException - fixes #1722 2019-10-14 15:06:25 +02:00
external_bang.py Created new plugin type custom_results. Added new plugin bang_redirect (#2027) 2020-07-03 13:25:04 +00:00
languages.py update languages: engines_languages.json languages.py 2020-03-01 08:06:51 +01:00
poolrequests.py [fix] measure request duration only if total_time attribute is set - fixes autocompleter 2017-11-23 01:52:54 +01:00
preferences.py preferences.py: implement defaults if unset 2020-02-23 20:56:05 +01:00
query.py Created new plugin type custom_results. Added new plugin bang_redirect (#2027) 2020-07-03 13:25:04 +00:00
results.py Created new plugin type custom_results. Added new plugin bang_redirect (#2027) 2020-07-03 13:25:04 +00:00
search.py Created new plugin type custom_results. Added new plugin bang_redirect (#2027) 2020-07-03 13:25:04 +00:00
settings.yml make category order configurable using ui.categories_order 2020-06-03 21:33:14 +02:00
settings_robot.yml preferences.py: implement defaults if unset 2020-02-23 20:56:05 +01:00
testing.py searx/testing.py: fixed pep8 error 2020-02-24 07:55:14 +01:00
url_utils.py minor fixes of pubmed engine 2017-11-01 17:02:38 +01:00
utils.py [mod] speed optimization 2019-11-15 09:33:15 +01:00
version.py [enh] version v0.16.0 2020-01-30 13:39:06 +01:00
webapp.py Created new plugin type custom_results. Added new plugin bang_redirect (#2027) 2020-07-03 13:25:04 +00:00