mirror of
https://github.com/searxng/searxng.git
synced 2025-12-29 15:10:02 +00:00
Compare commits
9 Commits
update_dat
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c57db45672 | ||
|
|
9491b514c9 | ||
|
|
320c317719 | ||
|
|
abae17e6fc | ||
|
|
3baf5c38fc | ||
|
|
ce46f30739 | ||
|
|
65a95539f1 | ||
|
|
874dc3f5ea | ||
|
|
7941719371 |
@@ -124,14 +124,17 @@ engine is shown. Most of the options have a default value or even are optional.
|
|||||||
|
|
||||||
``api_key`` : optional
|
``api_key`` : optional
|
||||||
In a few cases, using an API needs the use of a secret key. How to obtain them
|
In a few cases, using an API needs the use of a secret key. How to obtain them
|
||||||
is described in the file.
|
is described in the file. Engines that require an API key are set to
|
||||||
|
``inactive: true`` by default. To enable such an engine, provide the API key
|
||||||
|
and set ``inactive: false``.
|
||||||
|
|
||||||
``disabled`` : optional
|
``disabled`` : optional
|
||||||
To disable by default the engine, but not deleting it. It will allow the user
|
To disable by default the engine, but not deleting it. It will allow the user
|
||||||
to manually activate it in the settings.
|
to manually activate it in the settings.
|
||||||
|
|
||||||
``inactive``: optional
|
``inactive``: optional
|
||||||
Remove the engine from the settings (*disabled & removed*).
|
Remove the engine from the settings (*disabled & removed*). This defaults to ``true`` for engines
|
||||||
|
that require an API key, please see the ``api_key`` section if you want to enable such an engine.
|
||||||
|
|
||||||
``language`` : optional
|
``language`` : optional
|
||||||
If you want to use another language for a specific engine, you can define it
|
If you want to use another language for a specific engine, you can define it
|
||||||
|
|||||||
@@ -4,15 +4,33 @@
|
|||||||
Search API
|
Search API
|
||||||
==========
|
==========
|
||||||
|
|
||||||
The search supports both ``GET`` and ``POST``.
|
SearXNG supports querying via a simple HTTP API.
|
||||||
|
Two endpoints, ``/`` and ``/search``, are supported for both GET and POST methods.
|
||||||
|
The GET method expects parameters as URL query parameters, while the POST method expects parameters as form data.
|
||||||
|
|
||||||
Furthermore, two endpoints ``/`` and ``/search`` are available for querying.
|
If you want to consume the results as JSON, CSV, or RSS, you need to set the
|
||||||
|
``format`` parameter accordingly. Supported formats are defined in ``settings.yml``, under the ``search`` section.
|
||||||
|
Requesting an unset format will return a 403 Forbidden error. Be aware that many public instances have these formats disabled.
|
||||||
|
|
||||||
|
|
||||||
|
Endpoints:
|
||||||
|
|
||||||
``GET /``
|
``GET /``
|
||||||
|
|
||||||
``GET /search``
|
``GET /search``
|
||||||
|
|
||||||
|
``POST /``
|
||||||
|
``POST /search``
|
||||||
|
|
||||||
|
example cURL calls:
|
||||||
|
|
||||||
|
.. code-block:: bash
|
||||||
|
|
||||||
|
curl 'https://searx.example.org/search?q=searxng&format=json'
|
||||||
|
|
||||||
|
curl -X POST 'https://searx.example.org/search' -d 'q=searxng&format=csv'
|
||||||
|
|
||||||
|
curl -L -X POST -d 'q=searxng&format=json' 'https://searx.example.org/'
|
||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
==========
|
==========
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -345,6 +345,7 @@
|
|||||||
"af": "Australiese dollar",
|
"af": "Australiese dollar",
|
||||||
"ar": "دولار أسترالي",
|
"ar": "دولار أسترالي",
|
||||||
"bg": "Австралийски долар",
|
"bg": "Австралийски долар",
|
||||||
|
"bn": "অস্ট্রেলীয় ডলার",
|
||||||
"ca": "dòlar australià",
|
"ca": "dòlar australià",
|
||||||
"cs": "australský dolar",
|
"cs": "australský dolar",
|
||||||
"cy": "Doler Awstralia",
|
"cy": "Doler Awstralia",
|
||||||
@@ -566,6 +567,7 @@
|
|||||||
"fi": "Bangladeshin taka",
|
"fi": "Bangladeshin taka",
|
||||||
"fr": "taka",
|
"fr": "taka",
|
||||||
"ga": "taka na Banglaidéise",
|
"ga": "taka na Banglaidéise",
|
||||||
|
"gl": "taka",
|
||||||
"he": "טאקה",
|
"he": "טאקה",
|
||||||
"hr": "Bangladeška taka",
|
"hr": "Bangladeška taka",
|
||||||
"hu": "bangladesi taka",
|
"hu": "bangladesi taka",
|
||||||
@@ -646,6 +648,7 @@
|
|||||||
"fi": "Bahrainin dinaari",
|
"fi": "Bahrainin dinaari",
|
||||||
"fr": "dinar bahreïnien",
|
"fr": "dinar bahreïnien",
|
||||||
"ga": "dinar Bhairéin",
|
"ga": "dinar Bhairéin",
|
||||||
|
"gl": "dinar de Bahrain",
|
||||||
"he": "דינר בחרייני",
|
"he": "דינר בחרייני",
|
||||||
"hr": "Bahreinski dinar",
|
"hr": "Bahreinski dinar",
|
||||||
"hu": "bahreini dinár",
|
"hu": "bahreini dinár",
|
||||||
@@ -969,7 +972,7 @@
|
|||||||
"et": "Botswana pula",
|
"et": "Botswana pula",
|
||||||
"eu": "Pula",
|
"eu": "Pula",
|
||||||
"fi": "Pula",
|
"fi": "Pula",
|
||||||
"fr": "pula",
|
"fr": "Pula",
|
||||||
"ga": "pula na Botsuáine",
|
"ga": "pula na Botsuáine",
|
||||||
"gl": "Pula",
|
"gl": "Pula",
|
||||||
"he": "פולה",
|
"he": "פולה",
|
||||||
@@ -1275,6 +1278,10 @@
|
|||||||
"uk": "Чилійський песо",
|
"uk": "Чилійський песо",
|
||||||
"vi": "Peso Chile"
|
"vi": "Peso Chile"
|
||||||
},
|
},
|
||||||
|
"CNH": {
|
||||||
|
"en": "renminbi (offshore)",
|
||||||
|
"es": "yuan offshore"
|
||||||
|
},
|
||||||
"CNY": {
|
"CNY": {
|
||||||
"af": "Renminbi",
|
"af": "Renminbi",
|
||||||
"ar": "رنمينبي",
|
"ar": "رنمينبي",
|
||||||
@@ -1287,7 +1294,7 @@
|
|||||||
"da": "Renminbi",
|
"da": "Renminbi",
|
||||||
"de": "Renminbi",
|
"de": "Renminbi",
|
||||||
"dv": "ރެންމިބީ",
|
"dv": "ރެންމިބީ",
|
||||||
"en": "renminbi",
|
"en": "CNY",
|
||||||
"eo": "Renminbio",
|
"eo": "Renminbio",
|
||||||
"es": "yuan chino",
|
"es": "yuan chino",
|
||||||
"et": "Renminbi",
|
"et": "Renminbi",
|
||||||
@@ -1331,7 +1338,7 @@
|
|||||||
"cs": "Kolumbijské peso",
|
"cs": "Kolumbijské peso",
|
||||||
"da": "Colombiansk peso",
|
"da": "Colombiansk peso",
|
||||||
"de": "kolumbianischer Peso",
|
"de": "kolumbianischer Peso",
|
||||||
"en": "peso",
|
"en": "Colombian peso",
|
||||||
"eo": "kolombia peso",
|
"eo": "kolombia peso",
|
||||||
"es": "peso",
|
"es": "peso",
|
||||||
"et": "Colombia peeso",
|
"et": "Colombia peeso",
|
||||||
@@ -1415,7 +1422,7 @@
|
|||||||
"cy": "peso (Ciwba)",
|
"cy": "peso (Ciwba)",
|
||||||
"da": "Cubanske pesos",
|
"da": "Cubanske pesos",
|
||||||
"de": "kubanischer Peso",
|
"de": "kubanischer Peso",
|
||||||
"en": "peso",
|
"en": "Cuban peso",
|
||||||
"eo": "kuba peso",
|
"eo": "kuba peso",
|
||||||
"es": "peso",
|
"es": "peso",
|
||||||
"fi": "Kuuban peso",
|
"fi": "Kuuban peso",
|
||||||
@@ -1461,6 +1468,7 @@
|
|||||||
"fi": "Kap Verden escudo",
|
"fi": "Kap Verden escudo",
|
||||||
"fr": "escudo cap-verdien",
|
"fr": "escudo cap-verdien",
|
||||||
"ga": "escudo Rinn Verde",
|
"ga": "escudo Rinn Verde",
|
||||||
|
"gl": "escudo caboverdiano",
|
||||||
"he": "אשקודו כף ורדי",
|
"he": "אשקודו כף ורדי",
|
||||||
"hr": "Zelenortski eskudo",
|
"hr": "Zelenortski eskudo",
|
||||||
"hu": "zöld-foki köztársasági escudo",
|
"hu": "zöld-foki köztársasági escudo",
|
||||||
@@ -1809,7 +1817,7 @@
|
|||||||
"bg": "евро",
|
"bg": "евро",
|
||||||
"bn": "ইউরো",
|
"bn": "ইউরো",
|
||||||
"ca": "euro",
|
"ca": "euro",
|
||||||
"cs": "Euro",
|
"cs": "euro",
|
||||||
"cy": "Ewro",
|
"cy": "Ewro",
|
||||||
"da": "Euro",
|
"da": "Euro",
|
||||||
"de": "Euro",
|
"de": "Euro",
|
||||||
@@ -1958,7 +1966,7 @@
|
|||||||
"lt": "svaras sterlingų",
|
"lt": "svaras sterlingų",
|
||||||
"lv": "sterliņu mārciņa",
|
"lv": "sterliņu mārciņa",
|
||||||
"ms": "paun sterling",
|
"ms": "paun sterling",
|
||||||
"nl": "pond sterling",
|
"nl": "Britse pond",
|
||||||
"oc": "liure esterlina",
|
"oc": "liure esterlina",
|
||||||
"pa": "ਪਾਊਂਡ ਸਟਰਲਿੰਗ",
|
"pa": "ਪਾਊਂਡ ਸਟਰਲਿੰਗ",
|
||||||
"pl": "funt szterling",
|
"pl": "funt szterling",
|
||||||
@@ -2029,7 +2037,7 @@
|
|||||||
"eo": "ganaa cedio",
|
"eo": "ganaa cedio",
|
||||||
"es": "cedi",
|
"es": "cedi",
|
||||||
"fi": "Cedi",
|
"fi": "Cedi",
|
||||||
"fr": "cedi",
|
"fr": "Cedi",
|
||||||
"ga": "cedi",
|
"ga": "cedi",
|
||||||
"gl": "Cedi",
|
"gl": "Cedi",
|
||||||
"he": "סדי גאני",
|
"he": "סדי גאני",
|
||||||
@@ -2068,7 +2076,7 @@
|
|||||||
"es": "libra gibraltareña",
|
"es": "libra gibraltareña",
|
||||||
"et": "Gibraltari nael",
|
"et": "Gibraltari nael",
|
||||||
"fi": "Gibraltarin punta",
|
"fi": "Gibraltarin punta",
|
||||||
"fr": "livre de Gibraltar",
|
"fr": "Livre de Gibraltar",
|
||||||
"ga": "punt Ghiobráltar",
|
"ga": "punt Ghiobráltar",
|
||||||
"gl": "Libra de Xibraltar",
|
"gl": "Libra de Xibraltar",
|
||||||
"he": "לירה גיברלטרית",
|
"he": "לירה גיברלטרית",
|
||||||
@@ -3582,7 +3590,7 @@
|
|||||||
"cy": "tögrög Mongolia",
|
"cy": "tögrög Mongolia",
|
||||||
"da": "Tugrik",
|
"da": "Tugrik",
|
||||||
"de": "Tögrög",
|
"de": "Tögrög",
|
||||||
"en": "tugrik",
|
"en": "Mongolian tögrög",
|
||||||
"eo": "mongola tugriko",
|
"eo": "mongola tugriko",
|
||||||
"es": "tugrik mongol",
|
"es": "tugrik mongol",
|
||||||
"fi": "Mongolian tugrik",
|
"fi": "Mongolian tugrik",
|
||||||
@@ -3799,7 +3807,7 @@
|
|||||||
"bg": "Мексиканско песо",
|
"bg": "Мексиканско песо",
|
||||||
"ca": "peso mexicà",
|
"ca": "peso mexicà",
|
||||||
"cs": "Mexické peso",
|
"cs": "Mexické peso",
|
||||||
"cy": "peso (Mecsico)",
|
"cy": "peso",
|
||||||
"de": "Mexikanischer Peso",
|
"de": "Mexikanischer Peso",
|
||||||
"en": "peso",
|
"en": "peso",
|
||||||
"eo": "meksika peso",
|
"eo": "meksika peso",
|
||||||
@@ -3835,7 +3843,7 @@
|
|||||||
"tr": "Meksika pesosu",
|
"tr": "Meksika pesosu",
|
||||||
"tt": "Миксикә писысы",
|
"tt": "Миксикә писысы",
|
||||||
"uk": "мексиканський песо",
|
"uk": "мексиканський песо",
|
||||||
"vi": "Peso México"
|
"vi": "peso"
|
||||||
},
|
},
|
||||||
"MXV": {
|
"MXV": {
|
||||||
"de": "UNIDAD DE INVERSION",
|
"de": "UNIDAD DE INVERSION",
|
||||||
@@ -3848,7 +3856,7 @@
|
|||||||
"ar": "رينغيت ماليزي",
|
"ar": "رينغيت ماليزي",
|
||||||
"bg": "Малайзийски рингит",
|
"bg": "Малайзийски рингит",
|
||||||
"ca": "ringgit",
|
"ca": "ringgit",
|
||||||
"cs": "Malajsijský ringgit",
|
"cs": "malajsijský ringgit",
|
||||||
"cy": "ringgit Maleisia",
|
"cy": "ringgit Maleisia",
|
||||||
"de": "Ringgit",
|
"de": "Ringgit",
|
||||||
"en": "Malaysian ringgit",
|
"en": "Malaysian ringgit",
|
||||||
@@ -4669,7 +4677,7 @@
|
|||||||
"eo": "rusa rublo",
|
"eo": "rusa rublo",
|
||||||
"es": "rublo ruso",
|
"es": "rublo ruso",
|
||||||
"et": "Venemaa rubla",
|
"et": "Venemaa rubla",
|
||||||
"eu": "Errusiar errublo",
|
"eu": "errusiar errublo",
|
||||||
"fi": "Venäjän rupla",
|
"fi": "Venäjän rupla",
|
||||||
"fr": "rouble russe",
|
"fr": "rouble russe",
|
||||||
"ga": "rúbal na Rúise",
|
"ga": "rúbal na Rúise",
|
||||||
@@ -4753,6 +4761,7 @@
|
|||||||
"fi": "Saudi-Arabian rial",
|
"fi": "Saudi-Arabian rial",
|
||||||
"fr": "riyal saoudien",
|
"fr": "riyal saoudien",
|
||||||
"ga": "riyal na hAraibe Sádaí",
|
"ga": "riyal na hAraibe Sádaí",
|
||||||
|
"gl": "riyal saudita",
|
||||||
"he": "ריאל סעודי",
|
"he": "ריאל סעודי",
|
||||||
"hr": "Saudijski rijal",
|
"hr": "Saudijski rijal",
|
||||||
"hu": "szaúdi riál",
|
"hu": "szaúdi riál",
|
||||||
@@ -5415,6 +5424,7 @@
|
|||||||
"oc": "dinar tunisian",
|
"oc": "dinar tunisian",
|
||||||
"pl": "Dinar tunezyjski",
|
"pl": "Dinar tunezyjski",
|
||||||
"pt": "dinar tunisiano",
|
"pt": "dinar tunisiano",
|
||||||
|
"ro": "dinar tunisian",
|
||||||
"ru": "тунисский динар",
|
"ru": "тунисский динар",
|
||||||
"sk": "Tuniský dinár",
|
"sk": "Tuniský dinár",
|
||||||
"sl": "tunizijski dinar",
|
"sl": "tunizijski dinar",
|
||||||
@@ -5755,7 +5765,7 @@
|
|||||||
"en": "US Dollar (Next day)"
|
"en": "US Dollar (Next day)"
|
||||||
},
|
},
|
||||||
"UYI": {
|
"UYI": {
|
||||||
"en": "Uruguay peso en Unidades Indexadas"
|
"en": "Uruguay Peso en Unidades Indexadas"
|
||||||
},
|
},
|
||||||
"UYU": {
|
"UYU": {
|
||||||
"af": "Uruguaanse Peso",
|
"af": "Uruguaanse Peso",
|
||||||
@@ -7026,6 +7036,7 @@
|
|||||||
"birr etiopia": "ETB",
|
"birr etiopia": "ETB",
|
||||||
"birr etíope": "ETB",
|
"birr etíope": "ETB",
|
||||||
"birr éthiopien": "ETB",
|
"birr éthiopien": "ETB",
|
||||||
|
"birr éthiopienne": "ETB",
|
||||||
"birr habsyah": "ETB",
|
"birr habsyah": "ETB",
|
||||||
"birr na haetóipe": "ETB",
|
"birr na haetóipe": "ETB",
|
||||||
"birre da etiópia": "ETB",
|
"birre da etiópia": "ETB",
|
||||||
@@ -7212,6 +7223,7 @@
|
|||||||
"ceatsal": "GTQ",
|
"ceatsal": "GTQ",
|
||||||
"cebelitarık sterlini": "GIP",
|
"cebelitarık sterlini": "GIP",
|
||||||
"cedi": "GHS",
|
"cedi": "GHS",
|
||||||
|
"cedi du ghana": "GHS",
|
||||||
"cedi ghana": "GHS",
|
"cedi ghana": "GHS",
|
||||||
"cedi ghanese": "GHS",
|
"cedi ghanese": "GHS",
|
||||||
"centr afrika franko": "XAF",
|
"centr afrika franko": "XAF",
|
||||||
@@ -7279,7 +7291,10 @@
|
|||||||
"chilensk peso": "CLP",
|
"chilensk peso": "CLP",
|
||||||
"chilské peso": "CLP",
|
"chilské peso": "CLP",
|
||||||
"chinese renminbi": "CNY",
|
"chinese renminbi": "CNY",
|
||||||
"chinese yuan": "CNY",
|
"chinese yuan": [
|
||||||
|
"CNY",
|
||||||
|
"CNH"
|
||||||
|
],
|
||||||
"chinesischer renminbi": "CNY",
|
"chinesischer renminbi": "CNY",
|
||||||
"ci$": "KYD",
|
"ci$": "KYD",
|
||||||
"cibuti frangı": "DJF",
|
"cibuti frangı": "DJF",
|
||||||
@@ -7289,6 +7304,7 @@
|
|||||||
"clp": "CLP",
|
"clp": "CLP",
|
||||||
"clp$": "CLP",
|
"clp$": "CLP",
|
||||||
"clps": "CLP",
|
"clps": "CLP",
|
||||||
|
"cnh": "CNH",
|
||||||
"cny": "CNY",
|
"cny": "CNY",
|
||||||
"co $": "COP",
|
"co $": "COP",
|
||||||
"co$": "COP",
|
"co$": "COP",
|
||||||
@@ -7529,7 +7545,6 @@
|
|||||||
"203"
|
"203"
|
||||||
],
|
],
|
||||||
"cирійський фунт": "SYP",
|
"cирійський фунт": "SYP",
|
||||||
"d.r.": "EGP",
|
|
||||||
"da": "DZD",
|
"da": "DZD",
|
||||||
"dalase": "GMD",
|
"dalase": "GMD",
|
||||||
"dalasi": "GMD",
|
"dalasi": "GMD",
|
||||||
@@ -8209,6 +8224,7 @@
|
|||||||
"HKD",
|
"HKD",
|
||||||
"AUD"
|
"AUD"
|
||||||
],
|
],
|
||||||
|
"dollars barbados": "BBD",
|
||||||
"dom$": "DOP",
|
"dom$": "DOP",
|
||||||
"dominga peso": "DOP",
|
"dominga peso": "DOP",
|
||||||
"dominicaanse peso": "DOP",
|
"dominicaanse peso": "DOP",
|
||||||
@@ -8423,7 +8439,6 @@
|
|||||||
"dólares canadenses": "CAD",
|
"dólares canadenses": "CAD",
|
||||||
"dólares estadounidenses": "USD",
|
"dólares estadounidenses": "USD",
|
||||||
"dólares neozelandeses": "NZD",
|
"dólares neozelandeses": "NZD",
|
||||||
"dr": "EGP",
|
|
||||||
"dram": "AMD",
|
"dram": "AMD",
|
||||||
"dram armean": "AMD",
|
"dram armean": "AMD",
|
||||||
"dram armenia": "AMD",
|
"dram armenia": "AMD",
|
||||||
@@ -8451,7 +8466,6 @@
|
|||||||
"džibučio frankas": "DJF",
|
"džibučio frankas": "DJF",
|
||||||
"džibutski franak": "DJF",
|
"džibutski franak": "DJF",
|
||||||
"džibutský frank": "DJF",
|
"džibutský frank": "DJF",
|
||||||
"d£": "EGP",
|
|
||||||
"e": "SZL",
|
"e": "SZL",
|
||||||
"e rupee": "INR",
|
"e rupee": "INR",
|
||||||
"e.m.u. 6": "XBB",
|
"e.m.u. 6": "XBB",
|
||||||
@@ -8510,6 +8524,7 @@
|
|||||||
"ermenistan dramı": "AMD",
|
"ermenistan dramı": "AMD",
|
||||||
"ern": "ERN",
|
"ern": "ERN",
|
||||||
"erreal brasildar": "BRL",
|
"erreal brasildar": "BRL",
|
||||||
|
"errublo": "RUB",
|
||||||
"errublo errusiar": "RUB",
|
"errublo errusiar": "RUB",
|
||||||
"errupia indiar": "INR",
|
"errupia indiar": "INR",
|
||||||
"errupia indonesiar": "IDR",
|
"errupia indonesiar": "IDR",
|
||||||
@@ -10235,6 +10250,7 @@
|
|||||||
"manat de turkmenistan": "TMT",
|
"manat de turkmenistan": "TMT",
|
||||||
"manat de turkmenistán": "TMT",
|
"manat de turkmenistán": "TMT",
|
||||||
"manat del turkmenistan": "TMT",
|
"manat del turkmenistan": "TMT",
|
||||||
|
"manat di azerbeidjan": "AZN",
|
||||||
"manat do azerbaijão": "AZN",
|
"manat do azerbaijão": "AZN",
|
||||||
"manat na hasarbaiseáine": "AZN",
|
"manat na hasarbaiseáine": "AZN",
|
||||||
"manat newydd tyrcmenestan": "TMT",
|
"manat newydd tyrcmenestan": "TMT",
|
||||||
@@ -11253,7 +11269,10 @@
|
|||||||
"rends": "ZAR",
|
"rends": "ZAR",
|
||||||
"renmibi": "CNY",
|
"renmibi": "CNY",
|
||||||
"renminb": "CNY",
|
"renminb": "CNY",
|
||||||
"renminbi": "CNY",
|
"renminbi": [
|
||||||
|
"CNH",
|
||||||
|
"CNY"
|
||||||
|
],
|
||||||
"renminbi cinese": "CNY",
|
"renminbi cinese": "CNY",
|
||||||
"renminbi yuan": "CNY",
|
"renminbi yuan": "CNY",
|
||||||
"renminbio": "CNY",
|
"renminbio": "CNY",
|
||||||
@@ -12770,10 +12789,14 @@
|
|||||||
"yhdistyneiden arabiemiraattien dirhami": "AED",
|
"yhdistyneiden arabiemiraattien dirhami": "AED",
|
||||||
"yhdysvaltain dollari": "USD",
|
"yhdysvaltain dollari": "USD",
|
||||||
"ytl": "TRY",
|
"ytl": "TRY",
|
||||||
"yuan": "CNY",
|
"yuan": [
|
||||||
|
"CNH",
|
||||||
|
"CNY"
|
||||||
|
],
|
||||||
"yuan chinezesc": "CNY",
|
"yuan chinezesc": "CNY",
|
||||||
"yuan chino": "CNY",
|
"yuan chino": "CNY",
|
||||||
"yuan cinese": "CNY",
|
"yuan cinese": "CNY",
|
||||||
|
"yuan offshore": "CNH",
|
||||||
"yuan renmimbi": "CNY",
|
"yuan renmimbi": "CNY",
|
||||||
"yuan renminbi": "CNY",
|
"yuan renminbi": "CNY",
|
||||||
"yuan rmb": "CNY",
|
"yuan rmb": "CNY",
|
||||||
@@ -12974,7 +12997,8 @@
|
|||||||
"£s": "SYP",
|
"£s": "SYP",
|
||||||
"¥": [
|
"¥": [
|
||||||
"JPY",
|
"JPY",
|
||||||
"CNY"
|
"CNY",
|
||||||
|
"CNH"
|
||||||
],
|
],
|
||||||
"đài tệ": "TWD",
|
"đài tệ": "TWD",
|
||||||
"đại hàn dân quốc weon": "KRW",
|
"đại hàn dân quốc weon": "KRW",
|
||||||
@@ -15068,6 +15092,7 @@
|
|||||||
"ޕާކިސްތާނީ ރުޕީ": "PKR",
|
"ޕާކިސްތާނީ ރުޕީ": "PKR",
|
||||||
"रू": "NPR",
|
"रू": "NPR",
|
||||||
"रू.": "INR",
|
"रू.": "INR",
|
||||||
|
"অস্ট্রেলীয় ডলার": "AUD",
|
||||||
"অ্যাঙ্গোলীয় কুয়াঞ্জা": "AOA",
|
"অ্যাঙ্গোলীয় কুয়াঞ্জা": "AOA",
|
||||||
"আইসল্যান্ডীয় ক্রোনা": "ISK",
|
"আইসল্যান্ডীয় ক্রোনা": "ISK",
|
||||||
"আজারবাইজানি মানাত": "AZN",
|
"আজারবাইজানি মানাত": "AZN",
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -2319,11 +2319,6 @@
|
|||||||
"symbol": "kJ/(kg K)",
|
"symbol": "kJ/(kg K)",
|
||||||
"to_si_factor": 1000.0
|
"to_si_factor": 1000.0
|
||||||
},
|
},
|
||||||
"Q108888186": {
|
|
||||||
"si_name": "Q11570",
|
|
||||||
"symbol": "eV/c²",
|
|
||||||
"to_si_factor": 1.782661921627898e-36
|
|
||||||
},
|
|
||||||
"Q108888198": {
|
"Q108888198": {
|
||||||
"si_name": "Q11570",
|
"si_name": "Q11570",
|
||||||
"symbol": "keV/c²",
|
"symbol": "keV/c²",
|
||||||
@@ -4394,6 +4389,11 @@
|
|||||||
"symbol": "m²",
|
"symbol": "m²",
|
||||||
"to_si_factor": 1.0
|
"to_si_factor": 1.0
|
||||||
},
|
},
|
||||||
|
"Q25376902": {
|
||||||
|
"si_name": null,
|
||||||
|
"symbol": "Mbp",
|
||||||
|
"to_si_factor": null
|
||||||
|
},
|
||||||
"Q25377184": {
|
"Q25377184": {
|
||||||
"si_name": "Q25377184",
|
"si_name": "Q25377184",
|
||||||
"symbol": "kg/m²",
|
"symbol": "kg/m²",
|
||||||
@@ -5344,11 +5344,6 @@
|
|||||||
"symbol": "bhp EDR",
|
"symbol": "bhp EDR",
|
||||||
"to_si_factor": 12.958174
|
"to_si_factor": 12.958174
|
||||||
},
|
},
|
||||||
"Q3984193": {
|
|
||||||
"si_name": "Q25269",
|
|
||||||
"symbol": "TeV",
|
|
||||||
"to_si_factor": 1.602176634e-07
|
|
||||||
},
|
|
||||||
"Q39978339": {
|
"Q39978339": {
|
||||||
"si_name": "Q25377184",
|
"si_name": "Q25377184",
|
||||||
"symbol": "kg/cm²",
|
"symbol": "kg/cm²",
|
||||||
|
|||||||
@@ -2,10 +2,18 @@
|
|||||||
# pylint: disable=invalid-name
|
# pylint: disable=invalid-name
|
||||||
"""360Search search engine for searxng"""
|
"""360Search search engine for searxng"""
|
||||||
|
|
||||||
|
import typing as t
|
||||||
|
|
||||||
from urllib.parse import urlencode
|
from urllib.parse import urlencode
|
||||||
from lxml import html
|
from lxml import html
|
||||||
|
|
||||||
|
from searx import logger
|
||||||
|
from searx.enginelib import EngineCache
|
||||||
from searx.utils import extract_text
|
from searx.utils import extract_text
|
||||||
|
from searx.network import get as http_get
|
||||||
|
|
||||||
|
if t.TYPE_CHECKING:
|
||||||
|
from searx.extended_types import SXNG_Response
|
||||||
|
|
||||||
# Metadata
|
# Metadata
|
||||||
about = {
|
about = {
|
||||||
@@ -26,6 +34,35 @@ time_range_dict = {'day': 'd', 'week': 'w', 'month': 'm', 'year': 'y'}
|
|||||||
|
|
||||||
# Base URL
|
# Base URL
|
||||||
base_url = "https://www.so.com"
|
base_url = "https://www.so.com"
|
||||||
|
COOKIE_CACHE_KEY = "cookie"
|
||||||
|
COOKIE_CACHE_EXPIRATION_SECONDS = 3600
|
||||||
|
|
||||||
|
CACHE: EngineCache
|
||||||
|
"""Stores cookies from 360search to avoid re-fetching them on every request."""
|
||||||
|
|
||||||
|
|
||||||
|
def setup(engine_settings: dict[str, t.Any]) -> bool:
|
||||||
|
"""Initialization of the engine.
|
||||||
|
|
||||||
|
- Instantiate a cache for this engine (:py:obj:`CACHE`).
|
||||||
|
|
||||||
|
"""
|
||||||
|
global CACHE # pylint: disable=global-statement
|
||||||
|
# table name needs to be quoted to start with digits, so "cache" has been added to avoid sqlite complaining
|
||||||
|
CACHE = EngineCache("cache" + engine_settings["name"])
|
||||||
|
return True
|
||||||
|
|
||||||
|
|
||||||
|
def get_cookie(url: str) -> str:
|
||||||
|
cookie: str | None = CACHE.get(COOKIE_CACHE_KEY)
|
||||||
|
if cookie:
|
||||||
|
return cookie
|
||||||
|
resp: SXNG_Response = http_get(url, timeout=10, allow_redirects=False)
|
||||||
|
headers = resp.headers
|
||||||
|
cookie = headers['set-cookie'].split(";")[0]
|
||||||
|
CACHE.set(key=COOKIE_CACHE_KEY, value=cookie, expire=COOKIE_CACHE_EXPIRATION_SECONDS)
|
||||||
|
|
||||||
|
return cookie
|
||||||
|
|
||||||
|
|
||||||
def request(query, params):
|
def request(query, params):
|
||||||
@@ -36,8 +73,13 @@ def request(query, params):
|
|||||||
|
|
||||||
if time_range_dict.get(params['time_range']):
|
if time_range_dict.get(params['time_range']):
|
||||||
query_params["adv_t"] = time_range_dict.get(params['time_range'])
|
query_params["adv_t"] = time_range_dict.get(params['time_range'])
|
||||||
|
|
||||||
params["url"] = f"{base_url}/s?{urlencode(query_params)}"
|
params["url"] = f"{base_url}/s?{urlencode(query_params)}"
|
||||||
|
# get token by calling the query page
|
||||||
|
logger.debug("querying url: %s", params["url"])
|
||||||
|
cookie = get_cookie(params["url"])
|
||||||
|
logger.debug("obtained cookie: %s", cookie)
|
||||||
|
params['headers'] = {'Cookie': cookie}
|
||||||
|
|
||||||
return params
|
return params
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -51,6 +51,7 @@ def request(query, params):
|
|||||||
}
|
}
|
||||||
|
|
||||||
params["url"] = f"{base_url}?{urlencode(query_params)}"
|
params["url"] = f"{base_url}?{urlencode(query_params)}"
|
||||||
|
params["headers"]["Referer"] = "https://www.bilibili.com"
|
||||||
params["cookies"] = cookie
|
params["cookies"] = cookie
|
||||||
|
|
||||||
return params
|
return params
|
||||||
|
|||||||
@@ -341,6 +341,7 @@ engines:
|
|||||||
- name: 360search
|
- name: 360search
|
||||||
engine: 360search
|
engine: 360search
|
||||||
shortcut: 360so
|
shortcut: 360so
|
||||||
|
timeout: 10.0
|
||||||
disabled: true
|
disabled: true
|
||||||
|
|
||||||
- name: 360search videos
|
- name: 360search videos
|
||||||
@@ -480,14 +481,14 @@ engines:
|
|||||||
shortcut: ask
|
shortcut: ask
|
||||||
disabled: true
|
disabled: true
|
||||||
|
|
||||||
# - name: azure
|
- name: azure
|
||||||
# engine: azure
|
engine: azure
|
||||||
# shortcut: az
|
shortcut: az
|
||||||
# categories: [it, cloud]
|
categories: [it, cloud]
|
||||||
# azure_tenant_id: "your_tenant_id"
|
# azure_tenant_id: "your_tenant_id"
|
||||||
# azure_client_id: "your_client_id"
|
# azure_client_id: "your_client_id"
|
||||||
# azure_client_secret: "your_client_secret"
|
# azure_client_secret: "your_client_secret"
|
||||||
# disabled: true
|
inactive: true
|
||||||
|
|
||||||
# tmp suspended: dh key too small
|
# tmp suspended: dh key too small
|
||||||
# - name: base
|
# - name: base
|
||||||
@@ -649,7 +650,7 @@ engines:
|
|||||||
# cf_ai_model_assistant: 'prompts_for_assistant_role'
|
# cf_ai_model_assistant: 'prompts_for_assistant_role'
|
||||||
# cf_ai_model_system: 'prompts_for_system_role'
|
# cf_ai_model_system: 'prompts_for_system_role'
|
||||||
timeout: 30
|
timeout: 30
|
||||||
disabled: true
|
inactive: true
|
||||||
|
|
||||||
- name: core.ac.uk
|
- name: core.ac.uk
|
||||||
engine: core
|
engine: core
|
||||||
@@ -783,20 +784,20 @@ engines:
|
|||||||
require_api_key: false
|
require_api_key: false
|
||||||
results: HTML
|
results: HTML
|
||||||
|
|
||||||
# - name: elasticsearch
|
- name: elasticsearch
|
||||||
# shortcut: els
|
shortcut: els
|
||||||
# engine: elasticsearch
|
engine: elasticsearch
|
||||||
# base_url: http://localhost:9200
|
# base_url: http://localhost:9200
|
||||||
# username: elastic
|
# username: elastic
|
||||||
# password: changeme
|
# password: changeme
|
||||||
# index: my-index
|
# index: my-index
|
||||||
# enable_http: true
|
# enable_http: true
|
||||||
# # available options: match, simple_query_string, term, terms, custom
|
# available options: match, simple_query_string, term, terms, custom
|
||||||
# query_type: match
|
query_type: match
|
||||||
# # if query_type is set to custom, provide your query here
|
# if query_type is set to custom, provide your query here
|
||||||
# # custom_query_json: {"query":{"match_all": {}}}
|
# custom_query_json: {"query":{"match_all": {}}}
|
||||||
# # show_metadata: false
|
# show_metadata: false
|
||||||
# disabled: true
|
inactive: true
|
||||||
|
|
||||||
- name: wikidata
|
- name: wikidata
|
||||||
engine: wikidata
|
engine: wikidata
|
||||||
@@ -874,12 +875,12 @@ engines:
|
|||||||
require_api_key: false
|
require_api_key: false
|
||||||
results: HTML
|
results: HTML
|
||||||
|
|
||||||
# - name: ebay
|
- name: ebay
|
||||||
# engine: ebay
|
engine: ebay
|
||||||
# shortcut: eb
|
shortcut: eb
|
||||||
# base_url: 'https://www.ebay.com'
|
base_url: 'https://www.ebay.com'
|
||||||
# disabled: true
|
inactive: true
|
||||||
# timeout: 5
|
timeout: 5
|
||||||
|
|
||||||
- name: 1x
|
- name: 1x
|
||||||
engine: www1x
|
engine: www1x
|
||||||
@@ -900,12 +901,16 @@ engines:
|
|||||||
- name: flickr
|
- name: flickr
|
||||||
categories: images
|
categories: images
|
||||||
shortcut: fl
|
shortcut: fl
|
||||||
|
engine: flickr_noapi
|
||||||
|
|
||||||
|
- name: flickr_api
|
||||||
# You can use the engine using the official stable API, but you need an API
|
# You can use the engine using the official stable API, but you need an API
|
||||||
# key, see: https://www.flickr.com/services/apps/create/
|
# key, see: https://www.flickr.com/services/apps/create/
|
||||||
# engine: flickr
|
engine: flickr
|
||||||
|
categories: images
|
||||||
|
shortcut: fla
|
||||||
# api_key: 'apikey' # required!
|
# api_key: 'apikey' # required!
|
||||||
# Or you can use the html non-stable engine, activated by default
|
inactive: true
|
||||||
engine: flickr_noapi
|
|
||||||
|
|
||||||
- name: free software directory
|
- name: free software directory
|
||||||
engine: mediawiki
|
engine: mediawiki
|
||||||
@@ -919,13 +924,13 @@ engines:
|
|||||||
website: https://directory.fsf.org/
|
website: https://directory.fsf.org/
|
||||||
wikidata_id: Q2470288
|
wikidata_id: Q2470288
|
||||||
|
|
||||||
# - name: freesound
|
- name: freesound
|
||||||
# engine: freesound
|
engine: freesound
|
||||||
# shortcut: fnd
|
shortcut: fnd
|
||||||
# disabled: true
|
timeout: 15.0
|
||||||
# timeout: 15.0
|
# API key required, see: https://freesound.org/docs/api/overview.html
|
||||||
# API key required, see: https://freesound.org/docs/api/overview.html
|
# api_key: MyAPIkey
|
||||||
# api_key: MyAPIkey
|
inactive: true
|
||||||
|
|
||||||
- name: frinkiac
|
- name: frinkiac
|
||||||
engine: frinkiac
|
engine: frinkiac
|
||||||
@@ -980,7 +985,7 @@ engines:
|
|||||||
- name: github code
|
- name: github code
|
||||||
engine: github_code
|
engine: github_code
|
||||||
shortcut: ghc
|
shortcut: ghc
|
||||||
disabled: true
|
inactive: true
|
||||||
ghc_auth:
|
ghc_auth:
|
||||||
# type is one of:
|
# type is one of:
|
||||||
# * none
|
# * none
|
||||||
@@ -1267,9 +1272,9 @@ engines:
|
|||||||
# https://github.com/LibreTranslate/LibreTranslate?tab=readme-ov-file#mirrors
|
# https://github.com/LibreTranslate/LibreTranslate?tab=readme-ov-file#mirrors
|
||||||
base_url:
|
base_url:
|
||||||
- https://libretranslate.com/translate
|
- https://libretranslate.com/translate
|
||||||
# api_key: abc123
|
# api_key: ''
|
||||||
shortcut: lt
|
shortcut: lt
|
||||||
disabled: true
|
inactive: true
|
||||||
|
|
||||||
- name: lingva
|
- name: lingva
|
||||||
engine: lingva
|
engine: lingva
|
||||||
@@ -1306,7 +1311,7 @@ engines:
|
|||||||
shortcut: mar
|
shortcut: mar
|
||||||
# To get an API key, please follow the instructions at
|
# To get an API key, please follow the instructions at
|
||||||
# - https://about.marginalia-search.com/article/api/
|
# - https://about.marginalia-search.com/article/api/
|
||||||
# api_key: ...
|
# api_key: ''
|
||||||
disabled: true
|
disabled: true
|
||||||
inactive: true
|
inactive: true
|
||||||
|
|
||||||
@@ -2087,19 +2092,19 @@ engines:
|
|||||||
# engine in combination with Jackett opens the possibility to query a lot of
|
# engine in combination with Jackett opens the possibility to query a lot of
|
||||||
# public and private indexers directly from SearXNG. More details at:
|
# public and private indexers directly from SearXNG. More details at:
|
||||||
# https://docs.searxng.org/dev/engines/online/torznab.html
|
# https://docs.searxng.org/dev/engines/online/torznab.html
|
||||||
#
|
- name: Torznab EZTV
|
||||||
# - name: Torznab EZTV
|
engine: torznab
|
||||||
# engine: torznab
|
shortcut: eztv
|
||||||
# shortcut: eztv
|
# base_url: http://localhost:9117/api/v2.0/indexers/eztv/results/torznab
|
||||||
# base_url: http://localhost:9117/api/v2.0/indexers/eztv/results/torznab
|
# enable_http: true # if using localhost
|
||||||
# enable_http: true # if using localhost
|
# api_key: xxxxxxxxxxxxxxx
|
||||||
# api_key: xxxxxxxxxxxxxxx
|
show_magnet_links: true
|
||||||
# show_magnet_links: true
|
show_torrent_files: false
|
||||||
# show_torrent_files: false
|
# https://github.com/Jackett/Jackett/wiki/Jackett-Categories
|
||||||
# # https://github.com/Jackett/Jackett/wiki/Jackett-Categories
|
torznab_categories: # optional
|
||||||
# torznab_categories: # optional
|
- 2000
|
||||||
# - 2000
|
- 5000
|
||||||
# - 5000
|
inactive: true
|
||||||
|
|
||||||
# tmp suspended - too slow, too many errors
|
# tmp suspended - too slow, too many errors
|
||||||
# - name: urbandictionary
|
# - name: urbandictionary
|
||||||
@@ -2147,14 +2152,15 @@ engines:
|
|||||||
|
|
||||||
- name: youtube
|
- name: youtube
|
||||||
shortcut: yt
|
shortcut: yt
|
||||||
|
engine: youtube_noapi
|
||||||
|
|
||||||
|
- name: youtube_api
|
||||||
# You can use the engine using the official stable API, but you need an API
|
# You can use the engine using the official stable API, but you need an API
|
||||||
# key See: https://console.developers.google.com/project
|
# key See: https://console.developers.google.com/project
|
||||||
#
|
engine: youtube_api
|
||||||
# engine: youtube_api
|
# api_key: '' # required!
|
||||||
# api_key: 'apikey' # required!
|
shortcut: yta
|
||||||
#
|
inactive: true
|
||||||
# Or you can use the html non-stable engine, activated by default
|
|
||||||
engine: youtube_noapi
|
|
||||||
|
|
||||||
- name: dailymotion
|
- name: dailymotion
|
||||||
engine: dailymotion
|
engine: dailymotion
|
||||||
@@ -2307,18 +2313,21 @@ engines:
|
|||||||
|
|
||||||
- name: wolframalpha
|
- name: wolframalpha
|
||||||
shortcut: wa
|
shortcut: wa
|
||||||
# You can use the engine using the official stable API, but you need an API
|
|
||||||
# key. See: https://products.wolframalpha.com/api/
|
|
||||||
#
|
|
||||||
# engine: wolframalpha_api
|
|
||||||
# api_key: ''
|
|
||||||
#
|
|
||||||
# Or you can use the html non-stable engine, activated by default
|
|
||||||
engine: wolframalpha_noapi
|
engine: wolframalpha_noapi
|
||||||
timeout: 6.0
|
timeout: 6.0
|
||||||
categories: general
|
categories: general
|
||||||
disabled: true
|
disabled: true
|
||||||
|
|
||||||
|
- name: wolframalpha_api
|
||||||
|
# You can use the engine using the official stable API, but you need an API
|
||||||
|
# key. See: https://products.wolframalpha.com/api/
|
||||||
|
engine: wolframalpha_api
|
||||||
|
# api_key: '' # required!
|
||||||
|
shortcut: waa
|
||||||
|
timeout: 6.0
|
||||||
|
categories: general
|
||||||
|
inactive: true
|
||||||
|
|
||||||
- name: dictzone
|
- name: dictzone
|
||||||
engine: dictzone
|
engine: dictzone
|
||||||
shortcut: dc
|
shortcut: dc
|
||||||
@@ -2366,14 +2375,14 @@ engines:
|
|||||||
engine: seznam
|
engine: seznam
|
||||||
disabled: true
|
disabled: true
|
||||||
|
|
||||||
# - name: deepl
|
- name: deepl
|
||||||
# engine: deepl
|
engine: deepl
|
||||||
# shortcut: dpl
|
shortcut: dpl
|
||||||
# # You can use the engine using the official stable API, but you need an API key
|
# You can use the engine using the official stable API, but you need an API key
|
||||||
# # See: https://www.deepl.com/pro-api?cta=header-pro-api
|
# See: https://www.deepl.com/pro-api?cta=header-pro-api
|
||||||
# api_key: '' # required!
|
# api_key: '' # required!
|
||||||
# timeout: 5.0
|
timeout: 5.0
|
||||||
# disabled: true
|
inactive: true
|
||||||
|
|
||||||
- name: mojeek
|
- name: mojeek
|
||||||
shortcut: mjk
|
shortcut: mjk
|
||||||
@@ -2588,7 +2597,7 @@ engines:
|
|||||||
engine: wallhaven
|
engine: wallhaven
|
||||||
# api_key: abcdefghijklmnopqrstuvwxyz
|
# api_key: abcdefghijklmnopqrstuvwxyz
|
||||||
shortcut: wh
|
shortcut: wh
|
||||||
disabled: true
|
inactive: true
|
||||||
|
|
||||||
# wikimini: online encyclopedia for children
|
# wikimini: online encyclopedia for children
|
||||||
# The fulltext and title parameter is necessary for Wikimini because
|
# The fulltext and title parameter is necessary for Wikimini because
|
||||||
|
|||||||
Reference in New Issue
Block a user