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
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
Alexandre Flament
02fc4147ce
[mod] dictzone, translated, currency_convert: use engine_type online_curency and online_dictionnary
4 years ago
Noémi Ványi
3a63dfbdd7
display if an engine does not support https
...
Closes #302
4 years ago
Alexandre Flament
b00d108673
[mod] pylint: numerous minor code fixes
4 years ago
Alexandre Flament
3038052c79
[mod] remove unused import
...
use
from searx.engines.duckduckgo import _fetch_supported_languages, supported_languages_url # NOQA
so it is possible to easily remove all unused import using autoflake:
autoflake --in-place --recursive --remove-all-unused-imports searx tests
4 years ago
Alexandre Flament
a9dc54bebc
[mod] Add searx.data module
...
Instead of loading the data/*.json in different location,
load these files in the new searx.data module.
4 years ago
Dalf
c225db45c8
Drop Python 2 (4/n): SearchQuery.query is a str instead of bytes
4 years ago
Dalf
1022228d95
Drop Python 2 (1/n): remove unicode string and url_utils
4 years ago
rinpatch
cd1374d2f2
added whitespaces
7 years ago
rinpatch
a305dae9d8
switched currency convert to duckduckgo and added Bitcoin to currency list
7 years ago
Marc Abonce Seguin
829032f306
[fix] read utf-8 files (settings, languages, currency) with python3.5
...
Related to discussion in #1124
The io.open import is necessary for python2
7 years ago
Joseph Nuthalapati
bdc803e185
Make Python 3 able to read settings files with Unicode characters
...
SearX currently doesn't start up when run with Python 3 as it tries to parse the
settings.yml file with ASCII codecs.
There are similar problems with engines_languages.json and currencies.json
Python 3 requires that files with Unicode characters be read with a 'b' flag.
This also works with Python 2 and hence can be integrated into the main source
code.
Tested with the latest Python 3.6.4rc1 on Debian unstable.
Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
7 years ago
pyrrh0n1c
4340c0b16c
Fixed typos.
7 years ago
pyrrh0n1c
2231b02add
Fixed the currency_convert engine.
7 years ago
Adam Tauber
52e615dede
[enh] py3 compatibility
8 years ago
stepshal
b3ab221b98
Fix anomalous backslash in string
8 years ago
Maxqia
56e53c9297
[fix] currency_convert: make unit tests pass
...
also make regex more efficent and normalize 's'es
9 years ago
Maxqia
fe2ce83e41
[enh] currency_convert: allow strings like google's "convert 1 euro to dollars"
9 years ago
Cqoicebordel
94567d99b3
Allow use of chars as € in currency converter
10 years ago
Alexandre Flament
5525625dae
[enh] currency_convert engine: user can write "1 dollars in euros" instead of "1 USD in EUR".
...
The currency names are fetched wikidata and store into a static file : searx/data/currencies.json
This file is loaded when the currency_converter is loaded.
A database is perhaps more appropiated.
10 years ago
Alexandre Flament
99efd790c8
engines: use https when possible
10 years ago
Cqoicebordel
a96208be96
Mediawiki's unit test
10 years ago
dalf
7c13d630e4
[fix] pep8 : engines (errors E121, E127, E128 and E501 still exist)
10 years ago
Dalf
6bfd566353
[enh] add infoboxes and answers
10 years ago
Adam Tauber
66f02dc2b6
[fix] unused globals removed
10 years ago
asciimoo
b2492c94f4
[fix] pep/flake8 compatibility
11 years ago
Matej Cotman
dd4662978d
fix: robot fw, entry points, some flake8, package searx egg
11 years ago
asciimoo
ab7fb1190d
[enh] smarter currency query parse II.
11 years ago
asciimoo
a35128f5e0
[enh] smarter currency query parse
11 years ago
asciimoo
1240be48fb
[fix] currency converter - valid date url param
11 years ago
asciimoo
14cd1d6faf
[enh] moar weight for currency convertor
11 years ago
asciimoo
cfff04f7d0
[enh] currency converter engine added
11 years ago