diff options
author | Noémi Ványi <sitbackandwait@gmail.com> | 2020-02-01 11:01:17 +0100 |
---|---|---|
committer | Noémi Ványi <sitbackandwait@gmail.com> | 2020-02-08 11:47:39 +0100 |
commit | 99435381a84072b110c32004b2fb778af9b96f77 (patch) | |
tree | 9ad5fd222e6717312ef05dbcd871ef46a97857e5 /searx/engines/dummy-offline.py | |
parent | f9c7a678d273c55a0e8a1a7a2dbfd696b2046e60 (diff) | |
download | searxng-99435381a84072b110c32004b2fb778af9b96f77.tar.gz searxng-99435381a84072b110c32004b2fb778af9b96f77.zip |
[enh] introduce private engines
This PR adds a new setting to engines named `tokens`.
It expects a list of tokens which lets searx validate
if the request should be accepted or not.
Diffstat (limited to 'searx/engines/dummy-offline.py')
-rw-r--r-- | searx/engines/dummy-offline.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/searx/engines/dummy-offline.py b/searx/engines/dummy-offline.py new file mode 100644 index 000000000..13a9ecc01 --- /dev/null +++ b/searx/engines/dummy-offline.py @@ -0,0 +1,12 @@ +""" + Dummy Offline + + @results one result + @stable yes +""" + + +def search(query, request_params): + return [{ + 'result': 'this is what you get', + }] |