| Age | Commit message (Collapse) | Author |
|
AJAX requests send the X-Requested-With HTTP header,
so searx.webapp.autocompleter returns the results with the expected data format.
Related to #2127
Close #2203
|
|
[mod] searx.RawTextQuery: the constructor call parse_query
|
|
|
|
Drop Python 2
|
|
instead of bytes
Fix bug in translated.py and dictzone.py
|
|
|
|
|
|
|
|
|
|
example)
Fix #2152
|
|
fix #2181
|
|
|
|
|
|
|
|
A new "base" engine called command is introduced. It is the foundation for all command line engines for now.
You can use this engine to create your own command line engine.
Add some engines (commented out to make sure no one enables anything accidentally):
* git grep: This engine lets you grep in the searx repo.
* locate: If locate is installed and initialized, you can search on the FS.
* find: You can find files with a specific name from where you started searx.
* pattern search in files: This engine utilizes the command fgrep.
* regex search in files: This engine runs `grep` to find a file based on its contents.
|
|
and some other exceptions:
* KeyboardInterrupt
* SystemExit
* RuntimeError
* SystemError
* ImportError: an engine with an unmet dependency will stop everything.
|
|
Add key to settings.yml for opening result links in a new tab
|
|
Closes #1552
Closes #444
|
|
|
|
This reverts commit 4fb3ed2c6335b68f6b28ebc68d5d22f2fd621648.
|
|
* Added metager-search
|
|
[enh] test: load each engine to check for syntax errors
|
|
|
|
|
|
|
|
|
|
i.e. only one official website, one Twitter, etc.
|
|
|
|
fixes #1249 by @matejc
|
|
|
|
Implement a more robust detection if a process runs inside or outside of a
docker image.
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
|
|
|
|
|
|
[fix] piratebay engine date and pep8 indentation
|
|
|
|
[fix] piratebay engine
|
|
|
|
Include author and video length in Invidious results
|
|
Make default query submission method configurable
|
|
Make infobox shorter by default and add an expand toggle
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Sending queries through POST, while better for privacy, breaks functionality
with certain extensions (e.g. Firefox containers). Since Firefox does
not send cookies when requesting `/opensearch.xml`, users cannot easily
switch to GET on the client side unless they make a custom search
engine. This commit allows admins to modify the default method on their
side so they can set it to GET if needed.
|
|
[fix] fix the browser autocomplete feature.
|
|
Sending query params over GET seems to be the only way to be able to
enable autocomplete in the browser. This commit adds the necessary URL
formatting to opensearch.xml. In order to identify queries coming from
the URL bar (rather than an AJAX request), which requires a different
JSON format and MIME type, the request headers are checked for
"X-Requested-With: XMLHttpRequest" which is added by jQuery request.
|
|
## What does this PR do?
When installing searx on a centos-7 image [1] an encoding exception is raised from setup.py::
command: /usr/local/searx/searx-pyenv/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/usr/local/searx/searx-src/setup.py'"'"'; __file__='"'"'/usr/local/searx/searx-src/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-pidntzkq
cwd: /usr/local/searx/searx-src/
Complete output (7 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/local/searx/searx-src/setup.py", line 16, in <module>
long_description = f.read()
File "/usr/lib64/python3.6/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc9 in position 482: ordinal not in range(128)
[1] https://uk.images.linuxcontainers.org/
## Why is this change important?
README.rst uses non ASCII characters _(pronunciation səːks.)_
## How to test this PR locally?
install searx on a centos-7 image from https://uk.images.linuxcontainers.org/
|