use KEY, NAME, and PARSER to define parsers instead of hardcoding in init

This commit is contained in:
Nick Sweeting 2021-03-31 01:05:49 -04:00
parent 36f0646501
commit 8ce93ff787
13 changed files with 88 additions and 28 deletions

View file

@ -51,3 +51,8 @@ def parse_generic_html_export(html_file: IO[str], root_url: Optional[str]=None,
tags=None,
sources=[html_file.name],
)
KEY = 'html'
NAME = 'Generic HTML'
PARSER = parse_generic_html_export