From fbbbab07ee850289042accf26459f2a34c40d7d3 Mon Sep 17 00:00:00 2001 From: Jan Heinrich Reimer Date: Mon, 20 Nov 2023 21:58:26 +0100 Subject: [PATCH] Add WARC snippets parsing CLI --- archive_query_log/cli/serps.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/archive_query_log/cli/serps.py b/archive_query_log/cli/serps.py index 17f8257c..eada4134 100644 --- a/archive_query_log/cli/serps.py +++ b/archive_query_log/cli/serps.py @@ -44,6 +44,14 @@ def warc_query(config: Config) -> None: parse_serps_warc_query(config) +@parse.command() +@pass_config +def warc_snippets(config: Config) -> None: + from archive_query_log.parsers.warc_snippets import \ + parse_serps_warc_snippets + parse_serps_warc_snippets(config) + + @serps.group() def download(): pass