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