index.html 52 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6. <meta name="generator" content="Docutils 0.20.1: https://docutils.sourceforge.io/" />
  7. <title>Searx-Qt documentation</title>
  8. <style type="text/css">
  9. /*
  10. :Author: CYBERDEViL
  11. :Contact: cyberdevilnl at protonmail d0t com
  12. :Copyright: This stylesheet has been placed in the public domain.
  13. Stylesheet for use with Docutils.
  14. https://docutils.sourceforge.io/docs/howto/html-stylesheets.html
  15. */
  16. /*@import url(html4css1.css);*/
  17. body {
  18. max-width: 800px;
  19. background-color: #161616;
  20. color: #bcb;
  21. }
  22. a {
  23. color: #11aa11;
  24. }
  25. table {
  26. border: none;
  27. background-color: #191919;
  28. }
  29. tr {
  30. border: none;
  31. }
  32. th {
  33. border: none;
  34. text-align: left;
  35. }
  36. td {
  37. border: none;
  38. border-bottom: 1px solid #114411;
  39. text-align: left;
  40. }
  41. /*indent sections a little*/
  42. .section {
  43. margin-left: 12px;
  44. }
  45. /*indent section contents a little*/
  46. p, pre, table {
  47. margin-left: 12px;
  48. }
  49. pre {
  50. font-family: monospace;
  51. background-color: #222;
  52. border: 1px solid #111;
  53. padding: 5px;
  54. }
  55. h1 {
  56. background-color: #222;
  57. padding: 6px;
  58. }
  59. h1 a {
  60. color: #fff;
  61. text-decoration: none;
  62. }
  63. h1 a:hover {
  64. text-decoration: underline;
  65. }
  66. img.header {
  67. max-width: 800px;
  68. height: auto;
  69. width: 100%;
  70. }
  71. img.align-right {
  72. clear: right;
  73. float: right;
  74. margin-left: 1em
  75. }
  76. </style>
  77. </head>
  78. <body>
  79. <div class="document">
  80. <div class="section" id="searx-qt">
  81. <h1>Searx-Qt</h1>
  82. <div class="section" id="desktop-client-application-for-searx-searxng-searx-space">
  83. <h2>Desktop client application for Searx/SearXNG/searx-space</h2>
  84. <p>This is documentation for Searx-Qt version 0.5.0-alpha1</p>
  85. <img alt="Searx-Qt v0.4 screenshot." class="header" src="images/screenshot_0_4a1.png" />
  86. </div>
  87. </div>
  88. <div class="section" id="index-1">
  89. <span id="index"></span><h1>Index</h1>
  90. <ul class="simple">
  91. <li><a class="reference internal" href="#index">Index</a></li>
  92. <li><a class="reference internal" href="#about">About</a></li>
  93. <li><ul class="first">
  94. <li><a class="reference internal" href="#about-summary">Summary</a></li>
  95. </ul>
  96. </li>
  97. <li><ul class="first">
  98. <li><a class="reference internal" href="#about-source">Source</a></li>
  99. </ul>
  100. </li>
  101. <li><ul class="first">
  102. <li><a class="reference internal" href="#about-license">License</a></li>
  103. </ul>
  104. </li>
  105. <li><ul class="first">
  106. <li><a class="reference internal" href="#about-dependencies">Dependencies</a></li>
  107. </ul>
  108. </li>
  109. <li><ul class="first">
  110. <li><a class="reference internal" href="#about-translations">Translations</a></li>
  111. </ul>
  112. </li>
  113. <li><ul class="first">
  114. <li><a class="reference internal" href="#about-contact">Contact</a></li>
  115. </ul>
  116. </li>
  117. <li><a class="reference internal" href="#getting-started">Getting started</a></li>
  118. <li><ul class="first">
  119. <li><a class="reference internal" href="#getting-started-install-dependencies">Install dependencies</a></li>
  120. </ul>
  121. </li>
  122. <li><ul class="first">
  123. <li><a class="reference internal" href="#getting-started-installation">Installation</a></li>
  124. </ul>
  125. </li>
  126. <li><a class="reference internal" href="#usage">Usage</a></li>
  127. <li><ul class="first">
  128. <li><a class="reference internal" href="#usage-profiles">Profiles</a></li>
  129. </ul>
  130. </li>
  131. <li><ul class="first">
  132. <li><a class="reference internal" href="#usage-settings">Settings</a></li>
  133. </ul>
  134. </li>
  135. <li><ul class="first">
  136. <li><ul class="first">
  137. <li><a class="reference internal" href="#usage-settings-general">General</a></li>
  138. </ul>
  139. </li>
  140. </ul>
  141. </li>
  142. <li><ul class="first">
  143. <li><ul class="first">
  144. <li><a class="reference internal" href="#usage-settings-connection">Connection</a></li>
  145. </ul>
  146. </li>
  147. </ul>
  148. </li>
  149. <li><ul class="first">
  150. <li><ul class="first">
  151. <li><a class="reference internal" href="#usage-settings-searxng">SearXNG</a></li>
  152. </ul>
  153. </li>
  154. </ul>
  155. </li>
  156. <li><ul class="first">
  157. <li><ul class="first">
  158. <li><a class="reference internal" href="#usage-settings-searxspace">Searx-Space</a></li>
  159. </ul>
  160. </li>
  161. </ul>
  162. </li>
  163. <li><ul class="first">
  164. <li><ul class="first">
  165. <li><a class="reference internal" href="#usage-settings-guard">Guard</a></li>
  166. </ul>
  167. </li>
  168. </ul>
  169. </li>
  170. <li><ul class="first">
  171. <li><a class="reference internal" href="#usage-instances">Instances</a></li>
  172. </ul>
  173. </li>
  174. <li><ul class="first">
  175. <li><a class="reference internal" href="#usage-search">Search</a></li>
  176. </ul>
  177. </li>
  178. <li><a class="reference internal" href="#troubleshooting">Troubleshooting</a></li>
  179. <li><ul class="first">
  180. <li><a class="reference internal" href="#troubleshooting-wontstart">Searx-Qt won't start</a></li>
  181. </ul>
  182. </li>
  183. <li><a class="reference internal" href="#development">Development</a></li>
  184. <li><ul class="first">
  185. <li><a class="reference internal" href="#development-themes">Themes</a></li>
  186. </ul>
  187. </li>
  188. <li><ul class="first">
  189. <li><a class="reference internal" href="#development-translations">Translations</a></li>
  190. </ul>
  191. </li>
  192. </ul>
  193. </div>
  194. <div class="section" id="about-1">
  195. <span id="about"></span><h1><a class="reference internal" href="#about">About</a></h1>
  196. <div class="section" id="summary">
  197. <span id="about-summary"></span><h2><a class="reference internal" href="#about-summary">Summary</a></h2>
  198. <p>Search with <tt class="docutils literal">Searx</tt>/<tt class="docutils literal">SearXNG</tt> instances without the need for a complex
  199. web-browser.</p>
  200. <p>Searx-Qt is a desktop application that lets you search on
  201. public <tt class="docutils literal">SearXNG</tt> instances listed on <tt class="docutils literal"><span class="pre">https://searx.space</span></tt> (or you
  202. can add <tt class="docutils literal">Searx</tt> or <tt class="docutils literal">SearXNG</tt> instance urls manually).</p>
  203. <p>The aim of the project is to preform search operations on <tt class="docutils literal">Searx</tt>/
  204. <tt class="docutils literal">SearXNG</tt> instances with the use of their API and without the need for a
  205. complex web-browser. <tt class="docutils literal"><span class="pre">Searx-Qt</span></tt> will do the bare minimum of what is
  206. required to search, no cookies and no javascript. Just render a
  207. <tt class="docutils literal">Searx</tt>/<tt class="docutils literal">SearXNG</tt> API request to something usefull.</p>
  208. <p>Unfortunately most public <tt class="docutils literal">SearXNG</tt> instances actively block requests to
  209. their <tt class="docutils literal"><span class="pre">JSON-API</span></tt>. <em>But don't worry!</em> Thats why there is a option in the
  210. <a class="reference internal" href="#usage-settings-searxng">SearXNG settings</a> (which is on by default) to
  211. parse <tt class="docutils literal">HTML</tt> instead, and still no javascript and no cookies.</p>
  212. <p>Since version <tt class="docutils literal">0.2</tt> it is also possible to manage your own (private?)
  213. instances with the use of a 'user' profile.</p>
  214. <div class="section" id="searx">
  215. <h3>Searx</h3>
  216. <p>The <tt class="docutils literal">Searx</tt> project is no longer maintained but for now <tt class="docutils literal"><span class="pre">Searx-Qt</span></tt>
  217. will still support it.</p>
  218. <ul class="simple">
  219. <li>API Docs: <a class="reference external" href="https://searx.github.io/searx/dev/search_api.html">https://searx.github.io/searx/dev/search_api.html</a></li>
  220. <li>Source: <a class="reference external" href="https://github.com/searx/searx">https://github.com/searx/searx</a></li>
  221. <li>License: AGPL3</li>
  222. <li>Status: Inactive</li>
  223. </ul>
  224. </div>
  225. <div class="section" id="searxng">
  226. <h3>SearXNG</h3>
  227. <ul class="simple">
  228. <li>API Docs: <a class="reference external" href="https://docs.searxng.org/dev/search_api.html">https://docs.searxng.org/dev/search_api.html</a></li>
  229. <li>Source: <a class="reference external" href="https://github.com/searxng/searxng">https://github.com/searxng/searxng</a></li>
  230. <li>License: AGPL3</li>
  231. <li>Status: Active</li>
  232. </ul>
  233. </div>
  234. <div class="section" id="searx-space">
  235. <h3>searx-space</h3>
  236. <p>The <tt class="docutils literal"><span class="pre">searx-space</span></tt> project lists public <tt class="docutils literal">SearXNG</tt> instances with
  237. statistics. The official instance is running at <tt class="docutils literal"><span class="pre">https://searx.space/</span></tt>.
  238. This is where <tt class="docutils literal"><span class="pre">Searx-Qt</span></tt> will request a list with instances when the update
  239. button is pressed by default (the <tt class="docutils literal"><span class="pre">searx-space</span></tt> url can be changed in the
  240. settings).</p>
  241. <ul class="simple">
  242. <li>Source: <a class="reference external" href="https://github.com/searxng/searx-space">https://github.com/searxng/searx-space</a></li>
  243. <li>License: AGPL3</li>
  244. </ul>
  245. </div>
  246. </div>
  247. <div class="section" id="source">
  248. <span id="about-source"></span><h2><a class="reference internal" href="#about-source">Source</a></h2>
  249. <p><a class="reference external" href="https://notabug.org/CYBERDEViL/searx-qt">https://notabug.org/CYBERDEViL/searx-qt</a></p>
  250. </div>
  251. <div class="section" id="license">
  252. <span id="about-license"></span><h2><a class="reference internal" href="#about-license">License</a></h2>
  253. <ul class="simple">
  254. <li>GPL3 <a class="reference external" href="https://www.gnu.org/licenses/gpl-3.0.en.html">https://www.gnu.org/licenses/gpl-3.0.en.html</a></li>
  255. </ul>
  256. </div>
  257. <div class="section" id="dependencies">
  258. <span id="about-dependencies"></span><h2><a class="reference internal" href="#about-dependencies">Dependencies</a></h2>
  259. <table border="1" class="docutils">
  260. <colgroup>
  261. <col width="16%" />
  262. <col width="10%" />
  263. <col width="10%" />
  264. <col width="63%" />
  265. </colgroup>
  266. <thead valign="bottom">
  267. <tr><th class="head">name</th>
  268. <th class="head">version</th>
  269. <th class="head">license</th>
  270. <th class="head">URL</th>
  271. </tr>
  272. </thead>
  273. <tbody valign="top">
  274. <tr><td>python</td>
  275. <td>3</td>
  276. <td>PSFL</td>
  277. <td><a class="reference external" href="https://docs.python.org/3/license.html">https://docs.python.org/3/license.html</a></td>
  278. </tr>
  279. <tr><td>requests</td>
  280. <td><ul class="first last simple">
  281. <li></li>
  282. </ul>
  283. </td>
  284. <td>Apache 2</td>
  285. <td><a class="reference external" href="http://docs.python-requests.org/en/master/">http://docs.python-requests.org/en/master/</a></td>
  286. </tr>
  287. <tr><td>jsonschema</td>
  288. <td>&gt;= 4.10</td>
  289. <td>MIT</td>
  290. <td><a class="reference external" href="https://github.com/python-jsonschema/jsonschema">https://github.com/python-jsonschema/jsonschema</a></td>
  291. </tr>
  292. <tr><td>PyQt5</td>
  293. <td><ul class="first last simple">
  294. <li></li>
  295. </ul>
  296. </td>
  297. <td>GPL3</td>
  298. <td><a class="reference external" href="https://www.riverbankcomputing.com/software/pyqt/intro">https://www.riverbankcomputing.com/software/pyqt/intro</a></td>
  299. </tr>
  300. <tr><td>urllib3</td>
  301. <td><ul class="first last simple">
  302. <li></li>
  303. </ul>
  304. </td>
  305. <td>MIT</td>
  306. <td><a class="reference external" href="https://urllib3.readthedocs.io/">https://urllib3.readthedocs.io/</a></td>
  307. </tr>
  308. <tr><td>beautifulsoup4</td>
  309. <td><ul class="first last simple">
  310. <li></li>
  311. </ul>
  312. </td>
  313. <td>MIT</td>
  314. <td><a class="reference external" href="https://www.crummy.com/software/BeautifulSoup/">https://www.crummy.com/software/BeautifulSoup/</a></td>
  315. </tr>
  316. </tbody>
  317. </table>
  318. <p><strong>Optional for socks proxy support</strong>:</p>
  319. <blockquote>
  320. <table border="1" class="docutils">
  321. <colgroup>
  322. <col width="14%" />
  323. <col width="15%" />
  324. <col width="15%" />
  325. <col width="56%" />
  326. </colgroup>
  327. <thead valign="bottom">
  328. <tr><th class="head">name</th>
  329. <th class="head">version</th>
  330. <th class="head">license</th>
  331. <th class="head">URL</th>
  332. </tr>
  333. </thead>
  334. <tbody valign="top">
  335. <tr><td>pysocks</td>
  336. <td><ul class="first last simple">
  337. <li></li>
  338. </ul>
  339. </td>
  340. <td>BSD</td>
  341. <td><a class="reference external" href="https://github.com/Anorov/PySocks">https://github.com/Anorov/PySocks</a></td>
  342. </tr>
  343. </tbody>
  344. </table>
  345. </blockquote>
  346. <p><strong>Building</strong>:</p>
  347. <blockquote>
  348. <table border="1" class="docutils">
  349. <colgroup>
  350. <col width="11%" />
  351. <col width="11%" />
  352. <col width="11%" />
  353. <col width="67%" />
  354. </colgroup>
  355. <thead valign="bottom">
  356. <tr><th class="head">name</th>
  357. <th class="head">version</th>
  358. <th class="head">license</th>
  359. <th class="head">URL</th>
  360. </tr>
  361. </thead>
  362. <tbody valign="top">
  363. <tr><td>gettext</td>
  364. <td><ul class="first last simple">
  365. <li></li>
  366. </ul>
  367. </td>
  368. <td>GPL</td>
  369. <td><a class="reference external" href="https://www.gnu.org/software/gettext/">https://www.gnu.org/software/gettext/</a></td>
  370. </tr>
  371. <tr><td>PyQt5-dev</td>
  372. <td>Qt5</td>
  373. <td>GPL3</td>
  374. <td><a class="reference external" href="https://www.riverbankcomputing.com/software/pyqt/intro">https://www.riverbankcomputing.com/software/pyqt/intro</a></td>
  375. </tr>
  376. </tbody>
  377. </table>
  378. </blockquote>
  379. </div>
  380. <div class="section" id="translations">
  381. <span id="about-translations"></span><h2><a class="reference internal" href="#about-translations">Translations</a></h2>
  382. <p>The default language is English.</p>
  383. <p>Since version <tt class="docutils literal">0.2</tt> Searx-Qt is able (application-wise, not search results)
  384. to be fully translated with the use of gettext and <cite>.po .pot</cite> files. However
  385. the only translation available currently is for the Dutch language. If you
  386. like to translate Searx-Qt in your language then you can find a example of how
  387. to do that in the <a class="reference internal" href="#development">development section</a>. Please consider
  388. opening a PR on <tt class="docutils literal"><span class="pre">https://notabug.org/CYBERDEViL/searx-qt</span></tt> after your
  389. translation has finished.</p>
  390. </div>
  391. <div class="section" id="contact">
  392. <span id="about-contact"></span><h2><a class="reference internal" href="#about-contact">Contact</a></h2>
  393. <p>Please open an issue on <tt class="docutils literal"><span class="pre">https://notabug.org/cyberdevil/searx-qt</span></tt>.</p>
  394. <p>You may also want to see if anyone is online on IRC at <tt class="docutils literal"><span class="pre">#searx-qt</span></tt> at
  395. <tt class="docutils literal">irc.libera.chat:6697</tt>.</p>
  396. </div>
  397. </div>
  398. <div class="section" id="getting-started-1">
  399. <span id="getting-started"></span><h1><a class="reference internal" href="#getting-started">Getting started</a></h1>
  400. <div class="section" id="install-dependencies">
  401. <span id="getting-started-install-dependencies"></span><h2><a class="reference internal" href="#getting-started-install-dependencies">Install dependencies</a></h2>
  402. <p><strong>Note:</strong> <tt class="docutils literal"><span class="pre">python-requests</span></tt> is also dependent on <tt class="docutils literal"><span class="pre">python-urllib3</span></tt> ;
  403. so <tt class="docutils literal"><span class="pre">python-urllib3</span></tt> will be installed with <tt class="docutils literal"><span class="pre">python-requests</span></tt>
  404. (No need to do a explicit install).</p>
  405. <div class="section" id="debian-ubuntu-based">
  406. <h3>Debian / Ubuntu based</h3>
  407. <p>Install required dependencies:</p>
  408. <pre class="literal-block">
  409. # apt update
  410. # apt upgrade
  411. # apt install python3 python3-requests python3-pyqt5 gettext \
  412. pyqt5-dev-tools python3-jsonschema python3-bs4
  413. </pre>
  414. <p><strong>Optional</strong> for socks proxy support:</p>
  415. <pre class="literal-block">
  416. # apt install python3-socks
  417. </pre>
  418. </div>
  419. <div class="section" id="arch-based">
  420. <h3>Arch based</h3>
  421. <p>Install required dependencies:</p>
  422. <pre class="literal-block">
  423. # pacman -Syu python python-requests python-jsonschema python-pyqt5 \
  424. python-beautifulsoup4 gettext qt5-tools
  425. </pre>
  426. <p><strong>Optional</strong> for socks proxy support:</p>
  427. <pre class="literal-block">
  428. # pacman -S python-pysocks
  429. </pre>
  430. </div>
  431. </div>
  432. <div class="section" id="installation">
  433. <span id="getting-started-installation"></span><h2><a class="reference internal" href="#getting-started-installation">Installation</a></h2>
  434. <p>It is always recommended to let the package-manager of your system
  435. do the installing of software, so your package-manager will keep
  436. track of files installed. Only use <tt class="docutils literal">setup.py</tt> directly if you
  437. know what you are doing.</p>
  438. <p>Since Searx-Qt isn't available in any GNU/Linux distribution (yet?); the
  439. best option is to create a package for your distribution yourself from the
  440. latest release. This will also mean that you have to manually update
  441. Searx-Qt if there is a new version available.</p>
  442. <p><strong>Note:</strong> <a class="reference external" href="https://notabug.org/CYBERDEViL/searx-qt/releases">https://notabug.org/CYBERDEViL/searx-qt/releases</a></p>
  443. <p><strong>Note:</strong> noticed the <tt class="docutils literal">#</tt> or <tt class="docutils literal">$</tt> before every command? When there is a
  444. <tt class="docutils literal">$</tt> before the command, it should be run as a regular user. <tt class="docutils literal">#</tt> as root.</p>
  445. <div class="section" id="debian-based">
  446. <h3>Debian based</h3>
  447. <p>The steps below describes how to get a specific version of <tt class="docutils literal"><span class="pre">Searx-Qt</span></tt>; then
  448. package and install it. This method is available from version
  449. <tt class="docutils literal"><span class="pre">0.1-beta2</span></tt> and up.</p>
  450. <ol class="arabic">
  451. <li><p class="first">Make sure you have <tt class="docutils literal"><span class="pre">python3-stdeb</span></tt> and <tt class="docutils literal">git</tt> installed:</p>
  452. <pre class="literal-block">
  453. # apt install python3-stdeb git
  454. </pre>
  455. </li>
  456. <li><p class="first">Creating a working directory and <tt class="docutils literal">cd</tt> in to it, you may
  457. change this to your own preference:</p>
  458. <pre class="literal-block">
  459. $ mkdir ~/git
  460. $ cd ~/git
  461. </pre>
  462. </li>
  463. <li><p class="first">Cloning the repository and <tt class="docutils literal">cd</tt> in to it:</p>
  464. <pre class="literal-block">
  465. $ git clone &quot;https://notabug.org/CYBERDEViL/searx-qt.git&quot; &quot;searx-qt&quot;
  466. $ cd searx-qt
  467. </pre>
  468. </li>
  469. <li><p class="first">Checkout a specific version:</p>
  470. </li>
  471. </ol>
  472. <blockquote>
  473. <p><strong>Note:</strong> get a list with available tags (versions) with the
  474. <tt class="docutils literal">git tag</tt> command.</p>
  475. <p>Below is a example to checkout version <tt class="docutils literal"><span class="pre">0.5-alpha1</span></tt>:</p>
  476. <pre class="literal-block">
  477. $ git checkout 0.5-alpha1
  478. </pre>
  479. </blockquote>
  480. <ol class="arabic" start="5">
  481. <li><p class="first">Create .deb:</p>
  482. <pre class="literal-block">
  483. $ ./utils/gen_deb.sh
  484. </pre>
  485. </li>
  486. <li><p class="first">Install the created package:</p>
  487. <pre class="literal-block">
  488. # dpkg -i ./deb_dist/python3-searx-qt_0.5-alpha1-1_all.deb
  489. </pre>
  490. </li>
  491. </ol>
  492. </div>
  493. <div class="section" id="arch-based-1">
  494. <h3>Arch based</h3>
  495. <p>For Arch based distributions there is a package available in the AUR;
  496. <a class="reference external" href="https://aur.archlinux.org/packages/searx-qt/">https://aur.archlinux.org/packages/searx-qt/</a></p>
  497. <ol class="arabic">
  498. <li><p class="first">Make sure you have <tt class="docutils literal">git</tt> installed:</p>
  499. <pre class="literal-block">
  500. # pacman -S git
  501. </pre>
  502. </li>
  503. <li><p class="first">Creating a working directory and <tt class="docutils literal">cd</tt> in to it, you may change this
  504. to your own preference:</p>
  505. <pre class="literal-block">
  506. $ mkdir ~/pkg
  507. $ cd ~/pkg
  508. </pre>
  509. </li>
  510. <li><p class="first">Getting the <tt class="docutils literal">PKGBUILD</tt> from Arch AUR:</p>
  511. <pre class="literal-block">
  512. $ git clone https://aur.archlinux.org/searx-qt.git
  513. $ cd searx-qt
  514. </pre>
  515. </li>
  516. <li><p class="first">Build and install Searx-Qt package:</p>
  517. <pre class="literal-block">
  518. $ makepkg -si
  519. </pre>
  520. </li>
  521. </ol>
  522. </div>
  523. </div>
  524. </div>
  525. <div class="section" id="usage-1">
  526. <span id="usage"></span><h1><a class="reference internal" href="#usage">Usage</a></h1>
  527. <div class="section" id="profiles">
  528. <span id="usage-profiles"></span><h2><a class="reference internal" href="#usage-profiles">Profiles</a></h2>
  529. <img alt="Profiles window" class="align-right" src="images/profiles_window.png" />
  530. <p>Profiles are useful when you want to have different settings and/or data without
  531. to having to set it manually every-time. For example you can create a profile
  532. named <cite>Tor</cite> which has different proxy and stats2 settings then you normal
  533. profile.</p>
  534. <dl class="docutils">
  535. <dt>There are two types of profiles:</dt>
  536. <dd><ul class="first last simple">
  537. <li><cite>Stats2</cite> profile</li>
  538. <li><cite>User</cite> profile</li>
  539. </ul>
  540. </dd>
  541. </dl>
  542. <p>The profile type names maybe changed to something better, suggestions are
  543. welcome.</p>
  544. <p>Create a <cite>Stats2</cite> profile if you wish to get/update a list of Searx-instances
  545. from a <cite>Searx-Stats2</cite> instance. For example the default <cite>https://searx.space</cite>.</p>
  546. <p>Create a <cite>User</cite> profile if you wish to add/remove/update your own list with
  547. Searx-instances.</p>
  548. <blockquote>
  549. <div class="line-block">
  550. <div class="line"><strong>NOTE</strong>: Profile types cannot be changed after the creation of the profile,</div>
  551. <div class="line-block">
  552. <div class="line">but you can add multiple profiles of both types.</div>
  553. </div>
  554. </div>
  555. </blockquote>
  556. <div class="section" id="creating-new-profile">
  557. <h3>Creating new profile</h3>
  558. <p>On first usage of <cite>Searx-Qt</cite> you will need to create a new profile. The <cite>Add</cite>
  559. button (of the &quot;Profile select&quot; window) will open a dialog to do so.</p>
  560. <p>There are profile settings presets (Web, Tor, i2p) which you can choose from.
  561. The Tor preset sets the proxy to <tt class="docutils literal">127.0.0.1:9050</tt> and
  562. changes the Searx-Stats2 instance url to the onion address. The i2p preset
  563. sets the proxy to <tt class="docutils literal">127.0.0.1:4444</tt>, it also adds some known
  564. i2p instances of Searx.</p>
  565. <blockquote>
  566. <img alt="Create new profile dialog" src="images/profiles_new.png" />
  567. </blockquote>
  568. </div>
  569. <div class="section" id="deleting-a-profile">
  570. <h3>Deleting a profile</h3>
  571. <p>I hope that it is self explanatory that the <cite>Delete</cite> button of the
  572. &quot;Profile select&quot; window deletes the currently selected profile, it will ask
  573. for confirmation before doing so.</p>
  574. <p>It is not possible to delete a active profile (at-least it shouldn't ;-)).</p>
  575. </div>
  576. </div>
  577. <div class="section" id="settings">
  578. <span id="usage-settings"></span><h2><a class="reference internal" href="#usage-settings">Settings</a></h2>
  579. <div class="section" id="general">
  580. <span id="usage-settings-general"></span><h3><a class="reference internal" href="#usage-settings-general">General</a></h3>
  581. <img alt="images/settings_general.png" class="align-right" src="images/settings_general.png" />
  582. <div class="section" id="theme">
  583. <h4>Theme</h4>
  584. <p>A <tt class="docutils literal">Theme</tt> is a Searx-Qt specific <tt class="docutils literal">stylesheet</tt> and the <tt class="docutils literal">Base style</tt> is a
  585. Qt theme/style.</p>
  586. <p>The Searx-Qt specific <tt class="docutils literal">Theme</tt> does override the <tt class="docutils literal">Base style</tt>.</p>
  587. </div>
  588. <div class="section" id="cli-output-level">
  589. <h4>CLI output level</h4>
  590. <p>The amount of CLI spam can be set here.</p>
  591. <blockquote>
  592. <ul class="simple">
  593. <li><tt class="docutils literal">Info</tt> does print to <tt class="docutils literal">stdout</tt>.</li>
  594. <li><tt class="docutils literal">Warning</tt> does print to <tt class="docutils literal">stderr</tt>.</li>
  595. <li><tt class="docutils literal">Debug</tt> does print to <tt class="docutils literal">stderr</tt>.</li>
  596. <li><tt class="docutils literal">Errror</tt> does print to <tt class="docutils literal">stderr</tt>.</li>
  597. </ul>
  598. </blockquote>
  599. </div>
  600. </div>
  601. <div class="section" id="connection">
  602. <span id="usage-settings-connection"></span><h3><a class="reference internal" href="#usage-settings-connection">Connection</a></h3>
  603. <img alt="images/settings_connection.png" class="align-center" src="images/settings_connection.png" />
  604. <div class="section" id="verify-ssl">
  605. <h4>Verify (SSL)</h4>
  606. <p>Request will fail on a invalid SSL/TLS certificate.</p>
  607. <p>Leave checked if unsure.</p>
  608. <p>See
  609. <a class="reference external" href="https://requests.readthedocs.io/en/master/user/advanced/#ssl-cert-verification">https://requests.readthedocs.io/en/master/user/advanced/#ssl-cert-verification</a>
  610. for a more technical description.</p>
  611. </div>
  612. <div class="section" id="timeout">
  613. <h4>Timeout</h4>
  614. <p>Timeout in seconds for a single request.</p>
  615. <p>Leave it at the default value of 10 seconds if unsure.</p>
  616. <p>See <a class="reference external" href="https://requests.readthedocs.io/en/master/user/advanced/#timeouts">https://requests.readthedocs.io/en/master/user/advanced/#timeouts</a> for a
  617. more technical description.</p>
  618. </div>
  619. <div class="section" id="proxy">
  620. <h4>Proxy</h4>
  621. <p>Here you can set a proxy that will be used for every connection Searx-Qt
  622. makes.</p>
  623. <p>The set proxy will apply to both <tt class="docutils literal">HTTP</tt> and <tt class="docutils literal">HTTPS</tt> requests.</p>
  624. <p>If you use a <tt class="docutils literal">socks4</tt> or <tt class="docutils literal">socks5</tt> proxy you probably want to make sure the
  625. 'Proxy DNS' checkbox is checked so DNS requests will also go through the
  626. proxy. DNS proxy is not available for a http proxy type.</p>
  627. </div>
  628. <div class="section" id="user-agents">
  629. <h4>User-agents</h4>
  630. <p>What user-agent string should Searx-Qt send?</p>
  631. <p>After pressing the <cite>Edit</cite> button it will change to a <cite>Save</cite> button, you will
  632. be able to edit the user-agent ?string(s) Searx-Qt will send. Some notes:</p>
  633. <ul class="simple">
  634. <li>One user-agent string per line.</li>
  635. <li>Set total blank to not send any user-agent string.</li>
  636. </ul>
  637. <p>When the <cite>Random</cite> checkbox is checked and there are multiple user-agent
  638. strings set then Searx-Qt will pick a random user-agent string from the list
  639. for every request.</p>
  640. </div>
  641. <div class="section" id="extra-headers">
  642. <h4>Extra headers</h4>
  643. <p>Excluding the <tt class="docutils literal"><span class="pre">User-Agent</span></tt> string, these are the headers <tt class="docutils literal"><span class="pre">Searx-Qt</span></tt> will
  644. send. As well the header key as the value should between double quotes (&quot;),
  645. the key and the value should be separated by at least one space. <strong>Edit these
  646. only when you know what you are doing!</strong></p>
  647. </div>
  648. </div>
  649. <div class="section" id="searxng-1">
  650. <span id="usage-settings-searxng"></span><h3><a class="reference internal" href="#usage-settings-searxng">SearXNG</a></h3>
  651. <img alt="images/settings_searxng.png" class="align-right" src="images/settings_searxng.png" />
  652. <div class="section" id="parse-html">
  653. <h4>Parse HTML</h4>
  654. <p>When this is enabled <tt class="docutils literal"><span class="pre">Searx-Qt</span></tt> will request <tt class="docutils literal">HTML</tt> on search request and
  655. not make use of the <tt class="docutils literal">SearXNG</tt> <tt class="docutils literal"><span class="pre">JSON-API</span></tt>. The <tt class="docutils literal">HTML</tt> will be parsed and
  656. turned into a <tt class="docutils literal">JSON</tt> object, what will be processed as usual.</p>
  657. <p>This is enabled by default.</p>
  658. </div>
  659. <div class="section" id="safe-search">
  660. <h4>Safe Search</h4>
  661. <p>When this option is enabled it will simply send <tt class="docutils literal">safesearch: &quot;1&quot;</tt> with a
  662. search requests. It is whatever <tt class="docutils literal">SearXNG</tt> and the search engines it relies
  663. upon will do with it.</p>
  664. <p>It is assumed that NSFW results are left out (filtered-out). So when left
  665. unchecked NSFW content may be returned, and when checked there should be none
  666. (BUT NO GUARANTEE).</p>
  667. <p>This is disabled by default.</p>
  668. </div>
  669. </div>
  670. <div class="section" id="searx-space-1">
  671. <span id="usage-settings-searxspace"></span><h3><a class="reference internal" href="#usage-settings-searxspace">Searx-Space</a></h3>
  672. <p>Here you can change the URL of the Searx-Stats2 instance you like to use
  673. for fetching the instances data.</p>
  674. <blockquote>
  675. <div class="line-block">
  676. <div class="line"><strong>NOTE</strong>: This is only available for a <cite>Stats2</cite> profile type.</div>
  677. </div>
  678. </blockquote>
  679. </div>
  680. <div class="section" id="guard">
  681. <span id="usage-settings-guard"></span><span id="usage-instances"></span><h3><a class="reference internal" href="#usage-settings-guard">Guard</a></h3>
  682. <p>Guard can put instances on a timeout or the blacklist when they are failing
  683. and is enabled by default.</p>
  684. <p>When the Guard rules are set properly, searches will be quicker over time
  685. since failing instances are not used anymore. This reduces the chance of
  686. requesting a search query to a instance that probably will fail again. Also
  687. some instances block our request for whatever reason they have, and there is
  688. no standard response so they all may (and many will) respond differently (Thus
  689. we can not properly detect when we may use the API and when not).</p>
  690. <blockquote>
  691. <ul class="simple">
  692. <li>It should be obvious that when <tt class="docutils literal">Enable guard</tt> is checked that Guard is enabled, when not checked Guard is disabled.</li>
  693. <li>When Guard is enabled it is advised to also enable the <tt class="docutils literal">Store log</tt> option so that old failures can be evaluated against new failures after Searx-Qt has been restarted.</li>
  694. <li>Below the <tt class="docutils literal">Store log</tt> option is a spinbox that defines for how long log entries will be stored (in days).</li>
  695. <li>A rule defines what a fail is and what should happen with the failing instance.</li>
  696. </ul>
  697. </blockquote>
  698. <img alt="images/settings_guard.png" class="align-right" src="images/settings_guard.png" />
  699. <div class="section" id="rules">
  700. <h4>Rules</h4>
  701. <p>A rule has the following variables:</p>
  702. <blockquote>
  703. <ul class="simple">
  704. <li><tt class="docutils literal">Error Type</tt>, the type of error.</li>
  705. <li><tt class="docutils literal">Amount</tt> of fails.</li>
  706. <li><tt class="docutils literal">Timeframe</tt> in which the <tt class="docutils literal">Amount</tt> of fails have to occur.</li>
  707. <li><tt class="docutils literal">Status</tt>, the HTTP response code. (Only used for the <tt class="docutils literal">WrongStatus</tt> <tt class="docutils literal">Error type</tt>).</li>
  708. <li><tt class="docutils literal">Destination</tt>, what should happen to the instance? Should Guard put it on
  709. the blacklist or on a timeout?</li>
  710. <li><tt class="docutils literal">Duration</tt> in minutes of the timeout. (Only used when <tt class="docutils literal">Destionation</tt> is set to <tt class="docutils literal">Timeout</tt>). When <tt class="docutils literal">Timeout</tt> is used as <tt class="docutils literal">Destination</tt> and this is set to <tt class="docutils literal">0</tt> minutes the instance will be on timeout until Searx-Qt
  711. has been restarted.</li>
  712. </ul>
  713. </blockquote>
  714. <p>When <tt class="docutils literal">Error type</tt>, <tt class="docutils literal">Amount</tt>, <tt class="docutils literal">Timeframe</tt> and <tt class="docutils literal">Status</tt> are met the rule
  715. will be triggered and the instance will be put on the <tt class="docutils literal">Destination</tt> for
  716. <tt class="docutils literal">Duration</tt> amount of time in minutes.</p>
  717. </div>
  718. <div class="section" id="log">
  719. <h4>Log</h4>
  720. <p>Here you can see failed search requests. Failed search requests will only
  721. be logged when Guard is enabled.</p>
  722. <p>It logs as little as possible. The following is logged:</p>
  723. <blockquote>
  724. <ul class="simple">
  725. <li>Date and time.</li>
  726. <li>Instance url.</li>
  727. <li>Error Type.</li>
  728. <li>HTTP status code.</li>
  729. <li>HTTP content/Error message (for debugging, may contain error message which
  730. is handy for debugging but also may contain SENSITIVE stuff!)</li>
  731. </ul>
  732. </blockquote>
  733. </div>
  734. </div>
  735. </div>
  736. <div class="section" id="instances">
  737. <h2><a class="reference internal" href="#usage-instances">Instances</a></h2>
  738. <img alt="images/instances.png" class="align-right" src="images/instances.png" />
  739. <p>A Searx instance is a server running the Searx project. Since we want to
  740. preform searches to Searx instance(s) we need addresses of those
  741. instance(s).</p>
  742. <p>The interface to manage instances is on the right.</p>
  743. <div class="section" id="with-stats2-profile-type">
  744. <h3>With <cite>Stats2</cite> profile type</h3>
  745. <p>When your profile is a <cite>Stats2</cite> type, the Searx-instances will be fetched
  746. from <tt class="docutils literal"><span class="pre">https://searx.space/data/instances.json</span></tt> (or any other set in the
  747. settings by your preference). The <tt class="docutils literal">instances.json</tt> from <tt class="docutils literal">search.space</tt>
  748. also contains a lot of other data about the instances it lists (which we can
  749. use to filter instances based on our preferences).</p>
  750. <p>When Searx-Qt is used for the first time you will need to update the
  751. instances table. There is a 'Update' button between the Filter and the
  752. Table that can be used for this. Searx-Qt will not update this automatically!</p>
  753. <p>It maybe useful to update the instances data so now and then since public
  754. instances appear, disappear and their stats change over time.</p>
  755. </div>
  756. <div class="section" id="with-user-profile-type">
  757. <h3>With <cite>User</cite> profile type</h3>
  758. <p>If your profile is a <cite>User</cite> type you will have to add addresses of instances
  759. manually.</p>
  760. <p>This can be done by pressing the <cite>Add instance</cite> button right above
  761. the instances table, a dialog will pop-up asking for the address to add
  762. (without scheme).</p>
  763. <p>The scheme (<a class="reference external" href="http://">http://</a> or <a class="reference external" href="https://">https://</a>) can be selected from the combobox.</p>
  764. <p>There is also a &quot;Update data on add&quot; checkbox, when this is checked
  765. and <cite>Add</cite> is pressed it will automatically download data from
  766. <cite>http(s)://your-address/config</cite>. Downloading/updating this data may also be
  767. done later by right clicking on a (or multiple) Searx-instances in the table
  768. and pressing <cite>Update selected</cite> from the context-menu that has popped-up.</p>
  769. </div>
  770. <div class="section" id="instances-table">
  771. <span id="usage-instances-table"></span><h3>Instances table</h3>
  772. <p>The instances table can be used to browse instances with their data that
  773. remain after all filters. The table is also used to set the current
  774. instance by left-clicking on one.</p>
  775. <p>The currently used instance should also be visible bottom right in the
  776. application it's status-bar.</p>
  777. <p>Right-clicking in the table opens a context-menu from where you can do
  778. the following:</p>
  779. <ul class="simple">
  780. <li>Whitelist/blacklist selected instance(s).</li>
  781. <li>Temporary blacklist.</li>
  782. <li>Copy any column(s) of the selected instance(s) to the clipboard.</li>
  783. <li>Copy JSON data of the selected instance(s) to the clipboard.</li>
  784. <li>Select All instances (CTRL+A should do the same).</li>
  785. <li>Hide or show columns.</li>
  786. </ul>
  787. <p>If your profile is a <cite>User</cite> profile the context-menu will have the
  788. following extra actions:</p>
  789. <ul class="simple">
  790. <li>Remove selected instance(s).</li>
  791. <li>Update selected instance(s).</li>
  792. </ul>
  793. </div>
  794. <div class="section" id="filter-instances">
  795. <h3>Filter instances</h3>
  796. <p>When a filter is enabled and the instance it's value that is being
  797. matched is unknown then it is excluded by default!</p>
  798. <div class="section" id="network">
  799. <h4>Network</h4>
  800. <p>Filter instances on network type. Only instances that match one of the
  801. checked network types remain.</p>
  802. </div>
  803. <div class="section" id="require-asn-privacy">
  804. <h4>Require ASN privacy</h4>
  805. <p>Excludes instances that run their server at a known malicious network.
  806. Like for example CloudFlare, Google, Akamai etc..</p>
  807. <p>This does not give any guarantee, it only filters <strong>known</strong> privacy
  808. violators!</p>
  809. <p>For a full list of known malicious networks (technical):
  810. <a class="reference external" href="https://github.com/dalf/searx-stats2/blob/master/searxstats/data/asn.py">https://github.com/dalf/searx-stats2/blob/master/searxstats/data/asn.py</a></p>
  811. </div>
  812. <div class="section" id="require-ipv6">
  813. <h4>Require IPv6</h4>
  814. <p>Exclude instances that don't have at least one IPv6 address.</p>
  815. </div>
  816. <div class="section" id="version">
  817. <h4>Version</h4>
  818. <p>This has multiple options to filter on Searx/SearXNG versions strings. Both
  819. semantic versions and date versions are supported.</p>
  820. <blockquote>
  821. <ul class="simple">
  822. <li>[<tt class="docutils literal">Minimum</tt>]
  823. Include only instances with versions of the set minimum version or higher.</li>
  824. <li>[<tt class="docutils literal">Invalid</tt>]
  825. Include instances with a invalid version string.</li>
  826. <li>[<tt class="docutils literal">Development</tt>]
  827. Include development versions (git versions).</li>
  828. <li><ul class="first">
  829. <li>[<tt class="docutils literal">Dirty</tt>]
  830. Include SearXNG development versions with uncommited changes.</li>
  831. </ul>
  832. </li>
  833. <li><ul class="first">
  834. <li>[<tt class="docutils literal">Extra</tt>]
  835. Include versions with the 'extra' addition, I don't know what this is; so
  836. TODO.</li>
  837. </ul>
  838. </li>
  839. <li><ul class="first">
  840. <li>[<tt class="docutils literal">Unknown</tt>]
  841. Include Searx development versions with unknown changes.</li>
  842. </ul>
  843. </li>
  844. </ul>
  845. </blockquote>
  846. </div>
  847. <div class="section" id="blacklist">
  848. <h4>Blacklist</h4>
  849. <p>Here are the URLs of the instances that have been blacklisted, either manually
  850. or automatically by Guard (when enabled).</p>
  851. <p>There is a button right to each blacklist item to remove it from the
  852. blacklist.</p>
  853. <p>Hovering the remove button or the url of a blacklist item will show a tooltip
  854. with some more info.</p>
  855. <p>You can manually blacklist a instance by right clicking on a instance in
  856. the instances table and click 'Add to blacklist'; multiple instances can
  857. be blacklisted at once.</p>
  858. <p>Blacklisted instances will be excluded from the table by default.</p>
  859. </div>
  860. <div class="section" id="whitelist">
  861. <h4>Whitelist</h4>
  862. <p>Here are the URLs of the instances that have been manually whitelisted.
  863. There is a button right to each whitelist item to remove it from the
  864. whitelist.</p>
  865. <p>You can manually whitelist a instance by right clicking on a instance in
  866. the instances table and click 'Add to whitelist'; multiple instances can
  867. be whitelisted at once.</p>
  868. <p>Whitelisted instances will be in the table by default except when they are on
  869. the timeout list.</p>
  870. </div>
  871. <div class="section" id="timeout-1">
  872. <h4>Timeout</h4>
  873. <p>This is a temporary blacklist. Instances manually put on a timeout will stay
  874. here until Searx-Qt is restarted. When Guard is enabled it also may put
  875. instances here depending on the set rules, those may persist after Searx-Qt is
  876. restarted depending on the rule(s).</p>
  877. <p>Hovering the remove button or the url of a timeout item will show a tooltip
  878. with some more info.</p>
  879. </div>
  880. </div>
  881. </div>
  882. <div class="section" id="search">
  883. <span id="usage-search"></span><h2><a class="reference internal" href="#usage-search">Search</a></h2>
  884. <div class="section" id="search-bar">
  885. <span id="usage-search-bar"></span><h3>Search bar</h3>
  886. <img alt="images/search_bar.png" src="images/search_bar.png" />
  887. <div class="section" id="fallback">
  888. <span id="usage-search-bar-fallback"></span><h4>Fallback</h4>
  889. <p>When checked it will pick a random instance from the instances table if a
  890. search request fails one way or another and re-try the same request with
  891. the freshly picked instance. There is a maximum amount of 10 tries (10
  892. different instances to try the same request on).</p>
  893. <p>What is fail?</p>
  894. <ul class="simple">
  895. <li>Connection errors including timeout.</li>
  896. <li>Wrong status code (not 200).</li>
  897. <li>No (usefull) or malformed results returned.</li>
  898. </ul>
  899. </div>
  900. <div class="section" id="random-every">
  901. <span id="usage-search-random-every"></span><h4>Random every</h4>
  902. <p>When checked it will automatically pick a random instance on a search request,
  903. it will also hide the 'Random search button' because it makes it obsolete.</p>
  904. <p>When not checked it will do search requests on the same instance unless the
  905. request fails somehow and 'Fallback' is checked. Exception is when the
  906. 'Random search button' is used for the search request.</p>
  907. </div>
  908. <div class="section" id="random-search-button">
  909. <span id="usage-search-bar-random-search-button"></span><h4>Random search button</h4>
  910. <p>When pressed it will pick a random instance from the list and preform the
  911. search request.</p>
  912. </div>
  913. <div class="section" id="reload-button">
  914. <span id="usage-search-bar-reload-button"></span><h4>Reload button</h4>
  915. <p>When pressed it basically preforms a search request without 'Fallback'
  916. whenever it is enabled or not, it also doesn't reset the page number. So
  917. it can act as a reload button thus it's name, but it does more.</p>
  918. <p>Note: When a search argument like the search query, instance URL,
  919. categories/engines etc. has changed by user interaction it will do the
  920. request with those changes, that isn't a real reload of the previous
  921. request.</p>
  922. <p>Dev-note: Probably this behavior should change or the name/icon should
  923. change to something more fitting.</p>
  924. </div>
  925. <div class="section" id="search-button">
  926. <span id="usage-search-bar-search-button"></span><h4>Search button</h4>
  927. <p>Preform a search request on the currently selected instance.</p>
  928. <p>Page number is reset, 'Fallback' and 'Random Every' options are honored.</p>
  929. </div>
  930. <div class="section" id="search-query-input">
  931. <span id="usage-search-bar-search-query-input"></span><h4>Search query input</h4>
  932. <p>The query you like to search for.</p>
  933. <p>See <a class="reference external" href="https://searx.github.io/searx/user/search_syntax.html">https://searx.github.io/searx/user/search_syntax.html</a> for what is
  934. possible.</p>
  935. <p>It will do a search request on <tt class="docutils literal">enter</tt> key pressed, same behavior as
  936. when the 'Search button' has been pressed.</p>
  937. </div>
  938. </div>
  939. <div class="section" id="search-options">
  940. <span id="usage-search-options"></span><h3>Search options</h3>
  941. <img alt="Search options bar" src="images/search_options.png" />
  942. <p><strong>NOTE</strong>: Right clicking in (on the picture above) the dark area opens a
  943. context-menu where you can manage what options you want to be visible or
  944. not as shown in the image below.</p>
  945. <img alt="Search options context menu" class="align-right" src="images/search_options_rmb.png" />
  946. <p><strong>NOTE</strong>: Left-click (mouse) on the <tt class="docutils literal">Categories</tt> or <tt class="docutils literal">Engines</tt> label will
  947. toggle the label collapsed/expanded state, to be able to reduce the height
  948. when multiple options are selected.</p>
  949. <p><strong>NOTE</strong>: Right-click (mouse) on <tt class="docutils literal">Categories</tt> or <tt class="docutils literal">Engines</tt> label will open
  950. a context menu with a option to uncheck all for convenience.</p>
  951. <div class="section" id="categories">
  952. <span id="usage-search-options-categories"></span><h4>Categories</h4>
  953. <img alt="Categories menu" class="align-right" src="images/categories_menu.png" />
  954. <p>A category is basically a collection of engines. When a category gets checked
  955. then all the engines it represents will also be checked which in turn will
  956. filter out all Searx-instances that don't have at least one of the checked
  957. engines enabled.</p>
  958. <p>Multiple categories may be selected.</p>
  959. <p>The default (non-editable) categories will be compiled from categories listed
  960. in engines. Besides default categories there is also a option to create custom
  961. categories.</p>
  962. <img alt="Custom categories window" src="images/custom_categories.png" />
  963. </div>
  964. <div class="section" id="engines">
  965. <span id="usage-search-options-engines"></span><h4>Engines</h4>
  966. <p>Here you can toggle what search engines should be enabled. It will
  967. automatically filter out all instances from the instances table that doesn't
  968. have at least one of the checked engines enabled. The checked engines will
  969. be send with a search request to a Searx instance with the <cite>enabled_engines</cite>
  970. param. You should only get results from engines that are checked.</p>
  971. <p>If no engine is checked it means that it may return results of any engine
  972. in the list.</p>
  973. <p>The list with engines is created with data from the
  974. <a class="reference internal" href="#usage-instances-table">instances table</a>, so only engines are listed that
  975. are available from the instances table.</p>
  976. </div>
  977. <div class="section" id="period">
  978. <span id="usage-search-options-period"></span><h4>Period</h4>
  979. <p>Search period you like results from. Options are <tt class="docutils literal">Last day</tt>,
  980. <tt class="docutils literal">Last week</tt>, <tt class="docutils literal">Last month</tt> or <tt class="docutils literal">Last year</tt>.</p>
  981. </div>
  982. <div class="section" id="language">
  983. <span id="usage-search-options-language"></span><h4>Language</h4>
  984. <p>If you want results in a specific language than you can select one here. The
  985. set language will persist on restart.</p>
  986. <p>Since Searx-Qt 0.3 there is a option to mark languages a favorites. Favorites
  987. will appear on the top of the combobox list so you won't have to scroll.</p>
  988. <p>Adding a language to favorite can be done by hovering the language and
  989. pressing the spacebar on your keyboard. Removing a favorite works the same,
  990. hover the favorite language and press the spacebar on your keyboard.</p>
  991. <blockquote>
  992. <div class="line-block">
  993. <div class="line"><strong>NOTE</strong>: Not all engines have language support and not all engines </div>
  994. <div class="line-block">
  995. <div class="line">honor the requested language. Searx-qt does not (yet?) act on </div>
  996. <div class="line">this.</div>
  997. </div>
  998. </div>
  999. <div class="line-block">
  1000. <div class="line"><strong>NOTE</strong>: When <tt class="docutils literal">Default language</tt> is set that means the default language</div>
  1001. <div class="line-block">
  1002. <div class="line">of the instance.</div>
  1003. </div>
  1004. </div>
  1005. </blockquote>
  1006. </div>
  1007. </div>
  1008. <div class="section" id="search-results">
  1009. <h3>Search results</h3>
  1010. <div class="section" id="find-text-in-results">
  1011. <h4>Find text in results</h4>
  1012. <p>The find widget to search text inside the results can be opened/focused by the
  1013. keyboard shortcut <tt class="docutils literal">Ctrl + F</tt>.</p>
  1014. <p>Shortcuts that may be used while the find text input is activated:</p>
  1015. <blockquote>
  1016. <ul class="simple">
  1017. <li><tt class="docutils literal">Return</tt> to find the next match.</li>
  1018. <li><tt class="docutils literal">Shift + Return</tt> to find the previous match.</li>
  1019. <li><tt class="docutils literal">Escape</tt> to close.</li>
  1020. </ul>
  1021. </blockquote>
  1022. </div>
  1023. </div>
  1024. </div>
  1025. </div>
  1026. <div class="section" id="troubleshooting-1">
  1027. <span id="troubleshooting"></span><h1><a class="reference internal" href="#troubleshooting">Troubleshooting</a></h1>
  1028. <div class="section" id="searx-qt-won-t-start">
  1029. <span id="troubleshooting-wontstart"></span><h2><a class="reference internal" href="#troubleshooting-wontstart">Searx-Qt won't start</a></h2>
  1030. <p>When <tt class="docutils literal"><span class="pre">Searx-Qt</span></tt> fails to start the first thing you should try is to run it on
  1031. the <tt class="docutils literal">CLI</tt> and see if there are any error messages.</p>
  1032. <p>When you just updated to a newer version of <tt class="docutils literal"><span class="pre">Searx-Qt</span></tt> it can happen that the
  1033. stored profile data is not compatible. <tt class="docutils literal"><span class="pre">Searx-Qt</span></tt> should be aware of this and
  1034. notify you when this happend but this is NOT the case yet. So one thing you can
  1035. try is to delete the local <tt class="docutils literal"><span class="pre">Searx-Qt</span></tt> config (usually in
  1036. <tt class="docutils literal"><span class="pre">~/.config/CYBERDEViL/searx-qt/</span></tt>). Sorry for losing your previous config,
  1037. this is still <tt class="docutils literal">TODO</tt>, patches are welcome.</p>
  1038. </div>
  1039. </div>
  1040. <div class="section" id="development-1">
  1041. <span id="development"></span><h1><a class="reference internal" href="#development">Development</a></h1>
  1042. <p><strong>NOTE</strong>: Make sure you are in the Searx-Qt source root (where utils/,
  1043. locales/, searxqt/ etc.. are).</p>
  1044. <p><strong>NOTE</strong>: To run Searx-Qt without need to install:</p>
  1045. <pre class="literal-block">
  1046. # Copy the executable from ./bin to cwd (searx-qt source root)
  1047. cp bin/searx-qt ./
  1048. # Start
  1049. ./searx-qt
  1050. </pre>
  1051. <div class="section" id="themes">
  1052. <span id="development-themes"></span><h2><a class="reference internal" href="#development-themes">Themes</a></h2>
  1053. <div class="section" id="create-new-theme">
  1054. <h3>Create new theme</h3>
  1055. <p>A theme consists of icons, application css and search result/fail css.</p>
  1056. <p>Simple example to create a new theme from the default theme:</p>
  1057. <p><strong>NOTE</strong>: Replace <tt class="docutils literal">your_theme</tt> with the name of your new theme.</p>
  1058. <p><strong>NOTE</strong>: For this example you should know basic CSS.</p>
  1059. <ol class="arabic">
  1060. <li><p class="first">Setup structure for new theme.</p>
  1061. <blockquote>
  1062. <pre class="code literal-block">
  1063. cp -r ./themes/default/ ./themes/your_theme/
  1064. </pre>
  1065. </blockquote>
  1066. </li>
  1067. <li><p class="first">Edit the application style <tt class="docutils literal">./themes/your_theme/style.css</tt>.</p>
  1068. </li>
  1069. <li><p class="first">Edit the css used for failed search result message <tt class="docutils literal">./themes/your_theme/html_fail.css</tt>.</p>
  1070. </li>
  1071. <li><p class="first">Edit the css used for search results <tt class="docutils literal">./themes/your_theme/html_results.css</tt></p>
  1072. </li>
  1073. <li><p class="first">Edit the icons (don't change their size) <tt class="docutils literal"><span class="pre">./themes/your_theme/icons/*.png</span></tt></p>
  1074. </li>
  1075. <li><p class="first">Open <tt class="docutils literal">./themes/your_theme/manifest.json</tt> and change the <tt class="docutils literal">name</tt> variable to the pretty name of your new theme.</p>
  1076. </li>
  1077. <li><p class="first">See if your theme is listed, when not there is a error:</p>
  1078. <pre class="literal-block">
  1079. python ./utils/themes_tool.py list
  1080. </pre>
  1081. </li>
  1082. <li><p class="first">Compile the theme:</p>
  1083. <pre class="literal-block">
  1084. python ./utils/themes_tool.py make your_theme
  1085. </pre>
  1086. </li>
  1087. <li><p class="first">Open Searx-Qt, go to settings, change to your new theme (it should be listed, else there is an error) and test it:</p>
  1088. <pre class="literal-block">
  1089. ./searx-qt
  1090. </pre>
  1091. </li>
  1092. <li><p class="first">Done? :-)</p>
  1093. </li>
  1094. </ol>
  1095. </div>
  1096. </div>
  1097. <div class="section" id="translations-1">
  1098. <span id="development-translations"></span><h2><a class="reference internal" href="#development-translations">Translations</a></h2>
  1099. <p>Searx-Qt will try to find a translation for your system locale and use that
  1100. when found.</p>
  1101. <p>To test translations the system locale should be installed for that language,
  1102. it doesn't have to be set for testing since we can easly override the <tt class="docutils literal">LANG</tt>
  1103. environment variable before executing Searx-Qt.</p>
  1104. <p><strong>NOTE</strong>: The examples below are for a Dutch language translation, you
  1105. should replace <tt class="docutils literal">nl_NL</tt> with the i18n locale ID of the language you whish to
  1106. translate.</p>
  1107. <div class="section" id="create-new-translation">
  1108. <h3>Create new translation</h3>
  1109. <ol class="arabic">
  1110. <li><p class="first">Setup structure for new language:</p>
  1111. <pre class="literal-block">
  1112. # Update the searx-qt.pot template file.
  1113. ./utils/locale_tool.sh -c
  1114. # Create directory structure.
  1115. mkdir -p ./locales/nl_NL/LC_MESSAGES/
  1116. # Copy the template file to our new directory.
  1117. cp ./locales/searx-qt.pot ./locales/nl_NL/LC_MESSAGES/searx-qt.po
  1118. # Check if our new language is found. It should be listed.
  1119. ./utils/locale_tool.sh --list
  1120. </pre>
  1121. </li>
  1122. <li><p class="first">Start working on the translation.</p>
  1123. <p>You can edit the <tt class="docutils literal"><span class="pre">./locales/nl_NL/LC_MESSAGES/searx-qt.po</span></tt> file with a
  1124. text editor or a special editor for translations (that can handle <tt class="docutils literal">.po</tt>
  1125. files like for example Poedit).</p>
  1126. </li>
  1127. <li><p class="first">Compile the translation:</p>
  1128. <pre class="literal-block">
  1129. ./utils/locale_tool.sh -m nl_NL
  1130. </pre>
  1131. </li>
  1132. <li><p class="first">Test the translation:</p>
  1133. <pre class="literal-block">
  1134. # Note: overriding XDG_DATA_HOME only for debugging translations! Themes
  1135. # will not work.
  1136. XDG_DATA_HOME=&quot;$(pwd -P)/&quot; LC_ALL=nl_NL.UTF-8 ./searx-qt
  1137. </pre>
  1138. </li>
  1139. </ol>
  1140. </div>
  1141. <div class="section" id="update-existing-translation">
  1142. <h3>Update existing translation</h3>
  1143. <ol class="arabic">
  1144. <li><p class="first">Update files:</p>
  1145. <pre class="literal-block">
  1146. # Update the .pot template file.
  1147. ./utils/locale_tool.sh -c
  1148. # Update the translation it's .po file
  1149. ./utils/locale_tool.sh -u nl_NL
  1150. </pre>
  1151. </li>
  1152. <li><p class="first">Edit the translation:</p>
  1153. <p>You can edit the <tt class="docutils literal"><span class="pre">./locales/nl_NL/LC_MESSAGES/searx-qt.po</span></tt> file with a
  1154. text editor or a special editor for translations (that can handle <tt class="docutils literal">.po</tt>
  1155. files like for example Poedit).</p>
  1156. </li>
  1157. <li><p class="first">Compile the translation:</p>
  1158. <pre class="literal-block">
  1159. ./utils/locale_tool.sh -m nl_NL
  1160. </pre>
  1161. </li>
  1162. <li><p class="first">Test the translation:</p>
  1163. <pre class="literal-block">
  1164. # Note: overriding XDG_DATA_HOME only for debugging translations! Themes
  1165. # will not work.
  1166. XDG_DATA_HOME=&quot;$(pwd -P)/&quot; LC_ALL=nl_NL.UTF-8 ./searx-qt
  1167. </pre>
  1168. </li>
  1169. </ol>
  1170. </div>
  1171. </div>
  1172. </div>
  1173. </div>
  1174. </body>
  1175. </html>