.oO SearXNG Developer Documentation Oo.
|
Functions | |
None | init (engine_settings=None) |
Dict[str, Any] | request (str query, Dict[str, Any] params) |
domain_is_seized (dom) | |
List[Dict[str, Any]] | response (httpx.Response resp) |
str|None | _text (item, str selector) |
Dict[str, Any] | _parse_result (item) |
None | fetch_traits (EngineTraits engine_traits) |
Variables | |
logging | logger .Logger |
dict | about |
list | categories = ["files"] |
bool | paging = True |
str | base_url = "https://zlibrary-global.se" |
str | zlib_year_from = "" |
str | zlib_year_to = "" |
str | zlib_ext = "" |
i18n_language = gettext("Language") | |
i18n_book_rating = gettext("Book rating") | |
i18n_file_quality = gettext("File quality") | |
`Z-Library`_ (abbreviated as z-lib, formerly BookFinder) is a shadow library project for file-sharing access to scholarly journal articles, academic texts and general-interest books. It began as a mirror of Library Genesis, from which most of its books originate. .. _Z-Library: https://zlibrary-global.se/ Configuration ============= The engine has the following additional settings: - :py:obj:`zlib_year_from` - :py:obj:`zlib_year_to` - :py:obj:`zlib_ext` With this options a SearXNG maintainer is able to configure **additional** engines for specific searches in Z-Library. For example a engine to search only for EPUB from 2010 to 2020. .. code:: yaml - name: z-library 2010s epub engine: zlibrary shortcut: zlib2010s zlib_year_from: '2010' zlib_year_to: '2020' zlib_ext: 'EPUB' Implementations ===============
|
protected |
Definition at line 142 of file zlibrary.py.
References searx.engines.zlibrary._text().
Referenced by searx.engines.zlibrary.response().
|
protected |
Definition at line 133 of file zlibrary.py.
Referenced by searx.engines.zlibrary._parse_result().
searx.engines.zlibrary.domain_is_seized | ( | dom | ) |
Definition at line 116 of file zlibrary.py.
Referenced by searx.engines.zlibrary.fetch_traits(), and searx.engines.zlibrary.response().
None searx.engines.zlibrary.fetch_traits | ( | EngineTraits | engine_traits | ) |
Fetch languages and other search arguments from zlibrary's search form.
Definition at line 178 of file zlibrary.py.
References searx.engines.zlibrary.domain_is_seized().
None searx.engines.zlibrary.init | ( | engine_settings = None | ) |
Check of engine's settings.
Definition at line 82 of file zlibrary.py.
Dict[str, Any] searx.engines.zlibrary.request | ( | str | query, |
Dict[str, Any] | params ) |
Definition at line 94 of file zlibrary.py.
List[Dict[str, Any]] searx.engines.zlibrary.response | ( | httpx.Response | resp | ) |
Definition at line 120 of file zlibrary.py.
References searx.engines.zlibrary._parse_result(), and searx.engines.zlibrary.domain_is_seized().
dict searx.engines.zlibrary.about |
Definition at line 55 of file zlibrary.py.
str searx.engines.zlibrary.base_url = "https://zlibrary-global.se" |
Definition at line 66 of file zlibrary.py.
list searx.engines.zlibrary.categories = ["files"] |
Definition at line 64 of file zlibrary.py.
searx.engines.zlibrary.i18n_book_rating = gettext("Book rating") |
Definition at line 138 of file zlibrary.py.
searx.engines.zlibrary.i18n_file_quality = gettext("File quality") |
Definition at line 139 of file zlibrary.py.
searx.engines.zlibrary.i18n_language = gettext("Language") |
Definition at line 137 of file zlibrary.py.
logging searx.engines.zlibrary.logger .Logger |
Definition at line 52 of file zlibrary.py.
bool searx.engines.zlibrary.paging = True |
Definition at line 65 of file zlibrary.py.
str searx.engines.zlibrary.zlib_ext = "" |
Definition at line 76 of file zlibrary.py.
str searx.engines.zlibrary.zlib_year_from = "" |
Definition at line 68 of file zlibrary.py.
str searx.engines.zlibrary.zlib_year_to = "" |
Definition at line 72 of file zlibrary.py.