def job_taobao(self): for v in self.jobs['taobao']['account']: taobao = Taobao(v['username'], v['password']) if taobao.login(): taobao.checkin()