add '-j/--dump-json' option

this outputs the extractor-results in JSON format rather then
downloading files
This commit is contained in:
Mike Fährmann
2017-04-12 18:43:41 +02:00
parent c9a5650cf8
commit b43cd88101
3 changed files with 40 additions and 1 deletions

View File

@@ -83,6 +83,8 @@ def main():
jobtype.maxdepth = args.list_urls
elif args.list_keywords:
jobtype = job.KeywordJob
elif args.list_data:
jobtype = job.DataJob
else:
jobtype = job.DownloadJob