From 49c4f4a4050a76e772f6ef9bf9ca544e2d54e2ab Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Tue, 14 Jan 2020 15:26:23 -0800 Subject: arabesque2ingestrequest: ingest type flag --- python/scripts/arabesque2ingestrequest.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python/scripts/arabesque2ingestrequest.py b/python/scripts/arabesque2ingestrequest.py index 5cafdcf..fa46f10 100755 --- a/python/scripts/arabesque2ingestrequest.py +++ b/python/scripts/arabesque2ingestrequest.py @@ -27,7 +27,7 @@ def run(args): request = { 'base_url': row['final_url'], - 'ingest_type': 'pdf', + 'ingest_type': args.ingest_type, 'link_source': args.link_source, 'link_source_id': row['identifier'], 'ingest_request_source': args.ingest_request_source, @@ -50,6 +50,9 @@ def main(): parser.add_argument('--extid-type', required=True, help="extid to encode identifier as") + parser.add_argument('--ingest-type', + default="pdf", + help="ingest type (pdf, html, xml, etc)") parser.add_argument('--ingest-request-source', default="arabesque", help="to include in request") -- cgit v1.2.3