| 11 | |
| 12 | class Output: |
| 13 | def __init__(self): |
| 14 | self.nowTime = time.strftime("%Y%m%d%H%M%S",time.localtime()) |
| 15 | Webinfo.result = Webinfo.result + Urlerror.result |
| 16 | self.filename_json = self.nowTime + '.json' |
| 17 | self.filename_xls = self.nowTime + '.xlsx' |
| 18 | self.path_json = os.path.join(path.output,self.filename_json) |
| 19 | self.path_xls = os.path.join(path.output,self.filename_xls) |
| 20 | if Save.format == 'json' and Webinfo.result: |
| 21 | self.outJson() |
| 22 | if Save.format == 'xlsx' and Webinfo.result: |
| 23 | self.outXls() |
| 24 | |
| 25 | |
| 26 | def outJson(self): |