吾爱破解 - 52pojie.cn

 找回密码
 注册[Register]

QQ登录

只需一步,快速开始

查看: 4989|回复: 70
收起左侧

[Python 转载] 已失效

  [复制链接]
头像被屏蔽
zjh4473 发表于 2021-10-23 11:58
提示: 作者被禁止或删除 内容自动屏蔽

发帖前要善用论坛搜索功能,那里可能会有你要找的答案或者已经有人发布过相同内容了,请勿重复发帖。

lly5566 发表于 2021-11-20 14:05
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()
海天绯红 发表于 2021-10-24 08:45
本帖最后由 海天绯红 于 2021-10-24 08:46 编辑

GET HTTP/1.1
Host: www.gsosc.cn
Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.116 Safari/537.36 QBCore/4.0.1219.400 QQBrowser/9.0.2524.400 Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36 MicroMessenger/6.5.2.501 NetType/WIFI WindowsWechat
Accept: image/webp,image/*,*/*;q=0.8
Referer: http://www.gsosc.cn/yj/userCenter?projectId=emd2021
Accept-Encoding: gzip, deflate
Accept-Language: zh-CN,zh;q=0.8,en-US;q=0.6,en;q=0.5;q=0.4
Cookie: WChart-Token=eyJhbGciOiJIUzUxMiJ9.eyJhcHBfbG9naW5fdXNlcl9rZXkiOiI0ODRkYmNmMy04MDhiLTQyOGYtYjFjNS1jYjQxNzQzMzJhZjIifQ.p6Uc5NqRpo7AzQkvK6Ucp77triVQjSFfOQkpMxpoN1FFRdAaACliMhYxN7clMDx4YhdGLdfu6US--XBSUuHMJA; SERVERID=dd13ca3c03683a668860bf64bf61e94c|1635034847|1635034824
标红的是不是要找的??但是在开头没找到你说的Bearer   
卿出于兰 发表于 2021-10-23 12:03
RoyPenn 发表于 2021-10-23 12:21
感谢分享,不知道我们要不要弄,先收藏了
yyb414 发表于 2021-10-23 12:36
感谢分享
sp0770 发表于 2021-10-23 12:38
我们这里还只是第一次啊!
masongxin9 发表于 2021-10-23 12:43
楼主分享的非常有用,先留着以后用
z6189949 发表于 2021-10-23 13:26
这一看就是ruoyi的框架
头像被屏蔽
 楼主| zjh4473 发表于 2021-10-23 13:48
提示: 作者被禁止或删除 内容自动屏蔽
linzilinzi 发表于 2021-10-23 15:53

感谢分享,先留着以后用
around999 发表于 2021-10-23 15:55
虽然很馋,但是不会用系列
您需要登录后才可以回帖 登录 | 注册[Register]

本版积分规则

返回列表

RSS订阅|小黑屋|处罚记录|联系我们|吾爱破解 - LCG - LSG ( 京ICP备16042023号 | 京公网安备 11010502030087号 )

GMT+8, 2024-11-25 09:53

Powered by Discuz!

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表