|
.oO SearXNG Developer Documentation Oo.
|
Public Member Functions | |
| __init__ (self) | |
| None | handle_starttag (self, str tag, list[tuple[str, str|None]] attrs) |
| None | handle_endtag (self, str tag) |
| is_valid_tag (self) | |
| None | handle_data (self, str data) |
| None | handle_charref (self, str name) |
| None | handle_entityref (self, str name) |
| get_text (self) | |
| None | error (self, str message) |
Public Attributes | |
| list | result = [] |
| list | tags = [] |
| searx.utils.HTMLTextExtractor.__init__ | ( | self | ) |
| None searx.utils.HTMLTextExtractor.error | ( | self, | |
| str | message ) |
| searx.utils.HTMLTextExtractor.get_text | ( | self | ) |
| None searx.utils.HTMLTextExtractor.handle_charref | ( | self, | |
| str | name ) |
Definition at line 121 of file utils.py.
References is_valid_tag(), and result.
| None searx.utils.HTMLTextExtractor.handle_data | ( | self, | |
| str | data ) |
Definition at line 116 of file utils.py.
References is_valid_tag(), and result.
| None searx.utils.HTMLTextExtractor.handle_endtag | ( | self, | |
| str | tag ) |
Definition at line 103 of file utils.py.
References result, searx.result_types.paper.Paper.tags, and tags.
| None searx.utils.HTMLTextExtractor.handle_entityref | ( | self, | |
| str | name ) |
Definition at line 130 of file utils.py.
References is_valid_tag(), and result.
| None searx.utils.HTMLTextExtractor.handle_starttag | ( | self, | |
| str | tag, | ||
| list[tuple[str, str | None]] | attrs ) |
Definition at line 98 of file utils.py.
References result, searx.result_types.paper.Paper.tags, and tags.
| searx.utils.HTMLTextExtractor.is_valid_tag | ( | self | ) |
Definition at line 113 of file utils.py.
References searx.result_types.paper.Paper.tags, and tags.
Referenced by handle_charref(), handle_data(), and handle_entityref().
| searx.utils.HTMLTextExtractor.result = [] |
Definition at line 95 of file utils.py.
Referenced by get_text(), handle_charref(), handle_data(), handle_endtag(), handle_entityref(), and handle_starttag().
| list searx.utils.HTMLTextExtractor.tags = [] |
Definition at line 96 of file utils.py.
Referenced by handle_endtag(), handle_starttag(), and is_valid_tag().