This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<pid="module-searx.engines.brave">Brave supports the categories listed in <codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">brave_category</span></code> (General,
news, videos, images). The support of <aclass="reference internal"href="#searx.engines.brave.paging"title="searx.engines.brave.paging"><codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">paging</span></code></a> and <aclass="reference internal"href="#searx.engines.brave.time_range_support"title="searx.engines.brave.time_range_support"><codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">time</span><spanclass="pre">range</span></code></a> is limited (see remarks).</p>
<spanid="id1"></span><h2><aclass="toc-backref"href="#id3"role="doc-backlink">Brave regions</a><aclass="headerlink"href="#brave-regions"title="Link to this heading">ΒΆ</a></h2>
<p>Brave uses two-digit tags for the regions like <codeclass="docutils literal notranslate"><spanclass="pre">ca</span></code> while SearXNG deals with
locales. To get a mapping, all <em>officiat de-facto</em> languages of the Brave
region are mapped to regions in SearXNG (see <aclass="reference external"href="https://babel.readthedocs.io/en/latest/api/languages.html#babel.languages.get_official_languages"title="(in Babel v2.2)"><codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">babel</span></code></a>):</p>
<p>The language (aka region) support of Braveβs index is limited to very basic
languages. The search results for languages like Chinese or Arabic are of
low quality.</p>
</div>
</section>
<sectionid="brave-goggles">
<spanid="brave-googles"></span><h2><aclass="toc-backref"href="#id4"role="doc-backlink">Brave Goggles</a><aclass="headerlink"href="#brave-goggles"title="Link to this heading">ΒΆ</a></h2>
<p>Goggles allow you to choose, alter, or extend the ranking of Brave Search
results (<aclass="reference external"href="https://brave.com/static-assets/files/goggles.pdf">Goggles Whitepaper</a>). Goggles are openly developed by the community
of Brave Search users.</p>
<p>Select from the <aclass="reference external"href="https://search.brave.com/goggles/discover">list of Goggles</a> people have published, or create your own
<spanid="id2"></span><h2><aclass="toc-backref"href="#id5"role="doc-backlink">Brave languages</a><aclass="headerlink"href="#brave-languages"title="Link to this heading">ΒΆ</a></h2>
<p>Braveβs language support is limited to the UI (menus, area local notations,
etc). Braveβs index only seems to support a locale, but it does not seem to
support any languages in its index. The choice of available languages is very
small (and its not clear to me where the difference in UI is when switching
from en-us to en-ca or en-gb).</p>
<p>In the <aclass="reference internal"href="../enginelib.html#searx.enginelib.traits.EngineTraits"title="searx.enginelib.traits.EngineTraits"><codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">EngineTraits</span><spanclass="pre">object</span></code></a> the
UI languages are stored in a custom field named <codeclass="docutils literal notranslate"><spanclass="pre">ui_lang</span></code>:</p>
<h2><aclass="toc-backref"href="#id6"role="doc-backlink">Implementations</a><aclass="headerlink"href="#implementations"title="Link to this heading">ΒΆ</a></h2>
<spanclass="sig-prename descclassname"><spanclass="pre">searx.engines.brave.</span></span><spanclass="sig-name descname"><spanclass="pre">Goggles</span></span><aclass="headerlink"href="#searx.engines.brave.Goggles"title="Link to this definition">ΒΆ</a></dt>
<dd><p>Brave supports common web-search, videos, images, news, and goggles search.</p>
<ulclass="simple">
<li><p><codeclass="docutils literal notranslate"><spanclass="pre">search</span></code>: Common WEB search</p></li>
<li><p><codeclass="docutils literal notranslate"><spanclass="pre">videos</span></code>: search for videos</p></li>
<li><p><codeclass="docutils literal notranslate"><spanclass="pre">images</span></code>: search for images</p></li>
<li><p><codeclass="docutils literal notranslate"><spanclass="pre">news</span></code>: search for news</p></li>
<li><p><codeclass="docutils literal notranslate"><spanclass="pre">goggles</span></code>: Common WEB search with custom rules</p></li>
<spanclass="sig-prename descclassname"><spanclass="pre">searx.engines.brave.</span></span><spanclass="sig-name descname"><spanclass="pre">brave_spellcheck</span></span><emclass="property"><spanclass="w"></span><spanclass="p"><spanclass="pre">=</span></span><spanclass="w"></span><spanclass="pre">False</span></em><aclass="headerlink"href="#searx.engines.brave.brave_spellcheck"title="Link to this definition">ΒΆ</a></dt>
<dd><p>Brave supports some kind of spell checking. When activated, Brave tries to
fix typos, e.g. it searches for <codeclass="docutils literal notranslate"><spanclass="pre">food</span></code> when the user queries for <codeclass="docutils literal notranslate"><spanclass="pre">fooh</span></code>. In
the UI of Brave the user gets warned about this, since we can not warn the user
in SearXNG, the spellchecking is disabled by default.</p>
<spanclass="sig-prename descclassname"><spanclass="pre">searx.engines.brave.</span></span><spanclass="sig-name descname"><spanclass="pre">paging</span></span><emclass="property"><spanclass="w"></span><spanclass="p"><spanclass="pre">=</span></span><spanclass="w"></span><spanclass="pre">False</span></em><aclass="headerlink"href="#searx.engines.brave.paging"title="Link to this definition">ΒΆ</a></dt>
<dd><p>Brave only supports paging in <codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">brave_category</span></code><codeclass="docutils literal notranslate"><spanclass="pre">search</span></code> (UI
<spanclass="sig-prename descclassname"><spanclass="pre">searx.engines.brave.</span></span><spanclass="sig-name descname"><spanclass="pre">max_page</span></span><emclass="property"><spanclass="w"></span><spanclass="p"><spanclass="pre">=</span></span><spanclass="w"></span><spanclass="pre">10</span></em><aclass="headerlink"href="#searx.engines.brave.max_page"title="Link to this definition">ΒΆ</a></dt>
<dd><p>Tested 9 pages maximum (<codeclass="docutils literal notranslate"><spanclass="pre">&offset=8</span></code>), to be save max is set to 10. Trying
to do more wonβt return any result and you will most likely be flagged as a bot.</p>
<spanclass="sig-prename descclassname"><spanclass="pre">searx.engines.brave.</span></span><spanclass="sig-name descname"><spanclass="pre">time_range_support</span></span><emclass="property"><spanclass="w"></span><spanclass="p"><spanclass="pre">=</span></span><spanclass="w"></span><spanclass="pre">False</span></em><aclass="headerlink"href="#searx.engines.brave.time_range_support"title="Link to this definition">ΒΆ</a></dt>
<dd><p>Brave only supports time-range in <codeclass="xref py py-obj docutils literal notranslate"><spanclass="pre">brave_category</span></code><codeclass="docutils literal notranslate"><spanclass="pre">search</span></code> (UI
<spanclass="sig-prename descclassname"><spanclass="pre">searx.engines.brave.</span></span><spanclass="sig-name descname"><spanclass="pre">fetch_traits</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">engine_traits</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="w"></span><spanclass="n"><aclass="reference internal"href="../enginelib.html#searx.enginelib.traits.EngineTraits"title="searx.enginelib.traits.EngineTraits"><spanclass="pre">EngineTraits</span></a></span></em><spanclass="sig-paren">)</span><aclass="reference internal"href="../../../_modules/searx/engines/brave.html#fetch_traits"><spanclass="viewcode-link"><spanclass="pre">[source]</span></span></a><aclass="headerlink"href="#searx.engines.brave.fetch_traits"title="Link to this definition">ΒΆ</a></dt>
<dd><p>Fetch <aclass="reference internal"href="#brave-languages"><spanclass="std std-ref">languages</span></a> and <aclass="reference internal"href="#brave-regions"><spanclass="std std-ref">regions</span></a> from Brave.</p>