lly5566 发表于 2021-11-20 20:26

青骄第二课堂自动切换账号一键完成刷课、期末考试、满分知识竞赛

本帖最后由 lly5566 于 2021-11-29 23:50 编辑

已失效。。。。。。。。

lin2509 发表于 2021-11-21 15:31

# 高一级
def Start1(reqtoken, sid):
    print(taskBigNum)
    print("payload已过期!")
    return
    print(
      "-----------------------------------------------------------" + sid + "-----------------------------------------------------------")
    payload = "{\"courseId\":\"837\",\"examCommitReqDataList\":[{\"examId\":1,\"answer\":2},{\"examId\":2," \
            "\"answer\":\"0,2\"}],\"exam\":\"course\",\"reqtoken\":\"" + reqtoken + "\"} "
    Compelete_Task(payload, sid)
    payload = "{\"courseId\":\"838\",\"examCommitReqDataList\":[{\"examId\":1,\"answer\":\"0,1,2\"},{\"examId\":2," \
            "\"answer\":\"0,2\"}],\"exam\":\"course\",\"reqtoken\":\"" + reqtoken + "\"} "
    Compelete_Task(payload, sid)
    payload = "{\"courseId\":\"782\",\"examCommitReqDataList\":[{\"examId\":1,\"answer\":0},{\"examId\":2," \
            "\"answer\":0},{\"examId\":3,\"answer\":2},{\"examId\":4,\"answer\":1},{\"examId\":5,\"answer\":0}]," \
            "\"exam\":\"course\",\"reqtoken\":\"" + reqtoken + "\"} "
    Compelete_Task(payload, sid)
    payload = "{\"courseId\":\"779\",\"examCommitReqDataList\":[{\"examId\":1,\"answer\":2},{\"examId\":2," \
            "\"answer\":1},{\"examId\":3,\"answer\":1},{\"examId\":4,\"answer\":3},{\"examId\":5,\"answer\":0}]," \
            "\"exam\":\"course\",\"reqtoken\":\"" + reqtoken + "\"} "
    Compelete_Task(payload, sid)
    Compelete_Final_Task(reqtoken, sid)
    # Compelete_Contest_Task(reqtoken, sid)
    print("\n")


# 高二级
def Start(reqtoken, sid):
    print(
      "-----------------------------------------------------------" + sid + "-----------------------------------------------------------")
    payload ="{\"courseId\":\"1113\",\"examCommitReqDataList\":[{\"examId\":1,\"answer\":\"0,1,3\"},{\"examId\":2," \
            "\"answer\":\"0,1,3\"}],\"reqtoken\":\"" +reqtoken + "\"}"
    Compelete_Task(payload, sid)

    payload = "{\"courseId\":\"1088\",\"examCommitReqDataList\":[{\"examId\":1,\"answer\":1},{\"examId\":2,"\
            "\"answer\":2}],\"reqtoken\":\"" + reqtoken + "\"}"
    Compelete_Task(payload, sid)

    '''
    payload = "{\"courseId\":\"835\",\"examCommitReqDataList\":[{\"examId\":1,\"answer\":\"1,2\"},{\"examId\":2," \
            "\"answer\":\"0,2,3\"}],\"exam\":\"course\",\"reqtoken\":\"" + reqtoken + "\"} "
    Compelete_Task(payload, sid)
    payload = "{\"courseId\":\"836\",\"examCommitReqDataList\":[{\"examId\":1,\"answer\":1},{\"examId\":2," \
            "\"answer\":2}],\"exam\":\"course\",\"reqtoken\":\"" + reqtoken + "\"} "
    Compelete_Task(payload, sid)
    '''

    Compelete_Final_Task(reqtoken, sid)
    Compelete_Contest_Task(reqtoken, sid)
    print("\n")



# 五年级
def Start3(reqtoken, sid):
    print("payload已过期!")
    return
    print(
      "-----------------------------------------------------------" + sid + "-----------------------------------------------------------")
    payload = "{\"courseId\":\"848\",\"examCommitReqDataList\":[{\"examId\":1,\"answer\":\"0,1,3\"},{\"examId\":2," \
            "\"answer\":\"0,1,2,4\"}],\"exam\":\"course\",\"reqtoken\":\"" + reqtoken + "\"} "
    Compelete_Task(payload, sid)
    payload = "{\"courseId\":\"829\",\"examCommitReqDataList\":[{\"examId\":1,\"answer\":0},{\"examId\":2," \
            "\"answer\":\"0,1,3\"},{\"examId\":3,\"answer\":\"0,1,2\"}],\"exam\":\"course\"," \
            "\"reqtoken\":\"" + reqtoken + "\"} "
    Compelete_Task(payload, sid)
    payload = "{\"courseId\":\"825\",\"examCommitReqDataList\":[{\"examId\":1,\"answer\":0},{\"examId\":2," \
            "\"answer\":2},{\"examId\":3,\"answer\":2},{\"examId\":4,\"answer\":3},{\"examId\":5,\"answer\":\"0,1," \
            "2,3\"}],\"exam\":\"course\",\"reqtoken\":\"" + reqtoken + "\"} "
    Compelete_Task(payload, sid)
    payload = "{\"courseId\":\"826\",\"examCommitReqDataList\":[{\"examId\":1,\"answer\":2},{\"examId\":2," \
            "\"answer\":3},{\"examId\":3,\"answer\":1},{\"examId\":4,\"answer\":1},{\"examId\":5,\"answer\":\"0," \
            "2\"}],\"exam\":\"course\",\"reqtoken\":\"" + reqtoken + "\"} "
    Compelete_Task(payload, sid)
    payload = "{\"courseId\":\"773\",\"examCommitReqDataList\":[{\"examId\":1,\"answer\":2},{\"examId\":2," \
            "\"answer\":2},{\"examId\":3,\"answer\":0},{\"examId\":4,\"answer\":2},{\"examId\":5,\"answer\":3}]," \
            "\"exam\":\"course\",\"reqtoken\":\"" + reqtoken + "\"} "
    Compelete_Task(payload, sid)
    payload = "{\"courseId\":\"847\",\"examCommitReqDataList\":[{\"examId\":1,\"answer\":\"2,3\"},{\"examId\":2," \
            "\"answer\":\"0,1,3\"},{\"examId\":3,\"answer\":\"0,1,2\"}],\"exam\":\"course\"," \
            "\"reqtoken\":\"" + reqtoken + "\"} "
    Compelete_Task(payload, sid)
    Compelete_Final_Task(reqtoken, sid)
    Compelete_Contest_Task(reqtoken, sid)
    print("\n")
   
# 初三
def Start9(reqtoken, sid):
    print("payload已过期!")
    return
    print(
      "-----------------------------------------------------------" + sid + "-----------------------------------------------------------")
    payload = "{\"courseId\":\"861\",\"examCommitReqDataList\":[{\"examId\":1,\"answer\":\"0,1,2\"},{\"examId\":2,\"answer\":\"0,1,2,3\"}],\"exam\":\"course\",\"reqtoken\":\"" + reqtoken + "\"} "
    Compelete_Task(payload, sid)
    payload = "{\"courseId\":\"839\",\"examCommitReqDataList\":[{\"examId\":1,\"answer\":\"0,1,3\"},{\"examId\":2,\"answer\":\"1,3\"}],\"exam\":\"course\",\"reqtoken\":\"" + reqtoken + "\"} "
    Compelete_Task(payload, sid)
    payload = "{\"courseId\":\"840\",\"examCommitReqDataList\":[{\"examId\":1,\"answer\":\"1,2\"},{\"examId\":2,\"answer\":\"0,1,2,3\"}],\"exam\":\"course\",\"reqtoken\":\"" + reqtoken + "\"} "
    Compelete_Task(payload, sid)
    payload = "{\"courseId\":\"768\",\"examCommitReqDataList\":[{\"examId\":1,\"answer\":\"0,1\"},{\"examId\":2,\"answer\":2},{\"examId\":3,\"answer\":\"0,1,2,3\"},{\"examId\":4,\"answer\":\"0,1,2,3\"},{\"examId\":5,\"answer\":3}],\"exam\":\"course\",\"reqtoken\":\"" + reqtoken + "\"} "
    Compelete_Task(payload, sid)
    payload = "{\"courseId\":\"767\",\"examCommitReqDataList\":[{\"examId\":1,\"answer\":2},{\"examId\":2,\"answer\":0},{\"examId\":3,\"answer\":0},{\"examId\":4,\"answer\":0},{\"examId\":5,\"answer\":1}],\"exam\":\"course\",\"reqtoken\":\"" + reqtoken + "\"} "
    Compelete_Task(payload, sid)
    Compelete_Final_Task(reqtoken, sid)
    Compelete_Contest_Task(reqtoken, sid)
    print("\n")

# 初一
def Start4(reqtoken, sid):
    print("payload已过期!")
    return
    print(
      "-----------------------------------------------------------" + sid + "-----------------------------------------------------------")
    payload = "{\"courseId\":\"859\",\"examCommitReqDataList\":[{\"examId\":1,\"answer\":0},{\"examId\":2,\"answer\":\"0,1,2\"}],\"exam\":\"course\",\"reqtoken\":\"" + reqtoken + "\"}"
    Compelete_Task(payload, sid)
    payload = "{\"courseId\":\"844\",\"examCommitReqDataList\":[{\"examId\":1,\"answer\":\"0,2\"},{\"examId\":2,\"answer\":\"0,3\"}],\"exam\":\"course\",\"reqtoken\":\"" + reqtoken + "\"}"
    Compelete_Task(payload, sid)
    payload = "{\"courseId\":\"843\",\"examCommitReqDataList\":[{\"examId\":1,\"answer\":2},{\"examId\":2,\"answer\":\"0,1,2\"}],\"exam\":\"course\",\"reqtoken\":\"" + reqtoken + "\"}"
    Compelete_Task(payload, sid)
    payload = "{\"courseId\":\"771\",\"examCommitReqDataList\":[{\"examId\":1,\"answer\":3},{\"examId\":2,\"answer\":2},{\"examId\":3,\"answer\":1},{\"examId\":4,\"answer\":3},{\"examId\":5,\"answer\":1}],\"exam\":\"course\",\"reqtoken\":\"" + reqtoken + "\"}"
    Compelete_Task(payload, sid)
    payload = "{\"courseId\":\"772\",\"examCommitReqDataList\":[{\"examId\":1,\"answer\":2},{\"examId\":2,\"answer\":3},{\"examId\":3,\"answer\":0},{\"examId\":4,\"answer\":0},{\"examId\":5,\"answer\":\"0,1\"}],\"exam\":\"course\",\"reqtoken\":\"" + reqtoken + "\"}"
    Compelete_Task(payload, sid)
    #############################################
    payload = "{\"courseId\":\"848\",\"examCommitReqDataList\":[{\"examId\":1,\"answer\":\"0,1,3\"},{\"examId\":2," \
            "\"answer\":\"0,1,2,4\"}],\"exam\":\"course\",\"reqtoken\":\"" + reqtoken + "\"} "
    Compelete_Task(payload, sid)
    payload = "{\"courseId\":\"829\",\"examCommitReqDataList\":[{\"examId\":1,\"answer\":0},{\"examId\":2," \
            "\"answer\":\"0,1,3\"},{\"examId\":3,\"answer\":\"0,1,2\"}],\"exam\":\"course\"," \
            "\"reqtoken\":\"" + reqtoken + "\"} "
    Compelete_Task(payload, sid)
    payload = "{\"courseId\":\"825\",\"examCommitReqDataList\":[{\"examId\":1,\"answer\":0},{\"examId\":2," \
            "\"answer\":2},{\"examId\":3,\"answer\":2},{\"examId\":4,\"answer\":3},{\"examId\":5,\"answer\":\"0,1," \
            "2,3\"}],\"exam\":\"course\",\"reqtoken\":\"" + reqtoken + "\"} "
    Compelete_Task(payload, sid)
    payload = "{\"courseId\":\"826\",\"examCommitReqDataList\":[{\"examId\":1,\"answer\":2},{\"examId\":2," \
            "\"answer\":3},{\"examId\":3,\"answer\":1},{\"examId\":4,\"answer\":1},{\"examId\":5,\"answer\":\"0," \
            "2\"}],\"exam\":\"course\",\"reqtoken\":\"" + reqtoken + "\"} "
    Compelete_Task(payload, sid)
    payload = "{\"courseId\":\"773\",\"examCommitReqDataList\":[{\"examId\":1,\"answer\":2},{\"examId\":2," \
            "\"answer\":2},{\"examId\":3,\"answer\":0},{\"examId\":4,\"answer\":2},{\"examId\":5,\"answer\":3}]," \
            "\"exam\":\"course\",\"reqtoken\":\"" + reqtoken + "\"} "
    Compelete_Task(payload, sid)
    payload = "{\"courseId\":\"847\",\"examCommitReqDataList\":[{\"examId\":1,\"answer\":\"2,3\"},{\"examId\":2," \
            "\"answer\":\"0,1,3\"},{\"examId\":3,\"answer\":\"0,1,2\"}],\"exam\":\"course\"," \
            "\"reqtoken\":\"" + reqtoken + "\"} "
    Compelete_Task(payload, sid)
    Compelete_Final_Task(reqtoken, sid)
    Compelete_Contest_Task(reqtoken, sid)
    print("\n")

bronzenew 发表于 2021-11-22 09:16

收藏了,下次有任务了试试看

yuntai 发表于 2021-11-20 22:20

我们用的自动登录脚本加上小学中学的答案脚本   一个电脑开七八个号 一直点点点点   40多个人也就是十分钟左右吧,大学校一两千人   几个人同时做   

bluecloud2016 发表于 2021-11-20 22:26

其他年级的课程代码在哪 有参考吗?

def Start4(reqtoken, sid):
    print(
      "-----------------------------------------------------------" + sid + "-----------------------------------------------------------")
    payload = "{\"courseId\":\"1100\",\"examCommitReqDataList\":[{\"examId\":1,\"answer\":\"0,1,3\"},{\"examId\":2," \
            "\"answer\":\"0,1,2,4\"}],\"exam\":\"course\",\"reqtoken\":\"" + reqtoken + "\"} "
    Compelete_Task(payload, sid)
    payload = "{\"courseId\":\"1081\",\"examCommitReqDataList\":[{\"examId\":1,\"answer\":0},{\"examId\":2," \
            "\"answer\":\"0,1,3\"},{\"examId\":3,\"answer\":\"0,1,2\"}],\"exam\":\"course\"," \
            "\"reqtoken\":\"" + reqtoken + "\"} "
    Compelete_Task(payload, sid)
    Compelete_Final_Task(reqtoken, sid)
    Compelete_Contest_Task(reqtoken, sid)
    print("\n")


def B():
    global taskNum
    global taskBigNum
    print("\033[34m")
    print(" ___________             __   ________.__                   __.__")
    print(" \\_   _____/_ __   ____ || __ \\_____\\ |__| ____    ____    |__|__|____    ____")
    print("|    __)||\\_/ ___\\||/ /// \\\\||/    \\/ ___\\   ||\\__\\/_ \\")
    print("|   \\ ||/\\\\___|    </   \\_/.\\|   |\\/ /_/>|||/ __ \\(<_> )")
    print("\\___/ |____/\\___>__|_ \\ \\_____\\ \\_/__|___|/\\___/\\__||__(____/\\____/")
    print("      \\/            \\/   \\/      \\__>       \\//_____/\\______|       \\/")
    print("\033[33m")
    print("共完成普通试题: " + str(taskNum) + "份 " + "共完成考试试题: " + str(taskBigNum) + "份")
    print("顺利完成了" + str(taskContestNum) + "个账号的任务 \n")

    print("\033[0m")


def Piliang():
    xlsx = xlrd.open_workbook("./Student_Qingjiao_List.xlsx")
    sheet1 = xlsx.sheets()
    i = 0
    while i < sheet1.nrows:
      # Random=random.randint(0,1900);
      Function(sheet1.row_values(i), str(sheet1.row_values(i)))

bean296 发表于 2021-11-20 22:30

我们都弄完了,早点发出来就好了

jiu299 发表于 2021-11-20 22:36

好东西,可是下载了不会用啊

东方冬 发表于 2021-11-20 23:00


好东西,可是下载了不会用啊

g9596 发表于 2021-11-20 23:23

本来是好事

Niko999 发表于 2021-11-20 23:29

这啥课堂 没听过呀

yy330554 发表于 2021-11-21 01:26

好东西,留着以后绝对用的到

Natu 发表于 2021-11-21 01:52

感谢楼主分享,发出来太迟了,都已经完成了。
页: [1] 2 3 4 5
查看完整版本: 青骄第二课堂自动切换账号一键完成刷课、期末考试、满分知识竞赛