Пример #1
0
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('--------全部报名结束-----------')
Пример #2
0
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('--------全部报名结束-----------')
Пример #3
0
def main():
    users = config.getUsers()
    for user in users:
        checkin.checkin(user)
Пример #4
0
 def __init__(self):
     self.users = config.getUsers()