好友
阅读权限10
听众
最后登录1970-1-1
|
import requests
import json
import time
auth = ' '
def dian_zan():
url = 'http://yjpf.gsosc.cn/prod-api/app/mark/save'
headers = {
'AuthorizationLg': auth,
'Content-Type': 'application/json'
}
for num in range(1, 11):
if num < 10:
num = '00' + str(num)
elif 10 <= num < 100:
num = '0' + str(num)
data = {
'projectId': 'emd2021',
'contentId': f'lesson{num}',
'type': 'lesson',
'mark': 1
}
# print(json.dumps(data))
result = requests.post(url=url, data=json.dumps(data), headers=headers)
print(result.text)
def da_tia1():
url = 'http://yjpf.gsosc.cn/prod-api/app/bzCeShi/saveJJLUserAnswer'
headers = {
'AuthorizationLg': auth,
'Content-Type': 'application/json'
}
data = {"projectId": "emd2021",
"json": "{\"answer\":\"309a1863d05b4eae9c5f4af8a0d731f0#ABCD#15472##ed2200bb93d44a5f9232811be112b101#ABCD#3919##1189f2f0d84e4409a780eb7ae811ceaa#A#9030##524e8b727d5c41ad989af62a1accac01#A#1987##5db3aea956734ad6b7e73f684e9efe64#A#578##\",\"time\":25131}",
"dtId": "emd2021_jlldt"}
result = requests.post(url=url, data=json.dumps(data), headers=headers)
print(result.text)
def da_tib1():
url = 'http://yjpf.gsosc.cn/prod-api/app/bzCeShi/saveSZYUserAnswer'
headers = {
'AuthorizationLg': auth,
'Content-Type': 'application/json'
}
data = {"projectId": "emd2021",
"json": "{\"answer\":\"76fc14e7b3c242099dd7cedd63fc413d#BD#5209##c92e57212c6e4990aa0449265e298b26#A#384##7fca9e14e86c405ba99ab21a91f2f17a#C#1339##1878fd7c8a864afdbb113c1c8d0dc01f#B#362##85532c698442438f8cfc0ceef2e9cf73#A#298##\",\"time\":25191}",
"dtId": "emd2021_szydt"}
result = requests.post(url=url, data=json.dumps(data), headers=headers)
print(result.text)
def da_tia2():
url = 'http://yjpf.gsosc.cn/prod-api/app/bzCeShi/saveJJLUserAnswer'
headers = {
'AuthorizationLg': auth,
'Content-Type': 'application/json'
}
data = {"projectId": "emd2021",
"json": "{\"answer\":\"1189f2f0d84e4409a780eb7ae811ceaa#A#17947##832d3802aa394bf98e3a4582831204de#B#5571##640edb8475c34722b32cb3169a13432d#A#5005##1856459845594747bb07abae6395628e#A#3862##8f371cb745c4492da9e7b3d59fdc5e06#A#2214##\",\"time\":35791}",
"dtId": "emd2021_jlldt"}
result = requests.post(url=url, data=json.dumps(data), headers=headers)
print(result.text)
def da_tib2():
url = 'http://yjpf.gsosc.cn/prod-api/app/bzCeShi/saveSZYUserAnswer'
headers = {
'AuthorizationLg': auth,
'Content-Type': 'application/json'
}
data = {"projectId": "emd2021",
"json": "{\"answer\":\"eccc07d2cfd8447dbf87f886ceb68418#B#4425##1a4c8496ae054a389a70275a1efacd20#B#2183##9a5ca10373df443aa4564b1132307b46#A#1231##0e52cb22e4b6484aac76aa8cdd9de1fe#A#2400##c0a7429b741143aaa3e5c8d65a8e8e93#C#3269##\",\"time\":23592}",
"dtId": "emd2021_szydt"}
result = requests.post(url=url, data=json.dumps(data), headers=headers)
print(result.text)
def da_tia3():
url = 'http://yjpf.gsosc.cn/prod-api/app/bzCeShi/saveJJLUserAnswer'
headers = {
'AuthorizationLg': auth,
'Content-Type': 'application/json'
}
data = {"projectId": "emd2021",
"json": "{\"answer\":\"8f8c241395144a859043593a79dc8749#A#35194##107f740ee628424ba38eb235c0e0fc5a#A#2180##6a6a3f8b7b3e463aa196a83fe36a9948#A#573##e61d5d39cc584f36ad6a2266c16c9039#A#663##7b5c811d789447cc97405d960c292ac7#A#1147##\",\"time\":47049}",
"dtId": "emd2021_jlldt"}
result = requests.post(url=url, data=json.dumps(data), headers=headers)
print(result.text)
def da_tib3():
url = 'http://yjpf.gsosc.cn/prod-api/app/bzCeShi/saveSZYUserAnswer'
headers = {
'AuthorizationLg': auth,
'Content-Type': 'application/json'
}
data = {"projectId": "emd2021",
"json": "{\"answer\":\"21135e74f2f04b6db1c233ae2059c1d3#ABCD#11747##816e687550354b128a311e4f695e6cc3#C#367##91be0835a524401aa513397d2f2feeb1#B#4407##626239bba4fd41c292717a04e50b430c#AC#6047##e774620eacd0481898350564bcaf971e#A#425##\",\"time\":24668}",
"dtId": "emd2021_szydt"}
result = requests.post(url=url, data=json.dumps(data), headers=headers)
print(result.text)
def da_tia4():
url = 'http://yjpf.gsosc.cn/prod-api/app/bzCeShi/saveJJLUserAnswer'
headers = {
'AuthorizationLg': auth,
'Content-Type': 'application/json'
}
data = {"projectId": "emd2021",
"json": "{\"answer\":\"90ee889512a04fe9b3ce5657d299855a#ABD#13472##a0cd748522a548659a211f81e93a512b#A#453##25dbd1bcfa62464684ec24cddb7d7cfd#C#975##6d69771ad0df4e119def36a1cafe9f49#B#264##b3fd5010cf9c420485e505109b2c1351#B#344##\",\"time\":21083}",
"dtId": "emd2021_jlldt"}
result = requests.post(url=url, data=json.dumps(data), headers=headers)
print(result.text)
time.sleep(30)
def da_tia5():
url = 'http://yjpf.gsosc.cn/prod-api/app/bzCeShi/saveJJLUserAnswer'
headers = {
'AuthorizationLg': auth,
'Content-Type': 'application/json'
}
data = {"projectId": "emd2021",
"json": "{\"answer\":\"346a720acb7b4c5bbeea7e309beb980e#A#1043##441d22251ee24e4cabb0de1b39ec9477#ABCD#10148##33172f844471427890211f3cf6beae8f#A#2377##5af6509792144ad4832a53888f374f67#ABCD#4821##a0a456c5b7a84978a78293b32c2524f5#C#5373##\",\time\":29999}",
"dtId": "emd2021_jlldt"}
result = requests.post(url=url, data=json.dumps(data), headers=headers)
print(result.text)
def study():
dian_zan()
da_tia1()
da_tib1()
da_tia2()
da_tib2()
da_tia3()
da_tib3()
da_tia4()
da_tia5()
if __name__ == '__main__':
study() |
|