.oO SearXNG Developer Documentation Oo.
|
Functions | |
init (_) | |
request (query, params) | |
response (resp) | |
parse_news (data) | |
parse_images (data) | |
parse_videos (data) | |
Variables | |
dict | about |
bool | paging = True |
bool | time_range_support = True |
int | results_per_page = 10 |
list | categories = [] |
ChinasoCategoryType = typing.Literal['news', 'videos', 'images'] | |
str | chinaso_category = 'news' |
ChinasoNewsSourceType = typing.Literal['CENTRAL', 'LOCAL', 'BUSINESS', 'EPAPER', 'all'] | |
ChinasoNewsSourceType | chinaso_news_source = 'all' |
dict | time_range_dict = {'day': '24h', 'week': '1w', 'month': '1m', 'year': '1y'} |
str | base_url = "https://www.chinaso.com" |
ChinaSo_, a search engine for the chinese language area. .. attention:: ChinaSo engine does not return real URL, the links from these search engines violate the privacy of the users!! We try to find a solution for this problem, please follow `issue #4694`_. As long as the problem has not been resolved, these engines are not active in a standard setup (``inactive: true``). .. _ChinaSo: https://www.chinaso.com/ .. _issue #4694: https://github.com/searxng/searxng/issues/4694 Configuration ============= The engine has the following additional settings: - :py:obj:`chinaso_category` (:py:obj:`ChinasoCategoryType`) - :py:obj:`chinaso_news_source` (:py:obj:`ChinasoNewsSourceType`) In the example below, all three ChinaSO engines are using the :ref:`network <engine network>` from the ``chinaso news`` engine. .. code:: yaml - name: chinaso news engine: chinaso shortcut: chinaso categories: [news] chinaso_category: news chinaso_news_source: all - name: chinaso images engine: chinaso network: chinaso news shortcut: chinasoi categories: [images] chinaso_category: images - name: chinaso videos engine: chinaso network: chinaso news shortcut: chinasov categories: [videos] chinaso_category: videos Implementations ===============
searx.engines.chinaso.init | ( | _ | ) |
Definition at line 109 of file chinaso.py.
searx.engines.chinaso.parse_images | ( | data | ) |
Definition at line 182 of file chinaso.py.
searx.engines.chinaso.parse_news | ( | data | ) |
Definition at line 158 of file chinaso.py.
searx.engines.chinaso.parse_videos | ( | data | ) |
Definition at line 201 of file chinaso.py.
searx.engines.chinaso.request | ( | query, | |
params ) |
Definition at line 116 of file chinaso.py.
searx.engines.chinaso.response | ( | resp | ) |
Definition at line 147 of file chinaso.py.
dict searx.engines.chinaso.about |
Definition at line 65 of file chinaso.py.
str searx.engines.chinaso.base_url = "https://www.chinaso.com" |
Definition at line 106 of file chinaso.py.
list searx.engines.chinaso.categories = [] |
Definition at line 77 of file chinaso.py.
str searx.engines.chinaso.chinaso_category = 'news' |
Definition at line 89 of file chinaso.py.
ChinasoNewsSourceType searx.engines.chinaso.chinaso_news_source = 'all' |
Definition at line 101 of file chinaso.py.
searx.engines.chinaso.ChinasoCategoryType = typing.Literal['news', 'videos', 'images'] |
Definition at line 79 of file chinaso.py.
searx.engines.chinaso.ChinasoNewsSourceType = typing.Literal['CENTRAL', 'LOCAL', 'BUSINESS', 'EPAPER', 'all'] |
Definition at line 92 of file chinaso.py.
bool searx.engines.chinaso.paging = True |
Definition at line 74 of file chinaso.py.
int searx.engines.chinaso.results_per_page = 10 |
Definition at line 76 of file chinaso.py.
dict searx.engines.chinaso.time_range_dict = {'day': '24h', 'week': '1w', 'month': '1m', 'year': '1y'} |
Definition at line 104 of file chinaso.py.
bool searx.engines.chinaso.time_range_support = True |
Definition at line 75 of file chinaso.py.