mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-09 12:21:57 -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
|
@ -111,3 +111,8 @@ def parse_pocket_api_export(input_buffer: IO[str], **_kwargs) -> Iterable[Link]:
|
|||
yield link_from_article(article, sources=[line])
|
||||
|
||||
write_since(username, api.last_since)
|
||||
|
||||
|
||||
KEY = 'pocket_api'
|
||||
NAME = 'Pocket API'
|
||||
PARSER = parse_pocket_api_export
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue