Etherdump is useful as a means of dumping the contents of etherpad to files, as a way of opening up the contents of the service to other services / methods / uses / tools / situations. (Files also of course allow for archival tools / methods)
Etherdump is useful as a means of dumping the contents of etherpad to files, as a way of opening up the contents of the service to other services / methods / uses / tools / situations. (Files also of course allow for archival tools / methods)
p.add_argument("--zerorevs",default=False,action="store_true",help="include pads with zero revisions, default: False (i.e. pads with no revisions are skipped)")
p.add_argument("--pub",default=".",help="folder to store files for public pads, default: pub")
p.add_argument("--pub",default="p",help="folder to store files for public pads, default: pub")
p.add_argument("--group",default="g",help="folder to store files for group pads, default: g")
p.add_argument("--skip",default=None,type=int,help="skip this many items, default: None")
p.add_argument("--meta",default=False,action="store_true",help="download meta to PADID.meta.json, default: False")
@ -34,7 +34,7 @@ def main (args):
p.add_argument("--html",default=False,action="store_true",help="download html to PADID.html, default: False")
p.add_argument("--dhtml",default=False,action="store_true",help="download dhtml to PADID.dhtml, default: False")
p.add_argument("--all",default=False,action="store_true",help="download all files (meta, text, html, dhtml), default: False")
p.add_argument("--folder",default=False,action="store_true",help="dump files to folder named PADID (meta, text, html, dhtml), default: False")
p.add_argument("--folder",default=False,action="store_true",help="dump files in a folder named PADID (meta, text, html, dhtml), default: False")
p.add_argument("--output",default=False,action="store_true",help="output changed padids on stdout")
p.add_argument("--force",default=False,action="store_true",help="reload, even if revisions count matches previous")
args=p.parse_args(args)
@ -66,10 +66,6 @@ storing enough information to reconstruct (or understand an error occurred)
data['padID']=padid.encode("utf-8")
p=padpath(padid,args.pub,args.group)
ifargs.folder:
try:
os.makedirs(p)
exceptOSError:
pass
p=os.path.join(p,padid.encode("utf-8"))
metapath=p+".meta.json"
@ -77,13 +73,14 @@ storing enough information to reconstruct (or understand an error occurred)