Commit Graph
100 Commits
Author SHA1 Message Date
Alexandre Flament b971167ced move searx.shared.redisdb to searx.redisdb 2022-12-10 09:26:38 +01:00
Alexandre FlamentandMarkus Heiser 34e260f88f [fix] follow up of PR-1856
- the environment variable SEARXNG_REDIS_URL overrides the setting value redis.url
- ./manage sets SEARXNG_REDIS_URL to unix:///usr/local/searxng-redis/run/redis.sock if:
   - the socket exists
   - SEARXNG_REDIS_URL is not already defined

Update of PR #1856

Co-authored-by: Markus Heiser <markus.heiser@darmarit.de>
2022-12-10 09:26:38 +01:00
Alexandre Flament abb33bd7dd Merge pull request #2016 from searxng/translations_update
Update translations
2022-12-09 10:17:35 +01:00
Alexandre Flament 0b1f09faa4 Merge pull request #2013 from searxng/dependabot/pip/master/redis-4.4.0
Bump redis from 4.3.5 to 4.4.0
2022-12-09 10:16:47 +01:00
Alexandre Flament 6479b67cd2 Merge pull request #2014 from searxng/dependabot/pip/master/selenium-4.7.2
Bump selenium from 4.7.0 to 4.7.2
2022-12-09 10:13:55 +01:00
Alexandre Flament a6d870d5cf Merge pull request #2015 from searxng/dependabot/pip/master/pylint-2.15.8
Bump pylint from 2.15.7 to 2.15.8
2022-12-09 10:08:12 +01:00
Alexandre Flament 3df1a9839a Merge pull request #2017 from searxng/dependabot/pip/certifi-2022.12.7
Bump certifi from 2022.9.24 to 2022.12.7
2022-12-09 10:07:18 +01:00
Alexandre Flament 67eea86b35 Merge pull request #2006 from dalf/fix_1951
Fix: don't crash when engine or name is missing in settings.yml
2022-12-05 13:43:38 +01:00
Alexandre Flament 269326063a Fix: don't crash when engine or name is missing in settings.yml
SearXNG crashes if the engine or name fields are missing.
With this commit, the app displays an error in the log and keeps loading.

Close #1951
2022-12-04 23:43:59 +01:00
Alexandre Flament 768659f2bd Merge pull request #1988 from ryankask/fix-redis-conn-logging
Copy client connection kwargs before mutating
2022-11-29 19:38:54 +01:00
Alexandre Flament b5371b7a85 Merge pull request #1963 from searxng/translations_update
Update translations
2022-11-19 17:26:05 +01:00
Alexandre Flament 1cdadf4bfd Merge pull request #1948 from searxng/dependabot/pip/master/selenium-4.6.0
Bump selenium from 4.5.0 to 4.6.0
2022-11-18 14:20:11 +01:00
Alexandre Flament fe8b0472dd Merge pull request #1949 from searxng/translations_update
Update translations
2022-11-18 14:19:51 +01:00
Alexandre Flament d3949269a9 Merge pull request #1942 from dalf/fix_redis_initialization
[FIX] Redis initialization
2022-11-07 23:16:04 +01:00
Alexandre Flament 8f19bdaf17 Merge pull request #1882 from fehho/metacpan
Add MetaCPAN engine
2022-11-07 21:54:11 +01:00
Alexandre Flament ae54c7d525 Merge pull request #1938 from Evhorizon/master
Update network.py
2022-11-06 21:20:38 +01:00
Alexandre Flament 2dc5c0e1d6 Merge pull request #1928 from searxng/translations_update
Update translations
2022-11-06 11:29:28 +01:00
Alexandre Flament 4fe5463671 Merge pull request #1869 from vgerak/1836-ddg-weather
Fix floating point format in DDG weather humidity
2022-11-05 22:46:50 +01:00
Alexandre Flament e473addaff User agent: don't include the patch number in the Firefox version
The Firefox version in the user agent doesn't include the patch version: 106.0 not 106.0.2

Close #1914
2022-11-05 22:04:37 +01:00
Alexandre Flament e9f42e1c22 Merge pull request #1918 from LinuxMeow/patch-1
Remove unused volume
2022-11-05 19:45:13 +01:00
Alexandre Flament d37afb8ab9 Merge pull request #1856 from dalf/checker_requires_redis
The checker requires Redis
2022-11-05 17:50:40 +01:00
Alexandre Flament fe419e355b The checker requires Redis
Remove the abstraction in searx.shared.SharedDict.
Implement a basic and dedicated scheduler for the checker using a Redis script.
2022-11-05 12:04:50 +01:00
Alexandre Flament d764d94a70 Merge pull request #1927 from searxng/dependabot/pip/master/babel-2.11.0
Bump babel from 2.10.3 to 2.11.0
2022-11-05 11:38:16 +01:00
Alexandre Flament d3a7399ed7 Merge pull request #1929 from dalf/github_workflow_update
GH workflow: various improvements
2022-11-05 11:14:09 +01:00
Alexandre Flament 710a3a001f Merge pull request #1873 from searxng/translations_update
Update translations
2022-10-21 10:06:32 +02:00
Alexandre Flament 1a5b096578 Merge pull request #1860 from dalf/fix-startpage
[fix] startpage engine
2022-10-14 20:40:51 +02:00
Alexandre Flament 096d9defa6 Merge pull request #1847 from searxng/dependabot/pip/master/typing-extensions-4.4.0
Bump typing-extensions from 4.3.0 to 4.4.0
2022-10-14 16:26:19 +02:00
Alexandre Flament e2dd5a80bb Merge pull request #1831 from searxng/dependabot/pip/master/sphinx-5.2.3
Bump sphinx from 5.1.1 to 5.2.3
2022-10-14 16:25:45 +02:00
Alexandre Flament 4d4dfc58d4 Merge pull request #1858 from searxng/dependabot/pip/master/pylint-2.15.4
Bump pylint from 2.15.3 to 2.15.4
2022-10-14 16:24:40 +02:00
Alexandre Flament 2eb817011c Merge pull request #1529 from dalf/network_trust_env
searx.network: use SSL_CERT_FILE and SSL_CERT_DIR when they are defined
2022-10-14 16:06:29 +02:00
Alexandre Flament 32e8c2cf09 searx.network: add "verify" option to the networks
Each network can define a verify option:
* false to disable certificate verification
* a path to existing certificate.

SearXNG uses SSL_CERT_FILE and SSL_CERT_DIR when they are defined
see https://www.python-httpx.org/environment_variables/#ssl_cert_file
2022-10-14 13:59:22 +00:00
Alexandre Flament 72f6367e23 Merge pull request #1859 from searxng/translations_update
Update translations
2022-10-14 12:18:39 +02:00
Alexandre Flament 666cd1f635 Merge pull request #1846 from searxng/dependabot/pip/master/black-22.10.0
Bump black from 22.8.0 to 22.10.0
2022-10-07 10:07:24 +02:00
Alexandre Flament 84f61af839 Merge pull request #1848 from searxng/translations_update
Update translations
2022-10-07 10:05:26 +02:00
Alexandre Flament 901143f056 Merge pull request #1830 from MohamedElashri/master
Use official sci-hub mirrors
2022-10-01 09:59:07 +02:00
Alexandre Flament 14d0fb2cd4 Merge pull request #1823 from searxng/dependabot/pip/master/selenium-4.5.0
Bump selenium from 4.4.3 to 4.5.0
2022-10-01 09:42:11 +02:00
Alexandre Flament e9af772b65 Merge pull request #1826 from searxng/dependabot/pip/master/myst-parser-0.18.1
Bump myst-parser from 0.18.0 to 0.18.1
2022-10-01 09:34:36 +02:00
Alexandre Flament 62324655ff Merge pull request #1827 from searxng/translations_update
Update translations
2022-09-30 10:52:53 +02:00
Alexandre Flament f4281b16ff Merge pull request #1824 from searxng/dependabot/pip/master/certifi-2022.9.24
Bump certifi from 2022.9.14 to 2022.9.24
2022-09-30 10:51:40 +02:00
Alexandre Flament a7d693231c Merge pull request #1819 from searxng/update_data_update_currencies.py
Update searx.data - update_currencies.py
2022-09-29 16:03:34 +02:00
Alexandre Flament f3d25f9cef Merge pull request #1821 from searxng/update_data_update_engine_descriptions.py
Update searx.data - update_engine_descriptions.py
2022-09-29 16:02:57 +02:00
Alexandre Flament 5060732486 Merge pull request #1818 from searxng/update_data_update_ahmia_blacklist.py
Update searx.data - update_ahmia_blacklist.py
2022-09-29 16:02:02 +02:00
Alexandre Flament 520a873ab4 Merge pull request #1820 from searxng/update_data_update_wikidata_units.py
Update searx.data - update_wikidata_units.py
2022-09-29 16:01:31 +02:00
Alexandre Flament 5f34015445 Merge pull request #1817 from searxng/update_data_update_firefox_version.py
Update searx.data - update_firefox_version.py
2022-09-29 16:00:37 +02:00
Alexandre Flament a3148e5115 Merge pull request #1814 from return42/fix-typos
[fix] typos / reported by @kianmeng in searx PR-3366
2022-09-28 09:22:02 +02:00
Alexandre Flament 0e00af9c26 Merge pull request #1810 from return42/fix-1809
[fix] springer: unsupported operand type(s) for +: 'NoneType' and 'str'
2022-09-28 09:20:03 +02:00
Alexandre Flament 7097508a67 Merge pull request #1811 from return42/fix-paper.html
[fix] doc of the paper.html template (isbn, issn)
2022-09-28 09:19:20 +02:00
Alexandre Flament 94c4cc126b Merge pull request #1806 from return42/paper-link
fix some leftovers in the science category
2022-09-24 22:11:35 +02:00
Alexandre Flament bfd6f61849 Merge pull request #1804 from return42/fix-core.ac.uk
core.ac.uk: use paper.html template
2022-09-24 15:12:05 +02:00
Alexandre Flament 16443d4f4a [mod] core.ac.uk: try multiple ways to get url
If the url is not found, using:
* the DOI
* the downloadUrl
* the ARK id
2022-09-24 15:02:39 +02:00
Alexandre Flament c808284f4d Merge pull request #1805 from return42/paper-add-doi
[mod] paper.html: add links to doi resolver
2022-09-24 14:46:07 +02:00
Alexandre Flament ddd380fc06 Merge pull request #1803 from return42/paper-type
[docs] add description of the field 'type' from paper.html template
2022-09-24 11:56:16 +02:00
Alexandre Flament fc389f009d Merge pull request #1705 from dalf/template_paper
Theme: add a paper.html template and update of the science engines
2022-09-23 23:09:27 +02:00
Alexandre Flament d6446be38f [mod] science category: various update of about PR 1705 2022-09-23 20:52:55 +02:00
Alexandre Flament bef3984d03 Merge pull request #1728 from liimee/eng-ddw
add duckduckgo weather engine
2022-09-23 18:14:09 +02:00
Alexandre Flament d3fec1388c Merge pull request #1624 from liimee/eng-wttr
Add wttr.in engine
2022-09-23 18:13:37 +02:00
Alexandre Flament 1a7b6872b5 Merge pull request #1792 from unixfox/google-images-internal-api
use the internal API for google images
2022-09-21 19:50:38 +02:00
Alexandre Flament b3708e4137 Merge pull request #1757 from LencoDigitexer/master
add yandex autocomplete
2022-09-17 13:17:00 +02:00
Alexandre Flament 07b7058cb7 Merge pull request #1773 from searxng/dependabot/pip/master/uvloop-0.17.0
Bump uvloop from 0.16.0 to 0.17.0
2022-09-16 12:42:07 +02:00
Alexandre Flament f1867378b2 Merge pull request #1775 from searxng/dependabot/pip/master/yamllint-1.28.0
Bump yamllint from 1.27.1 to 1.28.0
2022-09-16 11:18:42 +02:00
Alexandre Flament 0accc6f804 Merge pull request #1774 from searxng/dependabot/pip/master/certifi-2022.9.14
Bump certifi from 2022.6.15 to 2022.9.14
2022-09-16 11:18:30 +02:00
Alexandre Flament e4ef63b5ef Merge pull request #1777 from searxng/translations_update
Update translations
2022-09-16 11:12:26 +02:00
Alexandre Flament eb3d185e66 Merge pull request #1755 from searxng/dependabot/npm_and_yarn/searx/static/themes/simple/master/sharp-0.31.0
Bump sharp from 0.30.7 to 0.31.0 in /searx/static/themes/simple
2022-09-09 10:40:38 +02:00
Alexandre Flament ada7213f7f Merge pull request #1756 from searxng/translations_update
Update translations
2022-09-09 10:01:49 +02:00
Alexandre Flament 691c0ed6b9 Merge pull request #1743 from dalf/update_about_metrics
Update about the metrics
2022-09-04 11:29:28 +02:00
Alexandre Flament 174e524256 Merge pull request #1730 from dalf/docker-trivy
GitHub worfklow: add daily security check using trivy
2022-09-01 18:48:42 +02:00
Alexandre Flament 242db53118 Merge pull request #1708 from dalf/result_proxy_default_settings
settings.yml: set default values for result_proxy
2022-08-29 19:42:04 +02:00
Alexandre Flament a7bd2b47c2 Merge pull request #1712 from dalf/remove_searx_env_var
Remove usage of SEARX environment variables
2022-08-29 19:41:39 +02:00
Alexandre Flament 56000d5162 Merge pull request #1699 from liimee/eng-app-store
add apple app store engine
2022-08-27 07:43:23 +02:00
Alexandre Flament 44bc94c36e Merge pull request #1700 from liimee/eng-ddm
add apple maps engine
2022-08-27 07:36:16 +02:00
Alexandre Flament 5284de9137 Merge pull request #1702 from tiekoetter/limiter-accept-encoding-handling
[mod] limiter plugin: Accept-Encoding handling
2022-08-26 11:54:12 +02:00
Alexandre Flament 5a241e545e Merge pull request #1688 from liimee/eng-9gag
Add 9gag engine
2022-08-25 09:32:52 +02:00
Alexandre Flament 5ed40af3ba Merge pull request #1661 from liimee/eng-tw
Add twitter engine
2022-08-21 15:21:18 +02:00
Alexandre Flament e81c458165 Merge pull request #1656 from searxng/dependabot/pip/master/flask-2.2.2
Bump flask from 2.1.3 to 2.2.2
2022-08-13 18:33:39 +02:00
Alexandre Flament 2babf59adc [fix] pyright repported errors
The errors make pyright usage useless since a new error won't be seen [1].

[1] https://github.com/searxng/searxng/pull/1569

```
  searx/compat.py:11:27 - error: Expression of type "Type[cached_property[_T@cached_property]]" cannot be assigned to declared type "Type[cached_property]"
    "Type[cached_property[_T@cached_property]]" is incompatible with "Type[cached_property]"
    Type "Type[cached_property[_T@cached_property]]" cannot be assigned to type "Type[cached_property]" (reportGeneralTypeIssues)
  searx/utils.py:69:36 - error: Expression of type "None" cannot be assigned to parameter of type "str"
    Type "None" cannot be assigned to type "str" (reportGeneralTypeIssues)
  searx/utils.py:573:85 - error: Expression of type "None" cannot be assigned to parameter of type "int"
    Type "None" cannot be assigned to type "int" (reportGeneralTypeIssues)
  searx/webapp.py:1306:22 - error: Argument of type "str" cannot be assigned to parameter "__a" of type "BytesPath" in function "join"
    Type "str" cannot be assigned to type "BytesPath"
      "str" is incompatible with "bytes"
      "str" is incompatible with protocol "PathLike[bytes]"
        "__fspath__" is not present (reportGeneralTypeIssues)
  searx/webapp.py:1306:68 - error: Argument of type "Literal['themes']" cannot be assigned to parameter "paths" of type "BytesPath" in function "join"
    Type "Literal['themes']" cannot be assigned to type "BytesPath"
      "Literal['themes']" is incompatible with "bytes"
      "Literal['themes']" is incompatible with protocol "PathLike[bytes]"
        "__fspath__" is not present (reportGeneralTypeIssues)
  searx/webapp.py:1306:78 - error: Argument of type "str | Any | None" cannot be assigned to parameter "paths" of type "BytesPath" in function "join"
    Type "str | Any | None" cannot be assigned to type "BytesPath"
      Type "str" cannot be assigned to type "BytesPath"
        "str" is incompatible with "bytes"
        "str" is incompatible with protocol "PathLike[bytes]"
          "__fspath__" is not present (reportGeneralTypeIssues)
  searx/webapp.py:1306:85 - error: Argument of type "Literal['img']" cannot be assigned to parameter "paths" of type "BytesPath" in function "join"
    Type "Literal['img']" cannot be assigned to type "BytesPath"
      "Literal['img']" is incompatible with "bytes"
      "Literal['img']" is incompatible with protocol "PathLike[bytes]"
        "__fspath__" is not present (reportGeneralTypeIssues)
  searx/engines/mongodb.py:8:6 - warning: Import "pymongo" could not be resolved (reportMissingImports)
  searx/engines/mysql_server.py:9:8 - warning: Import "mysql.connector" could not be resolved (reportMissingImports)
  searx/engines/postgresql.py:9:8 - warning: Import "psycopg2" could not be resolved from source (reportMissingModuleSource)
  searx/engines/xpath.py:187:28 - warning: "categories" is not defined (reportUndefinedVariable)
  searx/search/__init__.py:184:82 - warning: "flask" is not defined (reportUndefinedVariable)
  searx/search/checker/background.py:19:26 - error: Type of "schedule" is partially unknown
    Type of "schedule" is "(delay: Any, func: Any, *args: Any) -> Literal[True]" (reportUnknownVariableType)
  searx/shared/__init__.py:8:12 - warning: Import "uwsgi" could not be resolved (reportMissingImports)
  searx/shared/shared_uwsgi.py:5:8 - warning: Import "uwsgi" could not be resolved (reportMissingImports)
```
2022-07-30 18:04:44 +02:00
Alexandre Flament 0cf5310933 Merge pull request #1581 from searxng/dependabot/pip/master/setproctitle-1.3.0
Bump setproctitle from 1.2.3 to 1.3.0
2022-07-29 10:35:49 +02:00
Alexandre Flament 4d97726907 Merge pull request #1518 from tiekoetter/fix-preferences
[fix] preferences: missing option value
2022-07-18 08:38:21 +02:00
Alexandre Flament 44f2eb50a5 Merge pull request #1219 from dalf/follow_bing_redirect
bing.py: remove redirection links
2022-07-10 18:06:22 +02:00
Alexandre Flament 4de4a213a6 Merge pull request #1487 from searxng/google-consent
bypass google consent with ucbcb=1
2022-07-10 10:57:22 +02:00
Alexandre Flament 641e39b0df Merge pull request #1486 from vojkovic/master
Add infinite scroll as a setting in settings.yml
2022-07-09 21:18:56 +02:00
Alexandre Flament a1e8af0796 bing.py: resolve bing.com/ck/a redirections
add a new function searx.network.multi_requests to send multiple HTTP requests at once
2022-07-08 22:02:21 +02:00
Alexandre Flament 7e695c6644 Merge pull request #1478 from dalf/submit_bug_workflow
Engine error log: Submit a new issue button: ask the user to check if there are some existing issues.
2022-07-08 20:24:00 +02:00
Alexandre Flament f90aed7ef9 locales.py: add support for Papiamento 2022-07-08 10:00:20 +02:00
Alexandre Flament be3ecf6e31 [build] /static 2022-07-08 09:04:57 +02:00
Alexandre Flament eb489c45ea Submit GH bug: ask the user to do some checks before submitting a new issue 2022-07-08 09:04:57 +02:00
Alexandre Flament df837d8b1b Merge pull request #1428 from return42/fix-center_aligment
fix typo and document preference 'center_alignment' in the 'ui' section
2022-07-07 09:43:12 +02:00
Alexandre Flament e524358426 Merge pull request #1470 from searxng/dependabot/pip/lxml-4.9.1
Bump lxml from 4.9.0 to 4.9.1
2022-07-07 08:16:34 +02:00
Alexandre Flament 6716c6b0c3 openstreetmap engine: return the localized named.
For example: display "Tokyo" instead of "東京都" when the language is English.
2022-07-02 16:51:25 +02:00
Alexandre Flament 7f30ac37e9 map.html: display the intended text for the links instead of the URL
For example display "Tokyo (en)" instead of https://en.wikipedia.org/wiki/Tokyo
2022-07-02 16:51:25 +02:00
Alexandre Flament 578b2a8183 fix searxng_extra/update/update*.py scripts
call searx.locales.locales_initialize before using LOCALE_NAMES

Related to https://github.com/searxng/searxng/pull/1306
2022-07-02 12:16:00 +02:00
Alexandre Flament f8f239fe1f Donation link: default value to searxng.org, can be hidden or custom
Add a new setting: general.donation_url

By default the value is https://docs.searxng.org/donate.html

When the value is false, the link is hidden

When the value is true, the link goes to the infopage donation,
the administrator can create a custom page.
2022-07-02 11:29:21 +02:00
Alexandre Flament da416511b5 Merge pull request #1402 from dalf/update-top-links
Update top links
2022-07-02 10:56:16 +02:00
Alexandre Flament bcded7686e [build] /static 2022-07-02 10:05:43 +02:00
Alexandre Flament e3e5d2bd22 Theme: all top right icons have labels including "Preferences" 2022-07-02 10:04:35 +02:00
Alexandre Flament 5672f5ad2a Merge pull request #1385 from searxng/dependabot/pip/master/splinter-0.18.1
Bump splinter from 0.18.0 to 0.18.1
2022-07-01 14:10:44 +02:00
Alexandre Flament 1489df1e3f Merge pull request #1384 from searxng/dependabot/pip/master/black-22.6.0
Bump black from 22.3.0 to 22.6.0
2022-07-01 14:05:02 +02:00
Alexandre Flament 107006515e Merge pull request #1380 from dalf/move_donation_link
Move donation link
2022-06-29 22:16:42 +02:00
Alexandre FlamentandÉmilien Devos 1617ef1e41 Update searx/infopage/en/donate.md
Co-authored-by: Émilien Devos <contact@emiliendevos.be>
2022-06-29 21:03:01 +02:00
Alexandre FlamentandÉmilien Devos 8c7235d5db Update docs/donate.rst
Co-authored-by: Émilien Devos <contact@emiliendevos.be>
2022-06-29 21:02:46 +02:00
Alexandre FlamentandÉmilien Devos c5cd513367 Update README.rst
Co-authored-by: Émilien Devos <contact@emiliendevos.be>
2022-06-29 21:02:40 +02:00