<feed xmlns='http://www.w3.org/2005/Atom'>
<title>searxng/searx/external_bang.py, branch custom</title>
<subtitle>Free internet metasearch engine which aggregates results from various search services and databases</subtitle>
<id>https://git.ikboikov.net/searxng/atom?h=custom</id>
<link rel='self' href='https://git.ikboikov.net/searxng/atom?h=custom'/>
<link rel='alternate' type='text/html' href='https://git.ikboikov.net/searxng/'/>
<updated>2025-09-03T11:37:36Z</updated>
<entry>
<title>[mod] addition of various type hints / tbc</title>
<updated>2025-09-03T11:37:36Z</updated>
<author>
<name>Markus Heiser</name>
<email>markus.heiser@darmarit.de</email>
</author>
<published>2025-08-22T15:17:51Z</published>
<link rel='alternate' type='text/html' href='https://git.ikboikov.net/searxng/commit/?id=57b9673efb1b4fd18a3ac15e26da642201e2cd33'/>
<id>urn:sha1:57b9673efb1b4fd18a3ac15e26da642201e2cd33</id>
<content type='text'>
- pyright configuration [1]_
- stub files: types-lxml [2]_
- addition of various type hints
- enable use of new type system features on older Python versions [3]_
- ``.tool-versions`` - set python to lowest version we support (3.10.18) [4]_:
  Older versions typically lack some typing features found in newer Python
  versions.  Therefore, for local type checking (before commit), it is necessary
  to use the older Python interpreter.

.. [1] https://docs.basedpyright.com/v1.20.0/configuration/config-files/
.. [2] https://pypi.org/project/types-lxml/
.. [3] https://typing-extensions.readthedocs.io/en/latest/#
.. [4] https://mise.jdx.dev/configuration.html#tool-versions

Signed-off-by: Markus Heiser &lt;markus.heiser@darmarit.de&gt;
Format: reST
</content>
</entry>
<entry>
<title>[mod] pylint all files with one profile / drop PYLINT_SEARXNG_DISABLE_OPTION</title>
<updated>2024-03-11T13:55:38Z</updated>
<author>
<name>Markus Heiser</name>
<email>markus.heiser@darmarit.de</email>
</author>
<published>2024-03-11T13:06:26Z</published>
<link rel='alternate' type='text/html' href='https://git.ikboikov.net/searxng/commit/?id=542f7d0d7bd1a12e1884ba4a1508b40e2514d472'/>
<id>urn:sha1:542f7d0d7bd1a12e1884ba4a1508b40e2514d472</id>
<content type='text'>
In the past, some files were tested with the standard profile, others with a
profile in which most of the messages were switched off ... some files were not
checked at all.

- ``PYLINT_SEARXNG_DISABLE_OPTION`` has been abolished
- the distinction ``# lint: pylint`` is no longer necessary
- the pylint tasks have been reduced from three to two

  1. ./searx/engines -&gt; lint engines with additional builtins
  2. ./searx ./searxng_extra ./tests -&gt; lint all other python files

Signed-off-by: Markus Heiser &lt;markus.heiser@darmarit.de&gt;
</content>
</entry>
<entry>
<title>[mod] external bang: go to main instead of search page when query is empty</title>
<updated>2023-04-25T13:02:34Z</updated>
<author>
<name>Jakub Łukasiewicz</name>
<email>dev@joren.ga</email>
</author>
<published>2023-04-24T17:11:59Z</published>
<link rel='alternate' type='text/html' href='https://git.ikboikov.net/searxng/commit/?id=7da47edd93a21175bb71377ef060e5d46d4fe832'/>
<id>urn:sha1:7da47edd93a21175bb71377ef060e5d46d4fe832</id>
<content type='text'>
Closes: #2368
</content>
</entry>
<entry>
<title>External bang: bug fix: URL encode the query so "!!g 1+1" works as intended</title>
<updated>2022-08-27T07:10:26Z</updated>
<author>
<name>Alexandre FLAMENT</name>
<email>alexandre.flament@hesge.ch</email>
</author>
<published>2022-08-26T20:34:25Z</published>
<link rel='alternate' type='text/html' href='https://git.ikboikov.net/searxng/commit/?id=2af1a6f5473a804dfa3258cc6384ec4c58c89b74'/>
<id>urn:sha1:2af1a6f5473a804dfa3258cc6384ec4c58c89b74</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[fix] external bangs: don't overwrite Bangs in data trie</title>
<updated>2022-01-12T18:37:13Z</updated>
<author>
<name>Markus Heiser</name>
<email>markus.heiser@darmarit.de</email>
</author>
<published>2022-01-12T17:08:48Z</published>
<link rel='alternate' type='text/html' href='https://git.ikboikov.net/searxng/commit/?id=7cdd31440e621937550072c3f73e68f644554842'/>
<id>urn:sha1:7cdd31440e621937550072c3f73e68f644554842</id>
<content type='text'>
Bangs with a `*` suffix (e.g. `!!d*`) overwrite Bangs with the same
prefix (e.g. `!!d`) [1].  This can be avoid when a non printable character is
used to tag a LEAF_KEY.

[1] https://github.com/searxng/searxng/pull/740#issuecomment-1010411888

Signed-off-by: Markus Heiser &lt;markus.heiser@darmarit.de&gt;
</content>
</entry>
<entry>
<title>[fix] get_bang_url: handle ambiguous !!bangs without error</title>
<updated>2022-01-11T08:58:10Z</updated>
<author>
<name>Markus Heiser</name>
<email>markus.heiser@darmarit.de</email>
</author>
<published>2022-01-11T07:55:10Z</published>
<link rel='alternate' type='text/html' href='https://git.ikboikov.net/searxng/commit/?id=6d7e86eece852a525ac2ec3c191aca57712ac1a7'/>
<id>urn:sha1:6d7e86eece852a525ac2ec3c191aca57712ac1a7</id>
<content type='text'>
An ambiguous bang like `!!d` raises an exception in function get_bang_url().  A
bang is only unique when the bang_definition from get_bang_definition_and_ac() is
a string / for a ambiguous bang the returned bang_definition is a dictionary.

Reported-by: user prg at #searxng:matrix.org on 2022/01/11
Signed-off-by: Markus Heiser &lt;markus.heiser@darmarit.de&gt;
</content>
</entry>
<entry>
<title>[pylint] fix global-variable-not-assigned issues</title>
<updated>2021-09-17T08:14:27Z</updated>
<author>
<name>Markus Heiser</name>
<email>markus.heiser@darmarit.de</email>
</author>
<published>2021-09-17T08:14:27Z</published>
<link rel='alternate' type='text/html' href='https://git.ikboikov.net/searxng/commit/?id=443bf35e09ce27d07c18c01d455886e85ead53f9'/>
<id>urn:sha1:443bf35e09ce27d07c18c01d455886e85ead53f9</id>
<content type='text'>
If there is no write access, there is no need for global.  Remove global
statement if there is no assignment.

global-variable-not-assigned:
  Using global for names but no assignment is done Used when a variable is
  defined through the "global" statement but no assignment to this variable is
  done.

In Pylint 2.11 the global-variable-not-assigned checker now catches global
variables that are never reassigned in a local scope and catches (reassigned)
functions [1][2]

[1] https://pylint.pycqa.org/en/latest/whatsnew/2.11.html
[2] https://github.com/PyCQA/pylint/issues/1375

Signed-off-by: Markus Heiser &lt;markus.heiser@darmarit.de&gt;
</content>
</entry>
<entry>
<title>[mod] add utils/fetch_external_bangs.py</title>
<updated>2021-02-24T17:48:36Z</updated>
<author>
<name>Alexandre Flament</name>
<email>alex@al-f.net</email>
</author>
<published>2021-02-22T17:03:24Z</published>
<link rel='alternate' type='text/html' href='https://git.ikboikov.net/searxng/commit/?id=7c1847d5f2f78392d4e7f6b4892d732f6520b3dc'/>
<id>urn:sha1:7c1847d5f2f78392d4e7f6b4892d732f6520b3dc</id>
<content type='text'>
Based on duckduckgo bangs
Store bangs on a trie to allow autocomplete (not in this commit)
</content>
</entry>
<entry>
<title>[mod] Add searx.data module</title>
<updated>2020-10-07T08:29:34Z</updated>
<author>
<name>Alexandre Flament</name>
<email>alex@al-f.net</email>
</author>
<published>2020-10-05T11:50:33Z</published>
<link rel='alternate' type='text/html' href='https://git.ikboikov.net/searxng/commit/?id=a9dc54bebc943000252975ef25ddcb51681fc284'/>
<id>urn:sha1:a9dc54bebc943000252975ef25ddcb51681fc284</id>
<content type='text'>
Instead of loading the data/*.json in different location,
load these files in the new searx.data module.
</content>
</entry>
<entry>
<title>Drop Python 2 (4/n): SearchQuery.query is a str instead of bytes</title>
<updated>2020-09-10T08:49:42Z</updated>
<author>
<name>Dalf</name>
<email>alex@al-f.net</email>
</author>
<published>2020-08-11T14:25:03Z</published>
<link rel='alternate' type='text/html' href='https://git.ikboikov.net/searxng/commit/?id=c225db45c8a4ab466bff049216f7e0189dc1b067'/>
<id>urn:sha1:c225db45c8a4ab466bff049216f7e0189dc1b067</id>
<content type='text'>
</content>
</entry>
</feed>
