add url list
This commit is contained in:
parent
48e77084e8
commit
7c75116c5b
@ -68,12 +68,17 @@ if __name__ == '__main__':
|
||||
exit(1)
|
||||
|
||||
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:
|
||||
importWp.fromFile(args.file.split(","))
|
||||
for i in wordpress:
|
||||
importWp.setUrl(i)
|
||||
importWp.fromFile(args.file.split(","))
|
||||
exit(0)
|
||||
if len(args.directory) > 0:
|
||||
importWp.fromDirectory(args.directory)
|
||||
for i in wordpress:
|
||||
importWp.setUrl(i)
|
||||
importWp.fromDirectory(args.directory)
|
||||
exit(0)
|
||||
if len(args.canalblog) > 0:
|
||||
exportWp = WPExport.WPExport("", logger, args.parser, args.directory)
|
||||
|
Loading…
x
Reference in New Issue
Block a user