From a682a9c478ce71becbb08c7ee14fbf0d7840243b Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Tue, 18 Aug 2020 08:27:47 -0400 Subject: [PATCH] make all parsers accept arbitrary meta kwargs --- archivebox/parsers/generic_json.py | 2 +- archivebox/parsers/generic_rss.py | 2 +- archivebox/parsers/generic_txt.py | 2 +- archivebox/parsers/medium_rss.py | 2 +- archivebox/parsers/netscape_html.py | 2 +- archivebox/parsers/pinboard_rss.py | 2 +- archivebox/parsers/pocket_html.py | 2 +- archivebox/parsers/shaarli_rss.py | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/archivebox/parsers/generic_json.py b/archivebox/parsers/generic_json.py index 8b20e6f4..e6ed6772 100644 --- a/archivebox/parsers/generic_json.py +++ b/archivebox/parsers/generic_json.py @@ -13,7 +13,7 @@ from ..util import ( @enforce_types -def parse_generic_json_export(json_file: IO[str]) -> Iterable[Link]: +def parse_generic_json_export(json_file: IO[str], **_kwargs) -> Iterable[Link]: """Parse JSON-format bookmarks export files (produced by pinboard.in/export/, or wallabag)""" json_file.seek(0) diff --git a/archivebox/parsers/generic_rss.py b/archivebox/parsers/generic_rss.py index 3a62bb88..28318444 100644 --- a/archivebox/parsers/generic_rss.py +++ b/archivebox/parsers/generic_rss.py @@ -12,7 +12,7 @@ from ..util import ( ) @enforce_types -def parse_generic_rss_export(rss_file: IO[str]) -> Iterable[Link]: +def parse_generic_rss_export(rss_file: IO[str], **_kwargs) -> Iterable[Link]: """Parse RSS XML-format files into links""" rss_file.seek(0) diff --git a/archivebox/parsers/generic_txt.py b/archivebox/parsers/generic_txt.py index dd0fe7f5..e296ec7e 100644 --- a/archivebox/parsers/generic_txt.py +++ b/archivebox/parsers/generic_txt.py @@ -16,7 +16,7 @@ from ..util import ( @enforce_types -def parse_generic_txt_export(text_file: IO[str]) -> Iterable[Link]: +def parse_generic_txt_export(text_file: IO[str], **_kwargs) -> Iterable[Link]: """Parse raw links from each line in a text file""" text_file.seek(0) diff --git a/archivebox/parsers/medium_rss.py b/archivebox/parsers/medium_rss.py index 11379677..8f14f773 100644 --- a/archivebox/parsers/medium_rss.py +++ b/archivebox/parsers/medium_rss.py @@ -14,7 +14,7 @@ from ..util import ( @enforce_types -def parse_medium_rss_export(rss_file: IO[str]) -> Iterable[Link]: +def parse_medium_rss_export(rss_file: IO[str], **_kwargs) -> Iterable[Link]: """Parse Medium RSS feed files into links""" rss_file.seek(0) diff --git a/archivebox/parsers/netscape_html.py b/archivebox/parsers/netscape_html.py index 894e2318..a063023c 100644 --- a/archivebox/parsers/netscape_html.py +++ b/archivebox/parsers/netscape_html.py @@ -14,7 +14,7 @@ from ..util import ( @enforce_types -def parse_netscape_html_export(html_file: IO[str]) -> Iterable[Link]: +def parse_netscape_html_export(html_file: IO[str], **_kwargs) -> Iterable[Link]: """Parse netscape-format bookmarks export files (produced by all browsers)""" html_file.seek(0) diff --git a/archivebox/parsers/pinboard_rss.py b/archivebox/parsers/pinboard_rss.py index eb21c7ef..98ff14a3 100644 --- a/archivebox/parsers/pinboard_rss.py +++ b/archivebox/parsers/pinboard_rss.py @@ -14,7 +14,7 @@ from ..util import ( @enforce_types -def parse_pinboard_rss_export(rss_file: IO[str]) -> Iterable[Link]: +def parse_pinboard_rss_export(rss_file: IO[str], **_kwargs) -> Iterable[Link]: """Parse Pinboard RSS feed files into links""" rss_file.seek(0) diff --git a/archivebox/parsers/pocket_html.py b/archivebox/parsers/pocket_html.py index 3eae58c4..653f21b8 100644 --- a/archivebox/parsers/pocket_html.py +++ b/archivebox/parsers/pocket_html.py @@ -14,7 +14,7 @@ from ..util import ( @enforce_types -def parse_pocket_html_export(html_file: IO[str]) -> Iterable[Link]: +def parse_pocket_html_export(html_file: IO[str], **_kwargs) -> Iterable[Link]: """Parse Pocket-format bookmarks export files (produced by getpocket.com/export/)""" html_file.seek(0) diff --git a/archivebox/parsers/shaarli_rss.py b/archivebox/parsers/shaarli_rss.py index ae5bfa96..4a925f46 100644 --- a/archivebox/parsers/shaarli_rss.py +++ b/archivebox/parsers/shaarli_rss.py @@ -13,7 +13,7 @@ from ..util import ( @enforce_types -def parse_shaarli_rss_export(rss_file: IO[str]) -> Iterable[Link]: +def parse_shaarli_rss_export(rss_file: IO[str], **_kwargs) -> Iterable[Link]: """Parse Shaarli-specific RSS XML-format files into links""" rss_file.seek(0)