.oO SearXNG Developer Documentation Oo.
|
Functions | |
_req_args (**kwargs) | |
tuple[None|bytes, None|str] | allesedv (str domain, int timeout) |
tuple[None|bytes, None|str] | duckduckgo (str domain, int timeout) |
tuple[None|bytes, None|str] | google (str domain, int timeout) |
tuple[None|bytes, None|str] | yandex (str domain, int timeout) |
Variables | |
list | __all__ = ["DEFAULT_RESOLVER_MAP", "allesedv", "duckduckgo", "google", "yandex"] |
dict | DEFAULT_RESOLVER_MAP [str, Callable] |
logger = logger.getChild('favicons.resolvers') | |
Implementations of the favicon *resolvers* that are available in the favicon proxy by default. A *resolver* is a function that obtains the favicon from an external source. The *resolver* function receives two arguments (``domain, timeout``) and returns a tuple ``(data, mime)``.
|
protected |
Definition at line 21 of file resolvers.py.
Referenced by searx.favicons.resolvers.allesedv(), searx.favicons.resolvers.duckduckgo(), searx.favicons.resolvers.google(), and searx.favicons.resolvers.yandex().
tuple[None | bytes, None | str] searx.favicons.resolvers.allesedv | ( | str | domain, |
int | timeout ) |
Favicon Resolver from allesedv.com / https://favicon.allesedv.com/
Definition at line 28 of file resolvers.py.
References searx.favicons.resolvers._req_args().
tuple[None | bytes, None | str] searx.favicons.resolvers.duckduckgo | ( | str | domain, |
int | timeout ) |
Favicon Resolver from duckduckgo.com / https://blog.jim-nielsen.com/2021/displaying-favicons-for-any-domain/
Definition at line 44 of file resolvers.py.
References searx.favicons.resolvers._req_args().
tuple[None | bytes, None | str] searx.favicons.resolvers.google | ( | str | domain, |
int | timeout ) |
Favicon Resolver from google.com
Definition at line 59 of file resolvers.py.
References searx.favicons.resolvers._req_args().
tuple[None | bytes, None | str] searx.favicons.resolvers.yandex | ( | str | domain, |
int | timeout ) |
Favicon Resolver from yandex.com
Definition at line 80 of file resolvers.py.
References searx.favicons.resolvers._req_args().
|
private |
Definition at line 11 of file resolvers.py.
dict searx.favicons.resolvers.DEFAULT_RESOLVER_MAP [str, Callable] |
Definition at line 17 of file resolvers.py.
searx.favicons.resolvers.logger = logger.getChild('favicons.resolvers') |
Definition at line 18 of file resolvers.py.