def main(): logger.info( '----------------------------开始搬砖--------------------------------') users = config.getUsers() for user in users: user["headers"] = {} token = user["token"] if (token and len(token) > 0): task = threading.Thread(target=runTask, args=(user, )) task.setDaemon(True) task.start() task.join() config.checkToken() logger.info('--------全部报名结束-----------')
def main(): logger.info( '----------------------------开始搬砖--------------------------------') users = config.getUsers() for user in users: token = login.getToken(user) if (token and len(token) > 0): logger.info('--------------用户切换成功:{0},开始报名--------------'.format( user["phone"])) freebeautytry.fetchFreeBeautyTry(user) logger.info('--------------用户:{0}报名结束--------------'.format( user["phone"])) config.checkToken() logger.info('--------全部报名结束-----------')
def main(): users = config.getUsers() for user in users: checkin.checkin(user)
def __init__(self): self.users = config.getUsers()