Exemplo n.º 1
0
 def __call__(self):
     self.argparser()
     conf=Confdir(self.args.confdir)
     Database.load(conf)
     m=Medium(self.args.url)
     m.download(self.args.destination, conf, self.args.force)
     Database.close()
Exemplo n.º 2
0
 def __call__(self):
     self.argparser()
     conf=Confdir(self.args.confdir)
     Database.load(conf)
     with open(self.args.file) as f:
         l=["http://%s"%x for x in f.read().split("http://") if x != ""]
     for url in l:
         m=Medium(url)
         m.download(self.args.destination, conf, self.args.force)
     Database.close()