diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2018-11-19 20:57:19 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2018-11-19 20:57:19 -0800 |
commit | 65bdebea35f2ab3c9c8b0f8a8b0a9a577a36bee2 (patch) | |
tree | 145321b85a9af61f0a93112831724717faced5e0 /python/fatcat_harvest.py | |
parent | 337416e965457c07dab44864f6dabb516fdf6a03 (diff) | |
download | fatcat-65bdebea35f2ab3c9c8b0f8a8b0a9a577a36bee2.tar.gz fatcat-65bdebea35f2ab3c9c8b0f8a8b0a9a577a36bee2.zip |
better DOI registrar harvesters
Diffstat (limited to 'python/fatcat_harvest.py')
-rwxr-xr-x | python/fatcat_harvest.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/python/fatcat_harvest.py b/python/fatcat_harvest.py index dd98d22a..f1bb3416 100755 --- a/python/fatcat_harvest.py +++ b/python/fatcat_harvest.py @@ -13,7 +13,7 @@ def run_crossref(args): contact_email=args.contact_email, start_date=args.start_date, end_date=args.end_date) - worker.run_once() + worker.run() def run_datacite(args): worker = HarvestDataciteWorker( @@ -23,7 +23,7 @@ def run_datacite(args): contact_email=args.contact_email, start_date=args.start_date, end_date=args.end_date) - worker.run_once() + worker.run() def mkdate(raw): return datetime.datetime.strptime(raw, "%Y-%m-%d").date() @@ -48,6 +48,9 @@ def main(): parser.add_argument('--contact-email', default="undefined", # better? help="contact email to use in API header") + parser.add_argument('--continuous', + default=False, + help="continue harvesting indefinitely in a loop?") subparsers = parser.add_subparsers() sub_crossref = subparsers.add_parser('crossref') |