aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat_import.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-06-20 20:21:30 -0700
committerBryan Newbold <bnewbold@robocracy.org>2019-06-20 20:21:30 -0700
commite33445101cfa30fe0843acbd31448e6544ae54e1 (patch)
tree0e0832d0c541fb0f5a9e769f4d39c73e26d0a31f /python/fatcat_import.py
parented498a60fec55f1a2f5d10907b47971696224ec1 (diff)
downloadfatcat-e33445101cfa30fe0843acbd31448e6544ae54e1.tar.gz
fatcat-e33445101cfa30fe0843acbd31448e6544ae54e1.zip
support extids in matched importer
Diffstat (limited to 'python/fatcat_import.py')
-rwxr-xr-xpython/fatcat_import.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/python/fatcat_import.py b/python/fatcat_import.py
index d76f706f..8595d16b 100755
--- a/python/fatcat_import.py
+++ b/python/fatcat_import.py
@@ -62,6 +62,7 @@ def run_matched(args):
fmi = MatchedImporter(args.api,
edit_batch_size=args.batch_size,
editgroup_description=args.editgroup_description_override,
+ default_link_rel=args.default_link_rel,
default_mimetype=args.default_mimetype)
JsonLinePusher(fmi, args.json_file).run()
@@ -267,6 +268,9 @@ def main():
sub_matched.add_argument('--bezerk-mode',
action='store_true',
help="don't lookup existing files, just insert (clobbers; only for fast bootstrap)")
+ sub_matched.add_argument('--default-link-rel',
+ default="web",
+ help="default URL rel for matches (eg, 'publisher', 'web')")
sub_arabesque_match = subparsers.add_parser('arabesque')
sub_arabesque_match.set_defaults(