Commit Graph

29 Commits (e63457584b85b268bf5fd3e1ed3de7fb0265c8b2)

Author SHA1 Message Date
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 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 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
Noémi Ványi a6f20caf32 add initial support for offline engines && command engine 5 years ago
Adam Tauber 78365ffb8a [enh] add init function to engines which loads parallel 7 years ago
Adam Tauber 52e615dede [enh] py3 compatibility 7 years ago
Adam Tauber 16bdc0baf4 [mod] do not escape html content in engines 8 years ago
firebovine e145fdb86d #607 - noapi fix 8 years ago
marc 09ee2aa69d [fix] Result text in Wolfram|Alpha (#607) 8 years ago
Adam Tauber 104cdb7d03 [fix] remove unused imports ++ int token timestamp by default 8 years ago
a01200356 8f3b33de23 [fix] remove unnecesary async calls in wolframalpha_noapi
setting async to false in the request did the job, lol.
8 years ago
a01200356 4cea71e3bb [fix] merge with 79705450df 8 years ago
a01200356 4d8996eb4d [enh] unit tests for wolframalpha 8 years ago
a01200356 78d3f3d6b1 [enh] infobox for wolframalpha
TODO:
    - infobox styles
    - unit tests

ISSUES:
    - no_api version needs to re-call server for additional pods, such
      as plots. therefore, it's even slower than before. comment out the
part that calls get_async_pod if requests reach timeout or increase
timeout in settings.yml.
8 years ago
Adam Tauber 79705450df [fix] wolframalpha unicode inputs 8 years ago
Adam Tauber db72fc6449 [fix] encapsulate wolframalpha token fetching errors 8 years ago
Adam Tauber d06178139f [fix] wolframalpha page changes
related issues: #508 #509
8 years ago
a01200356 30bfbf2e07 [fix] pep8 9 years ago
a01200356 2a15944b58 [fix] test in wolframalpha_noapi 9 years ago
a01200356 d997265e55 add tests for unicode strings in wolframalpha 9 years ago
a01200356 576d37f256 [fix] unescape htmlentities in wolframalpha_noapi's answer 9 years ago
a01200356 19d025f0e7 [fix] pass wolframalpha_noapi tests 9 years ago
a01200356 e9d35c1309 update tests for wolframalpha 9 years ago
a01200356 0871c7ca85 [enh] wolframalpha appends result 9 years ago
a01200356 be54e5269a Add tests for the Wolfram Alpha engines (both API and NO API versions) 9 years ago
a01200356 5ed8f4da80 Make wolframalpha_noapi.py flake8 compliant 9 years ago
a01200356 d827fc49a1 Remove unnecessary code in wolframalpha_noapi engine
The answer is scraped from a js function, so parsing the html tree
doesn't achieve anything here.
9 years ago
a01200356 b51ba32f61 Wolfram Alpha (no API needed now) 9 years ago