|
.oO SearXNG Developer Documentation Oo.
|
Functions | |
| bool | setup (dict[str, t.Any] engine_settings) |
| None | request (str query, "OnlineParams" params) |
| EngineResults | response ("SXNG_Response" resp) |
| domain_is_seized (ElementType dom) | |
| str|None | _text (ElementType item, str selector) |
| dict[str, t.Any] | _parse_result (ElementType item) |
| None | fetch_traits (EngineTraits engine_traits) |
Variables | |
| dict | about |
| list | categories = ["files", "books"] |
| 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 139 of file zlibrary.py.
References _text().
Referenced by response().
|
protected |
Definition at line 135 of file zlibrary.py.
Referenced by _parse_result().
| searx.engines.zlibrary.domain_is_seized | ( | ElementType | dom | ) |
Definition at line 131 of file zlibrary.py.
Referenced by fetch_traits(), and response().
| None searx.engines.zlibrary.fetch_traits | ( | EngineTraits | engine_traits | ) |
Fetch languages and other search arguments from zlibrary's search form.
Definition at line 174 of file zlibrary.py.
References domain_is_seized().
| None searx.engines.zlibrary.request | ( | str | query, |
| "OnlineParams" | params ) |
Definition at line 96 of file zlibrary.py.
| EngineResults searx.engines.zlibrary.response | ( | "SXNG_Response" | resp | ) |
Definition at line 117 of file zlibrary.py.
References _parse_result(), and domain_is_seized().
| bool searx.engines.zlibrary.setup | ( | dict[str, t.Any] | engine_settings | ) |
Check of engine's settings.
Definition at line 83 of file zlibrary.py.
| dict searx.engines.zlibrary.about |
Definition at line 52 of file zlibrary.py.
| str searx.engines.zlibrary.base_url = "https://zlibrary-global.se" |
Definition at line 63 of file zlibrary.py.
| list searx.engines.zlibrary.categories = ["files", "books"] |
Definition at line 61 of file zlibrary.py.
| searx.engines.zlibrary.i18n_book_rating = gettext("Book rating") |
Definition at line 79 of file zlibrary.py.
| searx.engines.zlibrary.i18n_file_quality = gettext("File quality") |
Definition at line 80 of file zlibrary.py.
| searx.engines.zlibrary.i18n_language = gettext("Language") |
Definition at line 78 of file zlibrary.py.
| bool searx.engines.zlibrary.paging = True |
Definition at line 62 of file zlibrary.py.
| str searx.engines.zlibrary.zlib_ext = "" |
Definition at line 73 of file zlibrary.py.
| str searx.engines.zlibrary.zlib_year_from = "" |
Definition at line 65 of file zlibrary.py.
| str searx.engines.zlibrary.zlib_year_to = "" |
Definition at line 69 of file zlibrary.py.