mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-27 21:24:16 -04:00
use KEY, NAME, and PARSER to define parsers instead of hardcoding in init
This commit is contained in:
parent
36f0646501
commit
8ce93ff787
13 changed files with 88 additions and 28 deletions
archivebox/parsers
|
@ -37,3 +37,7 @@ def parse_netscape_html_export(html_file: IO[str], **_kwargs) -> Iterable[Link]:
|
|||
sources=[html_file.name],
|
||||
)
|
||||
|
||||
|
||||
KEY = 'netscape_html'
|
||||
NAME = 'Netscape HTML'
|
||||
PARSER = parse_netscape_html_export
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue