def __init__(self, options): self.home = os.path.join(os.getenv('HOME'),'.ploufseo') if not os.path.exists(self.home): os.mkdir(self.home) self.options = options self.filters = [] self.headers = ['URL'] self.output = [] self.widgets = ['Progress: ', Bar(), Percentage(), ' ', ETA()] if self.options.status_code: self.status = StatusCheck(self.options) if self.options.xpath_expression: self.xpath = XpathCheck(self.options) if self.options.checksum: self.checksum = CheckSum(self.options)