.oO SearXNG Developer Documentation Oo.
|
Classes | |
class | SXNGPlugin |
Functions | |
bool|str | filter_url_field ("Result|LegacyResult" result, str field_name, str url_src) |
extract_doi (url) | |
str | get_doi_resolver () |
Variables | |
list | ahmia_blacklist = [] |
regex = re.compile(r'10\.\d{4,9}/[^\s]+') | |
searx.plugins.oa_doi_rewrite.extract_doi | ( | url | ) |
Definition at line 74 of file oa_doi_rewrite.py.
Referenced by filter_url_field().
bool | str searx.plugins.oa_doi_rewrite.filter_url_field | ( | "Result|LegacyResult" | result, |
str | field_name, | ||
str | url_src ) |
Returns bool ``True`` to use URL unchanged (``False`` to ignore URL). If URL should be modified, the returned string is the new URL to use.
Definition at line 26 of file oa_doi_rewrite.py.
References extract_doi(), and get_doi_resolver().
str searx.plugins.oa_doi_rewrite.get_doi_resolver | ( | ) |
Definition at line 85 of file oa_doi_rewrite.py.
References searx.get_setting().
Referenced by filter_url_field().
list searx.plugins.oa_doi_rewrite.ahmia_blacklist = [] |
Definition at line 23 of file oa_doi_rewrite.py.
searx.plugins.oa_doi_rewrite.regex = re.compile(r'10\.\d{4,9}/[^\s]+') |
Definition at line 71 of file oa_doi_rewrite.py.