Example #1
0
 def writeindexhtm(self):
     text = Scraper.getIndexhtm()
     if not os.path.isfile(self.path() + 'index.htm'):
         with open(self.path() + 'index.htm', 'w') as f:
             f.write(Patcher.patchindexhtm(text))
     else:
         print 'index.htm already saved'