Martin Fischer
b02f762687
[enh] add more categories
3 years ago
Markus Heiser
3d96a9839a
[format.python] initial formatting of the python code
...
This patch was generated by black [1]::
make format.python
[1] https://github.com/psf/black
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
3 years ago
Alexandre Flament
1a6207574e
[fix] gigablast engine
...
fetch extra params after 3000 seconds
3 years ago
Markus Heiser
f0059b80ed
[pylint] engines: drop no longer needed 'missing-function-docstring'
...
Suggested-by: @dalf https://github.com/searxng/searxng/issues/102#issuecomment-914168470
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
3 years ago
Markus Heiser
aecfb2300d
[mod] one logger per engine - drop obsolete logger.getChild
...
Remove the no longer needed `logger = logger.getChild(...)` from engines.
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
3 years ago
Markus Heiser
dc29f1d826
[pylint] tag PYLINT_FILES by comment `# lint: pylint`
...
These py files are linted by `test.pylint`, all other files are linted by
`test.pep8`.
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
4 years ago
Alexandre Flament
d14994dc73
[httpx] replace searx.poolrequests by searx.network
...
settings.yml:
* outgoing.networks:
* can contains network definition
* propertiers: enable_http, verify, http2, max_connections, max_keepalive_connections,
keepalive_expiry, local_addresses, support_ipv4, support_ipv6, proxies, max_redirects, retries
* retries: 0 by default, number of times searx retries to send the HTTP request (using different IP & proxy each time)
* local_addresses can be "192.168.0.1/24" (it supports IPv6)
* support_ipv4 & support_ipv6: both True by default
see https://github.com/searx/searx/pull/1034
* each engine can define a "network" section:
* either a full network description
* either reference an existing network
* all HTTP requests of engine use the same HTTP configuration (it was not the case before, see proxy configuration in master)
4 years ago
Alexandre Flament
ca93a01844
[mod] dynamically set language_support variable
...
The language_support variable is set to True by default,
and set to False in only 5 engines.
Except the documentation and the /config URL, this variable is not used.
This commit remove the variable definition in the engines, and
set value according to supported_languages length: False when the length is 0,
True otherwise.
Close #2485
4 years ago
Alexandre Flament
a4dcfa025c
[enh] engines: add about variable
...
move meta information from comment to the about variable
so the preferences, the documentation can show these information
4 years ago
Dalf
1022228d95
Drop Python 2 (1/n): remove unicode string and url_utils
4 years ago
Markus Heiser
ee5d2b319b
[fix] gigablast requires a random extra parameter
...
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
4 years ago
Markus Heiser
a18760b322
[fix] revise of the gigablast engine (WIP)
...
The gigablast API has changed and seems to have some quirks, this is the first
revise. More work (hacks) are needed.
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
4 years ago
Markus Heiser
57c7b90edd
[fix] gigablast does no longer support *supported_languages_url*
...
Since there are zero results, we can remove it:
$ make engines.languages
fetch languages ..
...
fetched 0 languages from engine gigablast
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
4 years ago
Markus Heiser
de179ecc5b
[fix] remove debug print from commit e5305f8
...
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
4 years ago
Adam Tauber
34ad3d6b34
[enh] display error message if gigablast extra param expired
5 years ago
Adam Tauber
fc457569f7
[fix] pep8
5 years ago
Adam Tauber
e5305f886c
[fix] fetch extra search param of gigablast - fixes #1293
5 years ago
Dalf
85b3723345
[mod] speed optimization
...
compile XPath only once
avoid redundant call to urlparse
get_locale(webapp.py): avoid useless call to request.accept_languages.best_match
5 years ago
Adam Tauber
bbe4442a86
[fix] update gigablast engine
5 years ago
Noémi Ványi
b63d645a52
Revert "remove 'all' option from search languages"
...
This reverts commit 4d1770398a
.
6 years ago
Noémi Ványi
b843c1351a
add missing parameter to gigablast search url
...
Closes #1293
7 years ago
Adam Tauber
7752b0a807
[fix] gigablast url parameter change - fixes #1107
7 years ago
marc
4d1770398a
remove 'all' option from search languages
7 years ago
misnyo
b91772eff1
[fix] gigablast pep8 fix
7 years ago
misnyo
8849606e5f
[fix] gigablast api fix
7 years ago
Adam Tauber
52e615dede
[enh] py3 compatibility
8 years ago
marc
1175b3906f
change language list to only include languages with a minimum of engines
...
that support them.
users can still query lesser supported through the :lang_code bang.
8 years ago
marc
af35eee10b
tests for _fetch_supported_languages in engines
...
and refactor method to make it testable without making requests
8 years ago
marc
f62ce21f50
[mod] fetch supported languages for several engines
...
utils/fetch_languages.py gets languages supported by each engine and
generates engines_languages.json with each engine's supported language.
8 years ago
marc
a11948c71b
Add language support for more engines.
8 years ago
marc
c677aee58a
filter langauges
8 years ago
marc
149802c569
[enh] add supported_languages on engines and auto-generate languages.py
8 years ago
Adam Tauber
16bdc0baf4
[mod] do not escape html content in engines
8 years ago
Adam Tauber
5dd2340bc6
[fix] gigablast redirect - closes #575
8 years ago
Adam Tauber
37035b7a40
[fix] gigablast params ++ json response format
9 years ago
Thomas Pointhuber
b9a9abe10d
[enh] improve gigablast engine
...
add language and safesearch support
9 years ago
Adam Tauber
47b4a85fe3
[fix] gigablast https + url params
9 years ago
Adam Tauber
f1ac794a07
[fix] gigablast url params
9 years ago
Adam Tauber
37c3ace309
[fix] add missing scheme to duplicated results too ++ revert gigablasts handling
9 years ago
Adam Tauber
e3df22b140
[fix] handle missing url scheme - fixes #428
9 years ago
Adam Tauber
93fd1e4c76
Merge pull request #308 from dalf/versions_upgrade
...
update versions.cfg to use the current up-to-date packages
10 years ago
Alexandre Flament
4689fe341c
update versions.cfg to use the current up-to-date packages
10 years ago
Alexandre Flament
78edc16e66
[enh] reduce the number of http outgoing connections.
...
engines that still use http : gigablast, bing image for thumbnails, 1x and dbpedia autocompleter
10 years ago
Thomas Pointhuber
04f7118d0a
[enh] add gigablast engine
10 years ago