Commit Graph

52 Commits (3d96a9839a12649874b6d4cf9466bd3616b0a03c)

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>
2 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
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
3 years ago
lucky13820 fea8958e99
Fix the StartPage result title is showing the url
Fix the issue 2395 where StartPage result title is showing the url. https://github.com/searx/searx/issues/2395
4 years ago
joshu9h 8260435c8b
[Fix] Startpage 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 2006eb4680 [mod] move extract_text, extract_url to searx.utils 4 years ago
Marc Abonce Seguin 41800835f9 fetch supported languages for startpage engine 4 years ago
Spühler Stefan 4f90fb6a92 [Fix] Startpage ValueError on Spanish date format
datetime.parser.parse() does not know the Spanish date format which
leads to a ValueError. Fixes #1870

Traceback (most recent call last):
  File "/usr/local/searx/searx/search.py", line 160, in search_one_http_request_safe
    search_results = search_one_http_request(engine, query, request_params)
  File "/usr/local/searx/searx/search.py", line 97, in search_one_http_request
    return engine.response(response)
  File "/usr/local/searx/searx/engines/startpage.py", line 102, in response
    published_date = parser.parse(date_string, dayfirst=True)
  File "/usr/local/searx/searx-ve/lib/python3.6/site-packages/dateutil/parser/_parser.py", line 1358, in parse
    return DEFAULTPARSER.parse(timestr, **kwargs)
  File "/usr/local/searx/searx-ve/lib/python3.6/site-packages/dateutil/parser/_parser.py", line 649, in parse
    raise ValueError("Unknown string format:", timestr)
ValueError: ('Unknown string format:', '24 Ene 2013')
4 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 ed1c1bdb04 [fix] pep8 5 years ago
Adam Tauber 77a70fe541 [fix] update startpage engine - closes #1601 5 years ago
Noémi Ványi b63d645a52 Revert "remove 'all' option from search languages"
This reverts commit 4d1770398a.
5 years ago
Noémi Ványi aeb6dab187
Merge branch 'master' into master 5 years ago
Michael Pfitzner 44ce51f0c5 restore startpage search results 6 years ago
dimqua 0d86ed9c7e update startpage.py 6 years ago
marc 4d1770398a remove 'all' option from search languages 7 years ago
Adam Tauber 52e615dede [enh] py3 compatibility 7 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 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
stepshal b3ab221b98 Fix anomalous backslash in string 8 years ago
Adam Tauber bd22e9a336 [fix] pep8 compatibilty 8 years ago
Thomas Pointhuber 4508c96667 [enh] fix content fetching, parse published date from description 9 years ago
Thomas Pointhuber 996c96ffff [fix] block ixquick search url's 9 years ago
Thomas Pointhuber 23b9095cbf [fix] improve result handling of startpage engine 9 years ago
Cqoicebordel f1c10f4fe4 Startpage's unit test 9 years ago
Cqoicebordel b4b666e703 Flake8 10 years ago
Cqoicebordel fa0330f0ff Fix startpage
Fix issue with unicode caracters in startpage : we shouldn't urlencode them if we are using POST.
Should fix #169. @dimqua can you confirm ?
10 years ago
Adam Tauber c8be128e97 [mod] ignore startpage unicode errors 10 years ago
Adam Tauber b1234ee889 [fix] startpage engine compatibility 10 years ago
Thomas Pointhuber 678a80f043 fix startpage engine and add comments
* add language support
* remove not required code
* improve google-ad detection (no false detection anymore, I hope)
* other improvements
10 years ago
Adam Tauber 111a86d355 [fix] html escape 10 years ago
asciimoo 7db4558de7 [mod][fix] startpage engine updates 10 years ago
asciimoo c1d7d30b8e [mod] len() removed from conditions 10 years ago
asciimoo 68a0832524 [enh] search language support upadtes 10 years ago
asciimoo 14f4083ba1 [fix] print removed 10 years ago
asciimoo 9a74113b1c [enh] startpage paging init 10 years ago
asciimoo 85b81be35b [fix] pep8 11 years ago
pw3t b82ba74a7d Merge branch 'ixquick' of https://github.com/pw3t/searx into ixquick
Conflicts:
	searx/engines/startpage.py
11 years ago
pw3t a01042ae61 [ehn] added ixquick engine, using startpage engine 11 years ago
asciimoo b2492c94f4 [fix] pep/flake8 compatibility 11 years ago
pw3t 1dd35e9916 [ehn] added ixquick engine, using startpage engine 11 years ago
Dalf a2928e8d83 [fix] startpage engine : characters with diacritic were preceded by whitespace, and cleaner way to parse the result. 11 years ago
asciimoo 17bf00ee42 [enh] removing result html tags 11 years ago
asciimoo cf6a92a996 [fix] urljoin removed 11 years ago
asciimoo 7ddf7d43ba [fix] character encoding fix 11 years ago
asciimoo 1e5cbc5f9e [fix] sanitize results II. 11 years ago
asciimoo d2da51179a [fix] sanitize results 11 years ago