Commit Graph

43 Commits (master)

Author SHA1 Message Date
LencoDigitexer bc28091557 remove the print statement 2 years ago
LencoDigitexer 7b8d6015e3 add yandex autocompleter 2 years ago
Markus Heiser 4326009d00 [format.python] based on bugfix in 9ed626130 2 years ago
Vojtěch Fošnár de4af2fefd [enh] add seznam autocomplete 2 years ago
Markus Heiser e9588b70a6 [fix] brave autocompleter: charset_normalizer issues
Use httpx.Response.json() to avoid charset_normalizer issues:

DEBUG   charset_normalizer            : override steps (5) and chunk_size (512) as content does not fit (153 byte(s) given) parameters.
INFO    charset_normalizer            : ascii passed initial chaos probing. Mean measured chaos is 0.000000 %
DEBUG   charset_normalizer            : ascii should target any language(s) of ['Latin Based']
INFO    charset_normalizer            : ascii is most likely the one. Stopping the process.

[1] https://www.python-httpx.org/api/#response

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2 years ago
Markus Heiser 9c5bac4c43 [pylint] searx/autocomplete.py
Fix remarks from pylint, BTW set SPDX-License-Identifier.

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2 years ago
Allen b8c98c4c0d [enh] Add autocompleter from Brave
Raw response example: https://search.brave.com/api/suggest?q=how%20to:%20with%20j

Headers are needed in order to get a 200 response, thus Searx user-agent is used.

Other URL param could be  '&rich=false' or  '&rich=true'.

Cherry-pick: 71786bf9cb
2 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>
2 years ago
Alexandre Flament 3c3599c9e6 [fix] startpage autocompletion 3 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)
3 years ago
Alexandre Flament eaa694fb7d [enh] replace requests by httpx 3 years ago
Alexandre Flament 63f17d2e4c [enh] autocomplete refactoring, autocomplete on external bangs 3 years ago
Alexandre Flament 0226ae69d3 [fix] dbpedia autocomplete (and use HTTPS) 4 years ago
Alexandre Flament edd8dccd07 [mod] searx.query.RawTextQuery: getSearchQuery and changeSearchQuery rename to getQuery and changeQuery
getSearchQuery is confusing, the method returns a str not a SearchQuery object
4 years ago
Dalf 1022228d95 Drop Python 2 (1/n): remove unicode string and url_utils 4 years ago
piplongrun b136480546
Add Swisscows autocomplete option 4 years ago
Marc Abonce Seguin 40272b0044 [fix] never pass bangs to autocomplete suggestions 5 years ago
Adam Tauber 36af8f9d67 [fix] use py2/3 compatibility layer 7 years ago
Adam Tauber 52e615dede [enh] py3 compatibility 7 years ago
Adam Tauber 7b1daf254e [fix] autocomplete unicode issue - closes #808 7 years ago
marc 149802c569 [enh] add supported_languages on engines and auto-generate languages.py 8 years ago
a01200356 94cb3a7f11 [enh] multilingual autocomplete
implemented for wikipedia, qwant and google
8 years ago
Alexandre Flament 6ab91515df [enh] autocompletion : add qwant 8 years ago
Adam Tauber bd22e9a336 [fix] pep8 compatibilty 8 years ago
Adam Tauber 1fcf066a81 [mod] change settings file structure according to #314 9 years ago
Dalf 9d10277c22 remove 'print' 9 years ago
Cqoicebordel 633c7b6a5f Add startpage as an autocompleter engine 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
9 years ago
Alexandre Flament 4689fe341c update versions.cfg to use the current up-to-date packages 9 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
9 years ago
Adam Tauber 9d11b36b5b [fix] timeout to autocompleters 9 years ago
Adam Tauber 10891bdeab Merge pull request #192 from dalf/connection-pool
[enh] improve response time. close #100
9 years ago
dalf d07cfd9089 [enh] use one single http connection pool : improve response time. close #100 9 years ago
Cqoicebordel 4d0aeae567 Thanks @pointhi ! 9 years ago
Cqoicebordel bc2d5bf88c Add '?' bang to the autocompleter 9 years ago
Thomas Pointhuber c19b0899a4 [fix] little autocompleter fix 10 years ago
Thomas Pointhuber 4e2dae30f0 [enh] add autocompletion for searx-specific strings 10 years ago
Adam Tauber b422788eb4 [fix] wikipedia autocompleter url param 10 years ago
Thomas Pointhuber 53dc92b0d7 update comments in autocomplete.py
* update comments
* add licence-header
10 years ago
Adam Tauber cd3a52e189 [enh] duckduckgo autocomplete added 10 years ago
Adam Tauber d2f89f0446 [fix] wikipedia autocomplete error handling 10 years ago
Adam Tauber 8e2d996e27 [fix] autocomplete encoding 10 years ago
Adam Tauber fd730ebcad [fix] autocompleter.py added 10 years ago