Example #1
0
 def apache_error_log_file(self):
     return var_dir() + "/crawl-apache_error_log.log"
Example #2
0
 def save_stats(self):
     if not os.path.exists(var_dir()):
         os.makedirs(var_dir())
     file(self.stats_file()+".tmp", "w").write(pprint.pformat(self.stats) + "\n")
     os.rename(self.stats_file()+".tmp", self.stats_file())
Example #3
0
 def web_log_file(self):
     return var_dir() + "/crawl-web.log"
Example #4
0
 def report_file(self):
     return var_dir() + "/crawl.report"
Example #5
0
 def stats_file(self):
     return var_dir() + "/crawl.stats"
Example #6
0
 def save_stats(self):
     if not os.path.exists(var_dir()):
         os.makedirs(var_dir())
     file(self.stats_file()+".tmp", "w").write(pprint.pformat(self.stats) + "\n")
     os.rename(self.stats_file()+".tmp", self.stats_file())
Example #7
0
 def stats_file(self):
     return var_dir() + "/crawl.stats"