Markus Heiser
60dc91f234
[static] make /stats more CSP compliant- make themes.all
...
Based on commit:
- a89b823f
[mod] remove overpass API call
this patch is generated by::
make themes.all
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
3 years ago
Alexandre Flament
a89b823f8d
[mod] remove overpass API call
...
prepare the code the PR #90
3 years ago
Alexandre Flament
ee83c99d2b
Merge pull request #116 from searxng/minor-refactoring-searx-engines
...
[mod] searx.engines.__init__: refactoring
3 years ago
Markus Heiser
15de8708b7
[docs] highlight source code linked from *automodule* content
...
sphinx.ext.viewcode won't highlight when 'highlight_language' [1] is set to
string 'none' [2]
[1] https://www.sphinx-doc.org/en/master/usage/extensions/viewcode.html
[2] https://www.sphinx-doc.org/en/master/usage/configuration.html#confval-highlight_language
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
3 years ago
Markus Heiser
ebbd5f7366
[docs] add new rubric 'Source-Code'
...
- document namespace: searx.engines
- move docs/dev/xpath_engine.rst -> docs/src/searx.engines.xpath.rst
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
3 years ago
Alexandre Flament
8375974dff
[fix] sys.exit(1) when there is duplicate engine name
3 years ago
Markus Heiser
8908937046
[mod] searx.engines.load_engine return None instead of sys.exit(1)
...
Loading an engine should not exit the application (*). Instead
of exit, return None.
(*) RuntimeError still exit the application: syntax error, etc...
BTW: add documentation and normalize indentation (no functional change)
Suggested-by: @dalf https://github.com/searxng/searxng/pull/116#issuecomment-851865627
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
3 years ago
Alexandre Flament
70a9208972
[mod] searx.engines.__init__: refactoring
3 years ago
Alexandre Flament
e3f4a77311
Merge pull request #110 from searxng/mod-default-settings
...
[mod] move all default settings into searx.settings_defaults
3 years ago
Markus Heiser
495d86b520
[pylint] searx/__init__.py & searx/settings_defaults.py
...
BTW: normalize some indentations in searx/settings_defaults.py
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
3 years ago
Adam Tauber
e4b6558339
[enh] add redis offline engine / https://redis.io/
...
Slightly modified merge of commit [97269be6], [01a8a5814a] and [c8d2b5eb] from
searx.
[97269be6] https://github.com/searx/searx/commit/97269be6
[01a8a581] https://github.com/searx/searx/commit/01a8a581
[c8d2b5eb] https://github.com/searx/searx/commit/c8d2b5eb
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
3 years ago
Adam Tauber
e33858d6ef
[fix] correct kv template formatting and remove internal data
...
Slightly modified merge of commit [ea7ccf24] from searx.
[ea7ccf24] https://github.com/searx/searx/commit/ea7ccf24
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
3 years ago
Alexandre Flament
e0af67f0af
Merge pull request #123 from searxng/fix_update_languages
...
[fix] searx_extra/update/update_languages.py
3 years ago
Alexandre Flament
925c21ce42
Merge pull request #122 from searxng/update_data_update_ahmia_blacklist.py
...
Update searx.data - update_ahmia_blacklist.py
3 years ago
Alexandre Flament
3266738e7a
Merge pull request #121 from searxng/update_data_update_currencies.py
...
Update searx.data - update_currencies.py
3 years ago
Alexandre Flament
54ae95b95b
Merge pull request #120 from searxng/update_data_update_wikidata_units.py
...
Update searx.data - update_wikidata_units.py
3 years ago
Alexandre Flament
414ad5b733
Merge pull request #119 from searxng/update_data_update_firefox_version.py
...
Update searx.data - update_firefox_version.py
3 years ago
dalf
43d06e8224
Update searx.data - update_ahmia_blacklist.py
3 years ago
dalf
e53ed4742c
Update searx.data - update_currencies.py
3 years ago
dalf
666a25314a
Update searx.data - update_wikidata_units.py
3 years ago
Alexandre Flament
fa0ae252b0
[fix] searx_extra/update/update_languages.py
...
* call searx.engines.load_engines (instead of initialize_engines)
* set timeout to 10 seconds
* remove some dead code
3 years ago
dalf
9f3a455777
Update searx.data - update_firefox_version.py
3 years ago
Alexandre Flament
6fa114c9ba
[mod] settings_default: remove searx.search.max_request_timeout global variable
3 years ago
Alexandre Flament
4b07df62e5
[mod] move all default settings into searx.settings_defaults
3 years ago
Alexandre Flament
856729226d
Merge pull request #118 from searxng/fix-mankier
...
[fix] mankier: fix paging
3 years ago
Alexandre Flament
6ca74386d6
[fix] mankier: fix paging
...
See https://github.com/searxng/searxng/pull/111#issuecomment-851641967
3 years ago
Alexandre Flament
6793af7608
Merge pull request #117 from return42/add-docker-hub
...
[enh] add engine - Docker Hub
3 years ago
Kyle Anthony Williams
d6a2d4f969
[enh] add engine - Docker Hub
...
Slightly modified merge of commit [1cb1d3ac] from searx [PR 2543]:
This adds Docker Hub .. as a search engine .. the engine's favicon was
downloaded from the Docker Hub website with wget and converted to a PNG
with ImageMagick .. It supports the parsing of URLs, titles, content,
published dates, and thumbnails of Docker images.
[1cb1d3ac] https://github.com/searx/searx/pull/2543/commits/1cb1d3ac
[PR 2543] https://github.com/searx/searx/pull/2543
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
3 years ago
Alexandre Flament
737f5f05d2
Merge pull request #114 from searxng/only-files-category-for-bittorent
...
[mod] the bittorent search engines are available only in the files category
3 years ago
Alexandre Flament
1113f7e616
[mod] the bittorent search engines are available only in the files category
...
related to #101
3 years ago
Alexandre Flament
e239369f1f
Merge pull request #109 from return42/sql-engines
...
Merge MySQL and PostgreSQL from searx
3 years ago
Alexandre Flament
c22c7cf35b
Merge pull request #111 from return42/mankier
...
[enh] add engine ManKier (JSON) / ManKier: Linux man pages
3 years ago
Alexandre Flament
a8b0705816
Merge pull request #112 from return42/pypi
...
[enh] add engine PyPi (XPath)
3 years ago
Jordan Webb
a8f474b23f
[enh] add engine PyPi (XPath)
...
Add a XPath configuration for PyPI (Python Package Index)
Slightly modified merge of [66d06b05] from searx's [PR 2830].
[PR 2830] https://github.com/searx/searx/pull/2830
[66d06b05] https://github.com/searx/searx/pull/2830/commits/66d06b05
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
3 years ago
Jordan Webb
52672d887b
[enh] add engine ManKier (JSON) / ManKier: Linux man pages
...
Slightly modified merge of [a881e742aa] from searx's [PR 2829].
[PR 2829] https://github.com/searx/searx/pull/2829
[a881e742aa] https://github.com/searx/searx/pull/2829/commits/a881e742aa
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
3 years ago
Markus Heiser
e7a4d0961b
[doc] add blog post about SQL servers
...
Modified merge of [22a79a4] from searx.
[22a79a4] 22a79a4896
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
3 years ago
Noémi Ványi
87a01a1736
[enh] add MySQL engine
...
Slightly modified merge of [c00a33fe] from searx.
[c00a33fe] c00a33feee
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
3 years ago
Noémi Ványi
324aa96062
[enh] add PostgreSQL engine
...
Slightly modified merge of [22079ff] from searx.
[22079ff] 22079ffdef
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
3 years ago
Alexandre Flament
da111f7fec
Merge pull request #108 from return42/dogpile
...
[enh] add metasearch engin dogpile.com (XPath)
3 years ago
Allen
a4b0746044
[enh] add metasearch engin dogpile.com (XPath)
...
Add Dogpile engine [1] / merged from [2]
[1] https://www.dogpile.com
[2] https://github.com/searx/searx/pull/2822
3 years ago
Alexandre Flament
54e783f3b1
Merge pull request #107 from return42/wikimini
...
[enh] add engine Wikimini (fr.wikimini.org)
3 years ago
LL Productions FR
15f1d6a80f
[enh] add engine Wikimini (fr.wikimini.org)
...
Online encyclopedia for children (only language fr), merged from [1]
[1] https://github.com/searx/searx/pull/2819
3 years ago
Alexandre Flament
83ccf7b04d
Merge pull request #99 from return42/webapp-misc
...
[enh] add settings option to enable/disable search formats
3 years ago
Markus Heiser
96b223023a
[mod] utils.get_value() - avoidance of a recursion
...
In a comment [1] dalf suggested to avoid a recursion of get_value()
[1] https://github.com/searxng/searxng/pull/99#discussion_r640833716
Suggested-by: Alexandre Flament <alex@al-f.net>
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
3 years ago
Markus Heiser
6ed4616da9
[enh] add settings option to enable/disable search formats
...
Access to formats can be denied by settings configuration::
search:
formats: [html, csv, json, rss]
Closes: https://github.com/searxng/searxng/issues/95
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
3 years ago
Alexandre Flament
b48b4c93d5
Merge pull request #100 from return42/webapp-pylint
...
[pylint] webapp.py
3 years ago
Markus Heiser
32b5a0ef7b
Merge pull request #93 from return42/genius-misc
...
Some minor Genius improvements
3 years ago
Markus Heiser
25b5797a0c
Merge pull request #103 from searxng/add-sqlite-engine2
...
[enh] add offline engine for sqlite database
3 years ago
Alexandre Flament
b1da97d092
Merge pull request #96 from return42/unsplash
...
lint & fix unsplash engine
3 years ago
Alexandre Flament
2ea34a3c36
[enh] add offline engine for sqlite database
...
To test & demonstrate this implementation download:
https://liste.mediathekview.de/filmliste-v2.db.bz2
and unpack into searx/data/filmliste-v2.db, in your settings.yml define a sqlite
engine named "demo"::
- name : demo
engine : sqlite
shortcut: demo
categories: general
result_template: default.html
database : searx/data/filmliste-v2.db
query_str : >-
SELECT title || ' (' || time(duration, 'unixepoch') || ')' AS title,
COALESCE( NULLIF(url_video_hd,''), NULLIF(url_video_sd,''), url_video) AS url,
description AS content
FROM film
WHERE title LIKE :wildcard OR description LIKE :wildcard
ORDER BY duration DESC
disabled : False
Query to test: "!demo concert"
This is a rewrite of the implementation from commit [1]
[1] searx/searx@8e90a21
Suggested-by: @virtadpt searx/searx#2808
3 years ago