add url list

This commit is contained in:
Valentin CZERYBA 2023-04-10 16:15:13 +02:00
parent 48e77084e8
commit 7c75116c5b

View File

@ -68,12 +68,17 @@ if __name__ == '__main__':
exit(1) exit(1)
basic = HTTPBasicAuth(args.user, password) basic = HTTPBasicAuth(args.user, password)
importWp = WPImport.WPimport(basic, args.wordpress, logger, args.parser) wordpress = args.wordpress.split(",")
importWp = WPImport.WPimport(basic, "", logger, args.parser)
if len(args.file) > 0: if len(args.file) > 0:
importWp.fromFile(args.file.split(",")) for i in wordpress:
importWp.setUrl(i)
importWp.fromFile(args.file.split(","))
exit(0) exit(0)
if len(args.directory) > 0: if len(args.directory) > 0:
importWp.fromDirectory(args.directory) for i in wordpress:
importWp.setUrl(i)
importWp.fromDirectory(args.directory)
exit(0) exit(0)
if len(args.canalblog) > 0: if len(args.canalblog) > 0:
exportWp = WPExport.WPExport("", logger, args.parser, args.directory) exportWp = WPExport.WPExport("", logger, args.parser, args.directory)