diff options
-rwxr-xr-x | python/scripts/arabesque2ingestrequest.py | 5 |
1 files changed, 4 insertions, 1 deletions
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") |