Files
2025-10-20 12:32:18 +08:00

1.8 KiB

In [2]:
from myrequest import create
from requests import post,get
In [6]:
a = create("http://192.168.0.244:8100")
认证成功,token已设置
In [3]:
data = get("https://band.hxzhxy.cn/lock/ark/listPages?arkName=&teamId=19&binding=&bindStu=&accredit=&screen=0&pageSize=4000&pageNumber=0&orderDirection=asc&access_token=32100fad-6c69-4f55-8cf9-dd9e6196d3a6")
In [8]:
import json
student_list = data.json()
with open("本部学生柜锁.json", "w", encoding="utf-8") as f:
    f.write(json.dumps(student_list, ensure_ascii=False, indent=4))
In [ ]: