Commit Graph
100 Commits
Author SHA1 Message Date
Alexandre Flament 883e9c1ddd Merge pull request #885 from return42/mod-simple
[mod] simple theme: define a '.show-content-button'
2022-02-19 16:07:05 +01:00
Alexandre Flament ace5401632 Merge pull request #900 from return42/fix-883
[fix] bandcamp: fix itemtype (album|track) and exceptions
2022-02-19 13:42:53 +01:00
Alexandre Flament 29182eb1c9 Merge pull request #899 from dalf/limiter_update
[limiter] update
2022-02-18 22:17:26 +01:00
Alexandre Flament bf2a2ed48f Merge pull request #882 from return42/fix-873
[fix] replace embedded HTML by data_src
2022-02-18 20:55:40 +01:00
Alexandre Flament 12b5f9e561 Merge pull request #905 from searxng/dependabot/pip/master/flask-2.0.3
Bump flask from 2.0.2 to 2.0.3
2022-02-18 11:54:42 +01:00
Alexandre Flament 4a669247ed Merge pull request #902 from searxng/dependabot/pip/master/lxml-4.8.0
Bump lxml from 4.7.1 to 4.8.0
2022-02-18 11:54:29 +01:00
Alexandre Flament bcd71e0998 Merge pull request #901 from searxng/dependabot/pip/master/redis-4.1.4
Bump redis from 4.1.3 to 4.1.4
2022-02-18 08:37:40 +01:00
Alexandre Flament eb25f06d8b Merge pull request #907 from searxng/translations_update
Update translations
2022-02-18 08:36:14 +01:00
Alexandre Flament d1b7debac6 [limiter] update 2022-02-17 20:27:02 +01:00
Alexandre Flament 288e3086d2 Merge pull request #896 from return42/fi-peertube
[fix] replace peer.tube by peertube.biz
2022-02-15 13:04:07 +01:00
Alexandre Flament a4942213a1 Merge pull request #892 from dalf/limiter-update
plugin limiter: check only /image_proxy and /search
2022-02-12 18:17:05 +01:00
Alexandre Flament b99ccd7c02 plugin limiter: check only /image_proxy and /search
also adjust the number of req/time
2022-02-12 15:57:07 +01:00
Alexandre Flament 8aba858057 Merge pull request #877 from return42/fix-876
[fix] docker generated new settings.yml does not work
2022-02-11 22:44:22 +01:00
Alexandre Flament 782c81ec17 Merge pull request #884 from return42/disable-deezer
[mod] disable deezer engine by default
2022-02-11 22:39:18 +01:00
Alexandre Flament 9e4ef7a6ce Merge pull request #889 from searxng/dependabot/pip/master/mistletoe-0.8.2
Bump mistletoe from 0.8.1 to 0.8.2
2022-02-11 22:38:49 +01:00
Alexandre Flament ab94e49385 Merge pull request #890 from searxng/dependabot/pip/master/redis-4.1.3
Bump redis from 4.1.2 to 4.1.3
2022-02-11 22:27:10 +01:00
Alexandre Flament 10e6881ca8 Merge pull request #867 from return42/fix-base_url_rand
[fix] invidious engine: store random base_url in param
2022-02-05 09:03:20 +01:00
Alexandre Flament bf987bb608 Merge pull request #848 from not-my-profile/help-route
Introduce `/help` route
2022-02-05 08:52:19 +01:00
Alexandre Flament ad3a46a268 Merge pull request #864 from searxng/dependabot/pip/master/twine-3.8.0
Bump twine from 3.7.1 to 3.8.0
2022-02-04 09:28:29 +01:00
Alexandre Flament 7a89c5bfe8 Merge pull request #866 from searxng/translations_update
Update translations
2022-02-04 09:20:55 +01:00
Alexandre Flament 9fae80facb Merge pull request #618 from dalf/limiter
[enh] limiter plugin
2022-02-02 09:24:34 +01:00
Alexandre FlamentandMarkus Heiser f79b0fce06 [enh] limiter plugin
can replace filtron:
* rate limite the number of request per IP and per (IP, User-Agent)
* block some bots

use Redis
data stored in Redis never contains the IP addresses, only HMAC using the secret_key

Co-authored-by: Markus Heiser <markus.heiser@darmarit.de>
2022-02-02 09:15:59 +01:00
Alexandre Flament 2d5929cc59 [mod] searx.utils: more typing 2022-01-30 22:14:12 +01:00
Alexandre Flament ebd3013a1a [mod] tineye engine: minor changes
* remove "disable: false" in settings.yml
* use the json() method from httpx.Response (faster character encoding detection)
2022-01-30 20:49:22 +01:00
Alexandre Flament 0eacc46ee3 [mod] add documentation about searx.utils
This module is a toolbox for the engines.
Is should be documented.

In addition, searx/utils.py is checked by pylint.
2022-01-29 22:49:42 +01:00
Alexandre Flament f240a67bd7 Merge pull request #842 from HLFH/master
Fix setup.py help folder
2022-01-29 15:46:11 +01:00
Alexandre Flament 068155df88 [build] /static 2022-01-29 14:44:05 +01:00
Alexandre Flament dc4caa5a39 [fix] simple theme: /preferences: cookies table is LTR
close #827
2022-01-29 14:42:12 +01:00
Alexandre Flament f3f61df6a0 [mod] remove deprecate code
remove code to support Python 3.5 and Python 3.6
2022-01-29 08:54:12 +01:00
Alexandre Flament 116802852d [fix] ina engine
based on https://gitlab.e.foundation/e/cloud/my-spot/-/commit/a45408e8e2ced90d3f268e09ef01808234072c8b
2022-01-28 22:33:41 +01:00
Alexandre Flament 4f82ab36a9 Merge pull request #817 from not-my-profile/pyright-01
Pyright 01
2022-01-27 23:18:41 +01:00
Alexandre Flament 5fc53b41f8 Merge pull request #805 from tiekoetter/fix-tor
Fix Tor
2022-01-27 22:47:32 +01:00
Alexandre Flament dfb9ca527d [fix] simple theme: don't crash when the checker is enabled
The macro "checkbox" in macros.html uses the macro "icon_small"
from icons.html

The commit imports icon_small in macros.html to fix the issue.
It works because the macros in macros.html are imported with the Jinja2 context.

See https://jinja.palletsprojects.com/en/3.0.x/templates/#import-visibility

close #819
2022-01-25 22:03:21 +01:00
Alexandre Flament 81453a0eba Merge pull request #811 from return42/enh-788
[mod] configuration to overwrite engine description
2022-01-25 06:55:12 +01:00
Alexandre Flament 576eab04d2 Merge pull request #802 from MontyQI/Icon-update
Changed preferences icon to settings icon in gruntfile
2022-01-24 22:05:55 +01:00
Alexandre Flament 61853aa0fb Merge pull request #799 from return42/brave-complete
Add autocompleter from Brave
2022-01-23 19:23:06 +01:00
Alexandre Flament a8d54cfcab Merge pull request #758 from not-my-profile/introduce-userdoc
Introduce `searx/help/`
2022-01-23 11:35:24 +01:00
Alexandre Flament 382f4f8fb0 Merge pull request #801 from dalf/fix-checker
[fix] checker: fix image fetch
2022-01-22 19:29:29 +01:00
Alexandre Flament 5439dd5fb1 [fix] checker: fix image fetch
Since https://github.com/searxng/searxng/pull/354
the searx.network.stream(...) returns a tuple

This commits update the checker code according to
this function signature change.
2022-01-22 16:11:42 +01:00
Alexandre Flament f01ddd1932 Merge pull request #775 from return42/redis-4.1.1
Revert "[hotfix] interim fix to get docker-build of CI without issues"
2022-01-22 15:56:15 +01:00
Alexandre Flament b972df255a Merge pull request #776 from mrpaulblack/simple-ltr-vars
[simple theme] dont hardcode border radius
2022-01-18 07:56:03 +01:00
Alexandre Flament a94ab32b92 Merge pull request #777 from unixfox/patch-4
Update XPath for Google engine
2022-01-18 07:52:03 +01:00
Alexandre FlamentandMarkus Heiser f88dec444b [mod] update README.rst / differences to searx
* add "Differences to searx" section
* normalize some reST markup & trailing whitespace
* Use `===` and `----` to markup chapters & sections (like we use in other
  documentations).

Co-authored-by: Markus Heiser <markus.heiser@darmarit.de>
Co-authored-by: Alexandre Flament <alex@al-f.net>
2022-01-17 09:34:42 +01:00
Alexandre Flament 0c036ae294 Merge pull request #750 from dalf/simple-rtl
Simple theme: implement RTL
2022-01-16 20:29:34 +01:00
Alexandre Flament e07417848f Merge pull request #695 from return42/fix-sp
[fix] startpage engine / modified API
2022-01-16 20:27:36 +01:00
Alexandre Flament 468619abcb [build] /static 2022-01-16 18:52:46 +01:00
Alexandre Flament d000288ad0 [enh] simple theme: RTL support
* mirror all inline SVGs so that direction SVGs display correctly on RTL
* set the bold list element in info box to RTL so the colon gets displayed on the right side
* set correct .ltr function for the left border on the search button in #q
* move text to the right in autocomplete
* move search form in lign with result article on RTL
* add the correct padding for img thumbnails in categories like music on RTL
* apply RTL to result table for map results
* align text in tables part of /preferences on RTL
* move burger menu on index page to the left on RTL
* fix positioning of drop down arrow on select boxes on RTL
* align result URL on the right (written LTR)
* align vim hotkeys help on the left since it is not translated
* image detail:
  * labels (author, format, URL, etc...) are written on the right,
    values are on the left.
  * URL are written LTR and overflow on the right
2022-01-16 18:51:11 +01:00
Alexandre Flament 2084d7b1ed [mod] simple theme: change stylelint configuration
* disable declaration-empty-line-before
  https://stylelint.io/user-guide/rules/list/declaration-empty-line-before/
  this change allows to mix CSS declarations and LESS mixins without empty lines:

  #something {
    display: flex;
    .ltr-left(60rem); // no mandatory empty line before this one
  }

* disable no-invalid-position-at-import-rule
  https://stylelint.io/user-guide/rules/list/no-invalid-position-at-import-rule/

  this change allows to declare some mixins and then import another .less file:
  for example:

  .ltr-left(@offset) {
    left: @offset;
  }
  @import "style.less";
2022-01-16 18:50:19 +01:00
Alexandre Flament f9271d595f [fix] startpage: workaround to use the startpage network
workaround for the issue #762
2022-01-15 22:56:34 +01:00
Alexandre Flament 32874dbf7f Merge pull request #742 from return42/mysql
[mod] engine mysql_server: make port configurable
2022-01-15 21:35:34 +01:00
Alexandre Flament 687bdef410 Merge pull request #740 from return42/fix-bang
[fix] get_bang_url: handle ambiguous !!bangs without error
2022-01-12 22:00:18 +01:00
Alexandre Flament 94736d7465 Merge pull request #745 from return42/hot-fix
[hotfix] interim fix to get docker-build of CI without issues
2022-01-12 10:04:12 +01:00
Alexandre Flament df52ee711b Merge pull request #700 from dalf/update-gh-workflow
[mod] GitHub workflow: use cache
2022-01-06 18:21:46 +01:00
Alexandre Flament 93c6829b27 Merge pull request #699 from dalf/uwsgi
[mod] adjust dockerfiles/uwsgi.ini
2022-01-06 09:50:41 +01:00
Alexandre Flament 03189d60f4 Merge pull request #697 from searxng/remove-nl-be
Delete searx/translations/nl_BE
2022-01-06 09:26:12 +01:00
Alexandre Flament aedd6279b3 Merge pull request #634 from not-my-profile/powered-by
Introduce `categories_as_tabs` & group engines in tabs
2022-01-06 09:22:02 +01:00
Alexandre Flament 55ae74d725 [mod] adjust dockerfiles/uwsgi.ini 2022-01-05 21:06:25 +01:00
Alexandre Flament 1f7059e040 [mod] GitHub workflow: use cache 2022-01-05 20:59:59 +01:00
Alexandre Flament 40684f6b5e Delete searx/translations/nl_BE
See https://github.com/searxng/searxng/issues/540
2022-01-05 20:36:24 +01:00
Alexandre Flament 9004e84b6e Merge pull request #596 from dalf/upgrade-httpx
Upgrade httpx
2022-01-05 19:13:48 +01:00
Alexandre Flament d3ecadd3f8 Merge pull request #679 from dalf/brand-searxng
searxng.org: update setup.py & settings.yml
2022-01-05 19:07:53 +01:00
Alexandre Flament 2134703b4b [enh] settings.yml: implement general.enable_metrics
* allow not to record metrics (response time, etc...)
* this commit doesn't change the UI. If the metrics are disabled
  /stats and /stats/errors will return empty response.
  in /preferences, the columns response time and reliability will be empty.
2022-01-05 19:03:04 +01:00
Alexandre Flament e64c3deab7 [mod] upgrade httpx 0.21.2
httpx 0.21.2 and httpcore 0.14.4 fix multiple issues:
* https://github.com/encode/httpx/releases/tag/0.21.2
* https://github.com/encode/httpcore/releases/tag/0.14.4

so most of the workarounds in searx.network have been removed.
2022-01-05 18:46:00 +01:00
Alexandre Flament 41ae5aea2b [fix] disabling all engines in a category makes the bang search in general
with this commit, there is no result
2022-01-03 20:23:46 +01:00
Alexandre Flament 8e99c11c95 Merge pull request #680 from JamesClonk/master
fix minor typo
2022-01-03 18:25:54 +01:00
Alexandre Flament 458b7fb72d Merge pull request #610 from return42/img-load-error
[fix] simple theme: hide the image if img load fails
2022-01-02 22:34:15 +01:00
Alexandre Flament d83aa2b0d2 Merge pull request #613 from return42/pylint-bing-images
[pylint] Bing (Images) engine
2022-01-02 22:00:55 +01:00
Alexandre Flament 76cbfbbdda reference docs.searxng.org 2022-01-02 21:18:29 +01:00
Alexandre Flament 6b49f32d3e Merge pull request #670 from searxng/update_data_update_firefox_version.py
Update searx.data - update_firefox_version.py
2022-01-01 12:16:50 +01:00
Alexandre Flament 7d4834ac4d [mod] webutils.py: remove dead code
secret_key can't be bytes (see settings_default.py)
2021-12-28 10:14:38 +01:00
Alexandre Flament d784870209 [fix] use hmac.compare_digest instead of ==
see https://docs.python.org/3/library/hmac.html#hmac.HMAC.hexdigest
2021-12-28 08:36:31 +01:00
Alexandre Flament c6922ae7c5 Merge pull request #619 from dalf/apply-black
Apply black
2021-12-27 19:11:01 +01:00
Alexandre Flament 3c77412d33 [mod] replace pycodestyle by black
"make test.black" checks for the code style
"make format.python" format the python code
2021-12-27 08:58:59 +01:00
Alexandre Flament 9215d4cde7 [fix] python searxng_extra/standalone_searx.py --help
The scripts loads the engine and then parse the arguments.
After that the engines are initialized.

Before this commit, with "--help", the HTTP clients are closed before
the engine initialization threads. When these init threads try to send
an HTTP request, an exception is raised.
2021-12-26 23:09:10 +01:00
Alexandre Flament 811837d109 [remove] searxng_extra/google_search.py
remove deprecated script
2021-12-26 23:08:25 +01:00
Alexandre Flament 7bef2cc8dc Merge pull request #548 from searxng/dependabot/pip/master/selenium-4.1.0
Bump selenium from 3.141.0 to 4.1.0
2021-12-24 10:05:20 +01:00
Alexandre Flament 81abc5f4c2 [fix] ./manage: upgrade geckodriver when GECKODRIVER_VERSION change 2021-12-24 09:14:15 +01:00
Alexandre Flament 6300b0b4b2 Merge pull request #655 from searxng/translations_update
Update translations
2021-12-24 08:42:02 +01:00
Alexandre Flament 19f6f6b157 Merge pull request #650 from dalf/fix-pr-646
[fix] PR #646
2021-12-24 08:02:35 +01:00
Alexandre Flament 34b820a87d [fix] PR #646 2021-12-23 22:08:45 +01:00
Alexandre Flament 69747d5cb3 Merge pull request #646 from return42/drop-py36
[ci] drop Python 3.6
2021-12-23 10:33:23 +01:00
Alexandre Flament 5ca1ec411e Merge pull request #624 from return42/upd-description
[upd] engine_descriptions.json
2021-12-20 23:36:34 +01:00
Alexandre Flament 21c509d59e Merge pull request #626 from searxng/readme-add-irc-link
README.rst: add IRC #searxng
2021-12-20 23:28:49 +01:00
Alexandre Flament e206a61145 README.rst: add IRC #searxng 2021-12-20 23:26:02 +01:00
Alexandre Flament b5d4cac7e1 Merge pull request #615 from return42/pylint-reddit
[pylint] Reddit engine
2021-12-19 11:32:32 +01:00
Alexandre Flament 2713ac6c0b Merge pull request #612 from dalf/revert-pr-483
[mod] Dockerfile: use binary from pypi
2021-12-18 15:16:40 +01:00
Alexandre Flament 4bd78a7ef0 [mod] Dockerfile: use binary from pypi
lxml doesn't raise any exception
2021-12-18 14:07:29 +01:00
Alexandre Flament 4da1e0026c Merge pull request #609 from return42/fix-bing-news
[fix] engine bing-news: replace the http:// by https://
2021-12-18 00:01:40 +01:00
Alexandre Flament f6b1264b5f Merge pull request #584 from return42/drop-css-vendor
[mod] simple-theme: remove vendor CSS
2021-12-17 12:14:19 +01:00
Alexandre Flament 5c710e1285 Merge pull request #608 from return42/fix-translation-commit
[fix] weblate: separate commit description from commit body
2021-12-17 11:59:38 +01:00
Alexandre Flament 56e6d19b48 update_firefox_version.py: update user agent signature
The user agent from Windows is
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:95.0) Gecko/20100101 Firefox/95.0

See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-Agent/Firefox#windows
2021-12-16 23:10:39 +01:00
Alexandre Flament 6bb6f7ffc1 Merge pull request #602 from return42/fix-600
[fix] move engines gpodder and AZlyrics into category music
2021-12-16 18:18:16 +01:00
Alexandre Flament 9e636afe9c Merge pull request #604 from return42/disable-mvw
[fix] engine: MediathekViewWeb (mvw) disable by default
2021-12-16 18:18:01 +01:00
Alexandre Flament da1f970eb5 Merge pull request #601 from searxng/add-matrix-contact
README.rst: add contact information
2021-12-14 22:21:20 +01:00
Alexandre Flament 4dc7d955be README.rst: add contact information 2021-12-14 22:20:46 +01:00
Alexandre Flament 5c7167cd5a Merge pull request #599 from searxng/dependabot/pip/lxml-4.6.5
Bump lxml from 4.6.4 to 4.6.5
2021-12-13 21:48:19 +01:00
Alexandre Flament 3d378e4d08 Merge pull request #597 from searxng/docker-upgrade-baseimage
Dockerfile: use alpine 3.15
2021-12-12 11:05:26 +01:00
Alexandre Flament ff4958075e Merge pull request #598 from searxng/translations_update
Update translations
2021-12-11 19:16:00 +01:00
Alexandre Flament f9c9284f48 Dockerfile: use alpine 3.15
Use Python 3.9.7-r4 (previously 3.9.5-r2)
2021-12-11 17:06:23 +01:00
Alexandre Flament 2a262df0bb Merge pull request #582 from return42/fix-autocomplete-csp
[fix] simple theme: make autocomplete-js CSP compliant
2021-12-08 20:28:35 +01:00