first commit
This commit is contained in:
+1663
File diff suppressed because it is too large
Load Diff
+445
@@ -0,0 +1,445 @@
|
||||
[
|
||||
{
|
||||
"machineCode": "00e066fd8782",
|
||||
"displayName": "学校宣传视频",
|
||||
"ip": "13.1.1.124",
|
||||
"groupId": 41,
|
||||
"contentId": 84,
|
||||
"updateTime": "2025-06-17T14:05:10",
|
||||
"version": "1.0.43",
|
||||
"deviceName": "B2-4F-1",
|
||||
"groupName": "B2区",
|
||||
"createTime": "2025-05-07T12:32:05",
|
||||
"teamId": 19,
|
||||
"online": 1,
|
||||
"location": "教学楼四楼电梯口",
|
||||
"id": "0bd89696-2ced-4f98-91c4-94f3b65a1cbc"
|
||||
},
|
||||
{
|
||||
"machineCode": "00e066fd87b1",
|
||||
"displayName": "卫生宣传1",
|
||||
"ip": "13.1.1.126",
|
||||
"groupId": 42,
|
||||
"contentId": 80,
|
||||
"updateTime": "2025-05-22T20:41:35",
|
||||
"version": "1.0.43",
|
||||
"deviceName": "B1-5F-1",
|
||||
"groupName": "B1区",
|
||||
"createTime": "2025-04-27T11:56:36",
|
||||
"teamId": 19,
|
||||
"online": 0,
|
||||
"location": "511教室旁边",
|
||||
"id": "e48afbb1-d6c6-4a86-b1ac-a16bc8350922"
|
||||
},
|
||||
{
|
||||
"machineCode": "00e066fd898d",
|
||||
"displayName": "卫生宣传1",
|
||||
"ip": "13.1.1.127",
|
||||
"groupId": 42,
|
||||
"contentId": 80,
|
||||
"updateTime": "2025-05-06T08:26:55",
|
||||
"deviceName": "B1-5F-2",
|
||||
"groupName": "B1区",
|
||||
"createTime": "2025-04-27T11:35:13",
|
||||
"teamId": 19,
|
||||
"online": 0,
|
||||
"location": "513教室旁边",
|
||||
"id": "8777fcf5-aeae-4825-8e5b-22bdc24dac86"
|
||||
},
|
||||
{
|
||||
"machineCode": "00e066fd8710",
|
||||
"displayName": "卫生宣传1",
|
||||
"ip": "13.1.1.128",
|
||||
"groupId": 42,
|
||||
"contentId": 80,
|
||||
"updateTime": "2025-05-21T21:00:27",
|
||||
"version": "1.0.43",
|
||||
"deviceName": "B1-5F-3",
|
||||
"groupName": "B1区",
|
||||
"createTime": "2025-04-27T10:52:50",
|
||||
"teamId": 19,
|
||||
"online": 0,
|
||||
"location": "502教室外",
|
||||
"id": "66b51d34-5adb-4706-8821-77f4b3382afa"
|
||||
},
|
||||
{
|
||||
"machineCode": "00e066fd87ad",
|
||||
"displayName": "卫生宣传1",
|
||||
"ip": "13.1.1.129",
|
||||
"groupId": 43,
|
||||
"contentId": 80,
|
||||
"updateTime": "2025-05-06T08:26:55",
|
||||
"deviceName": "B2-5F-1",
|
||||
"groupName": "B2区",
|
||||
"createTime": "2025-04-27T09:47:48",
|
||||
"teamId": 19,
|
||||
"online": 0,
|
||||
"location": "五楼教学楼过道开水间外侧",
|
||||
"id": "40de633e-f303-4a37-943f-16e6f6f5334b"
|
||||
},
|
||||
{
|
||||
"machineCode": "00e066fd890b",
|
||||
"displayName": "卫生宣传1",
|
||||
"ip": "13.1.1.117",
|
||||
"groupId": 39,
|
||||
"contentId": 80,
|
||||
"updateTime": "2025-06-17T13:03:04",
|
||||
"version": "1.0.44",
|
||||
"deviceName": "B2-3F-3",
|
||||
"groupName": "B2区",
|
||||
"createTime": "2025-04-26T17:44:28",
|
||||
"teamId": 19,
|
||||
"online": 1,
|
||||
"location": "教学楼三楼电梯口",
|
||||
"id": "1f109346-f6ce-4bfb-a4ba-40a555a6e819"
|
||||
},
|
||||
{
|
||||
"machineCode": "00e066fd882d",
|
||||
"displayName": "2025年研学注意事项",
|
||||
"ip": "13.1.1.180",
|
||||
"groupId": 39,
|
||||
"contentId": 81,
|
||||
"updateTime": "2025-06-17T13:02:55",
|
||||
"version": "1.0.44",
|
||||
"deviceName": "B2-3F-1",
|
||||
"groupName": "B2区",
|
||||
"createTime": "2025-04-26T17:29:54",
|
||||
"teamId": 19,
|
||||
"online": 0,
|
||||
"location": "三楼教学楼过道开水间外侧",
|
||||
"id": "8500e5a9-8ed5-4040-a71f-40ea958d441a"
|
||||
},
|
||||
{
|
||||
"groupName": "B1区",
|
||||
"machineCode": "00e066fd61fc",
|
||||
"createTime": "2025-04-26T17:28:58",
|
||||
"displayName": "2025年研学注意事项",
|
||||
"groupId": 38,
|
||||
"teamId": 19,
|
||||
"contentId": 81,
|
||||
"online": 0,
|
||||
"updateTime": "2025-06-16T18:07:47",
|
||||
"location": "313后门楼梯旁 开机转圈!",
|
||||
"id": "20fc40c0-4f64-421f-9c78-e3534659a0a8",
|
||||
"deviceName": "B1-3F-1"
|
||||
},
|
||||
{
|
||||
"machineCode": "00e066fd8927",
|
||||
"displayName": "2025年研学注意事项",
|
||||
"ip": "13.1.1.116",
|
||||
"groupId": 39,
|
||||
"contentId": 81,
|
||||
"updateTime": "2025-06-17T13:03:04",
|
||||
"version": "1.0.44",
|
||||
"deviceName": "B2-3F-2",
|
||||
"groupName": "B2区",
|
||||
"createTime": "2025-04-26T15:58:48",
|
||||
"teamId": 19,
|
||||
"online": 1,
|
||||
"location": "三楼教学楼过道开水间内侧",
|
||||
"id": "83b97735-df9d-4d63-82f8-b7263de09d6c"
|
||||
},
|
||||
{
|
||||
"machineCode": "00e066fd898c",
|
||||
"displayName": "2025年研学注意事项",
|
||||
"ip": "13.1.1.118",
|
||||
"groupId": 39,
|
||||
"contentId": 81,
|
||||
"updateTime": "2025-06-16T17:50:47",
|
||||
"version": "1.0.44",
|
||||
"deviceName": "B2-3F-4",
|
||||
"groupName": "B2区",
|
||||
"createTime": "2025-04-26T15:02:08",
|
||||
"teamId": 19,
|
||||
"online": 0,
|
||||
"location": "323教室外墙\nwakeonlan无效!",
|
||||
"id": "3138b138-54b5-4a40-a0f6-b98952ff403c"
|
||||
},
|
||||
{
|
||||
"machineCode": "00e066fd890c",
|
||||
"displayName": "学校宣传视频",
|
||||
"ip": "13.1.1.104",
|
||||
"groupId": 35,
|
||||
"contentId": 84,
|
||||
"updateTime": "2025-06-17T13:03:00",
|
||||
"version": "1.0.44",
|
||||
"deviceName": "B2-1F-2",
|
||||
"groupName": "B2区",
|
||||
"createTime": "2025-04-26T14:00:06",
|
||||
"teamId": 19,
|
||||
"online": 1,
|
||||
"location": "一楼教学楼过道开水间内侧",
|
||||
"id": "53405258-6e64-455c-a107-f4925f01f9a8"
|
||||
},
|
||||
{
|
||||
"machineCode": "00e066fd86c4",
|
||||
"displayName": "学校宣传视频",
|
||||
"ip": "13.1.1.113",
|
||||
"groupId": 37,
|
||||
"contentId": 84,
|
||||
"updateTime": "2025-06-17T13:03:04",
|
||||
"version": "1.0.44",
|
||||
"deviceName": "B2-2F-5",
|
||||
"groupName": "B2区",
|
||||
"createTime": "2025-04-26T12:38:03",
|
||||
"teamId": 19,
|
||||
"online": 1,
|
||||
"location": "图书馆外侧",
|
||||
"id": "fceb3154-0c21-4249-8b57-5316df7eacbd"
|
||||
},
|
||||
{
|
||||
"machineCode": "00e066fd8981",
|
||||
"displayName": "卫生宣传1",
|
||||
"ip": "13.1.1.139",
|
||||
"groupId": 46,
|
||||
"contentId": 80,
|
||||
"updateTime": "2025-05-22T20:41:35",
|
||||
"version": "1.0.42",
|
||||
"deviceName": "A1-2F-1",
|
||||
"groupName": "艺术楼二楼",
|
||||
"createTime": "2025-04-26T10:43:48",
|
||||
"teamId": 19,
|
||||
"online": 0,
|
||||
"location": "S207教室旁边",
|
||||
"id": "51dc6157-ca09-431e-a71c-509e9fcaae0e"
|
||||
},
|
||||
{
|
||||
"machineCode": "00e066fd87af",
|
||||
"displayName": "卫生宣传1",
|
||||
"ip": "13.1.1.136",
|
||||
"groupId": 46,
|
||||
"contentId": 80,
|
||||
"updateTime": "2025-06-17T13:02:54",
|
||||
"version": "1.0.44",
|
||||
"deviceName": "A1-2F-2",
|
||||
"groupName": "艺术楼二楼",
|
||||
"createTime": "2025-04-26T10:42:56",
|
||||
"teamId": 19,
|
||||
"online": 1,
|
||||
"location": "艺术楼电梯口",
|
||||
"id": "afe0f8a8-89ec-4801-9dd1-a26a016d74ae"
|
||||
},
|
||||
{
|
||||
"machineCode": "00e066fd891f",
|
||||
"displayName": "学校宣传视频",
|
||||
"ip": "13.1.1.111",
|
||||
"groupId": 37,
|
||||
"contentId": 84,
|
||||
"updateTime": "2025-06-17T13:03:04",
|
||||
"version": "1.0.44",
|
||||
"deviceName": "B2-2F-3",
|
||||
"groupName": "B2区",
|
||||
"createTime": "2025-04-26T08:42:52",
|
||||
"teamId": 19,
|
||||
"online": 1,
|
||||
"location": "教学楼二楼电梯口",
|
||||
"id": "21e27b3e-691c-48db-b81e-89b20ad23ce3"
|
||||
},
|
||||
{
|
||||
"machineCode": "000ec6431230",
|
||||
"displayName": "学校宣传视频",
|
||||
"ip": "13.1.1.102",
|
||||
"groupId": 34,
|
||||
"contentId": 84,
|
||||
"updateTime": "2025-06-16T18:05:45",
|
||||
"version": "1.0.44",
|
||||
"deviceName": "B1-1F-2",
|
||||
"groupName": "B1区",
|
||||
"createTime": "2025-04-25T18:35:39",
|
||||
"teamId": 19,
|
||||
"online": 0,
|
||||
"location": "102教室对面\n没有wakeonlan功能!",
|
||||
"id": "27aabf48-1b50-4de1-9a5a-77bdfd9febd9"
|
||||
},
|
||||
{
|
||||
"machineCode": "00e066fd8988",
|
||||
"displayName": "学校宣传视频",
|
||||
"ip": "13.1.1.108",
|
||||
"groupId": 35,
|
||||
"contentId": 84,
|
||||
"updateTime": "2025-06-17T13:03:05",
|
||||
"version": "1.0.44",
|
||||
"deviceName": "B2-1F-6",
|
||||
"groupName": "B2区",
|
||||
"createTime": "2025-04-25T16:30:33",
|
||||
"teamId": 19,
|
||||
"online": 1,
|
||||
"location": "多功能厅外走廊\nwakeonlan无效!",
|
||||
"id": "05d1ec37-dcea-46cd-91b0-ea4b0049c184"
|
||||
},
|
||||
{
|
||||
"machineCode": "00e066fd8832",
|
||||
"displayName": "学校宣传视频",
|
||||
"ip": "13.1.1.110",
|
||||
"groupId": 37,
|
||||
"contentId": 84,
|
||||
"updateTime": "2025-06-16T18:13:28",
|
||||
"version": "1.0.44",
|
||||
"deviceName": "B2-2F-2",
|
||||
"groupName": "B2区",
|
||||
"createTime": "2025-03-19T16:22:00",
|
||||
"teamId": 19,
|
||||
"online": 0,
|
||||
"location": "二楼教学楼过道开水间内侧\n用户名admin 磁盘坏了!",
|
||||
"id": "500fbfaf-c2f4-4a2b-b2e3-01183f9f7306"
|
||||
},
|
||||
{
|
||||
"machineCode": "00e066fd870f",
|
||||
"displayName": "卫生宣传1",
|
||||
"ip": "13.1.1.132",
|
||||
"groupId": 43,
|
||||
"contentId": 80,
|
||||
"updateTime": "2025-05-06T08:26:55",
|
||||
"deviceName": "B2-5F-4",
|
||||
"groupName": "B2区",
|
||||
"createTime": "2025-03-19T14:54:56",
|
||||
"teamId": 19,
|
||||
"online": 0,
|
||||
"location": "523教室外侧",
|
||||
"id": "f5f3d91c-c9ad-49c7-87ae-11688a118c57"
|
||||
},
|
||||
{
|
||||
"machineCode": "00e066fd8990",
|
||||
"displayName": "卫生宣传1",
|
||||
"ip": "13.1.1.130",
|
||||
"groupId": 43,
|
||||
"contentId": 80,
|
||||
"updateTime": "2025-06-17T13:02:56",
|
||||
"version": "1.0.44",
|
||||
"deviceName": "B2-5F-2",
|
||||
"groupName": "B2区",
|
||||
"createTime": "2025-03-19T14:35:38",
|
||||
"teamId": 19,
|
||||
"online": 1,
|
||||
"location": "五楼教学楼过道开水间内侧",
|
||||
"id": "fb5ac139-d8d7-463b-970d-6df92389c2f4"
|
||||
},
|
||||
{
|
||||
"machineCode": "00e066fd883a",
|
||||
"displayName": "卫生宣传",
|
||||
"ip": "13.1.1.122",
|
||||
"groupId": 41,
|
||||
"contentId": 79,
|
||||
"updateTime": "2025-06-17T14:08:28",
|
||||
"version": "1.0.44",
|
||||
"deviceName": "B2-4F-1",
|
||||
"groupName": "B2区",
|
||||
"createTime": "2025-03-19T13:04:25",
|
||||
"teamId": 19,
|
||||
"online": 1,
|
||||
"location": "411教室外侧",
|
||||
"id": "34c35ba4-63ba-4d01-8a80-ef4d4b9bab28"
|
||||
},
|
||||
{
|
||||
"machineCode": "00e066fd882f",
|
||||
"displayName": "卫生宣传",
|
||||
"ip": "13.1.1.123",
|
||||
"groupId": 41,
|
||||
"contentId": 79,
|
||||
"updateTime": "2025-06-17T14:08:34",
|
||||
"version": "1.0.44",
|
||||
"deviceName": "B2-4F-2",
|
||||
"groupName": "B2区",
|
||||
"createTime": "2025-03-19T13:02:17",
|
||||
"teamId": 19,
|
||||
"online": 1,
|
||||
"location": "413教师外侧",
|
||||
"id": "da45ec14-f9b6-4749-96f8-7d8524a4aa84"
|
||||
},
|
||||
{
|
||||
"machineCode": "00e066fd87b4",
|
||||
"displayName": "学校宣传视频",
|
||||
"ip": "13.1.1.112",
|
||||
"groupId": 37,
|
||||
"contentId": 84,
|
||||
"updateTime": "2025-06-17T13:03:07",
|
||||
"version": "1.0.44",
|
||||
"deviceName": "B2-2F-4",
|
||||
"groupName": "B2区",
|
||||
"createTime": "2025-03-17T17:46:27",
|
||||
"teamId": 19,
|
||||
"online": 1,
|
||||
"location": "221教室外侧",
|
||||
"id": "c901b194-777b-4a58-ab6c-461cefe3eac9"
|
||||
},
|
||||
{
|
||||
"machineCode": "00e066fd8989",
|
||||
"displayName": "学校宣传视频",
|
||||
"ip": "13.1.1.107",
|
||||
"groupId": 35,
|
||||
"contentId": 84,
|
||||
"updateTime": "2025-06-17T13:03:04",
|
||||
"version": "1.0.44",
|
||||
"deviceName": "B2-1F-5",
|
||||
"groupName": "B2区",
|
||||
"createTime": "2025-03-17T16:40:39",
|
||||
"teamId": 19,
|
||||
"online": 1,
|
||||
"location": "116教室外墙",
|
||||
"id": "98ec206d-d73b-4f5c-a2d1-e4d002d1311e"
|
||||
},
|
||||
{
|
||||
"machineCode": "00e066fd8986",
|
||||
"displayName": "学校宣传视频",
|
||||
"ip": "13.1.1.109",
|
||||
"groupId": 37,
|
||||
"contentId": 84,
|
||||
"updateTime": "2025-06-17T13:03:06",
|
||||
"version": "1.0.44",
|
||||
"deviceName": "B2-2F-1",
|
||||
"groupName": "B2区",
|
||||
"createTime": "2025-03-14T18:34:03",
|
||||
"teamId": 19,
|
||||
"online": 1,
|
||||
"location": "教学楼过道开水间外侧",
|
||||
"id": "cf79a286-7b5d-4298-a0e3-a3f3b24b16df"
|
||||
},
|
||||
{
|
||||
"machineCode": "00e066fd8797",
|
||||
"displayName": "学校宣传视频",
|
||||
"ip": "13.1.1.115",
|
||||
"groupId": 35,
|
||||
"contentId": 84,
|
||||
"updateTime": "2025-06-17T13:02:59",
|
||||
"version": "1.0.44",
|
||||
"deviceName": "B2-1F-1",
|
||||
"groupName": "B2区",
|
||||
"createTime": "2025-03-14T17:18:28",
|
||||
"teamId": 19,
|
||||
"online": 1,
|
||||
"location": "教学楼过道开水间外侧",
|
||||
"id": "61a8e5ae-0c6a-40ef-8fab-5caccdbf89d5"
|
||||
},
|
||||
{
|
||||
"machineCode": "00e066fd898b",
|
||||
"displayName": "学校宣传视频",
|
||||
"ip": "13.1.1.105",
|
||||
"groupId": 35,
|
||||
"contentId": 84,
|
||||
"updateTime": "2025-06-17T13:03:04",
|
||||
"version": "1.0.44",
|
||||
"deviceName": "B2-1F-3",
|
||||
"groupName": "B2区",
|
||||
"createTime": "2025-03-14T16:34:51",
|
||||
"teamId": 19,
|
||||
"online": 1,
|
||||
"location": "教学楼一楼电梯口",
|
||||
"id": "1048441e-1b6b-426e-84d3-34008f60a030"
|
||||
},
|
||||
{
|
||||
"machineCode": "00e066fd8931",
|
||||
"displayName": "学校宣传视频",
|
||||
"ip": "13.1.1.135",
|
||||
"groupId": 35,
|
||||
"contentId": 84,
|
||||
"updateTime": "2025-06-17T13:03:05",
|
||||
"version": "1.0.44",
|
||||
"deviceName": "B2-1F-4",
|
||||
"groupName": "B2区",
|
||||
"createTime": "2025-03-12T16:52:55",
|
||||
"teamId": 19,
|
||||
"online": 1,
|
||||
"location": "钢琴大厅",
|
||||
"id": "a92620cd-e130-4899-8fa7-b9113fedf48c"
|
||||
}
|
||||
],
|
||||
@@ -0,0 +1,91 @@
|
||||
{
|
||||
"cells": [
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 2,
|
||||
"id": "8600f90d",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"from myrequest import create\n",
|
||||
"from requests import post,get"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 6,
|
||||
"id": "863abedc",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"认证成功,token已设置\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"a = create(\"http://192.168.0.244:8100\")"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "1ce7cf88",
|
||||
"metadata": {},
|
||||
"source": []
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 3,
|
||||
"id": "efcadb57",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"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\")\n"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 8,
|
||||
"id": "0731474e",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"import json\n",
|
||||
"student_list = data.json()\n",
|
||||
"with open(\"本部学生柜锁.json\", \"w\", encoding=\"utf-8\") as f:\n",
|
||||
" f.write(json.dumps(student_list, ensure_ascii=False, indent=4))"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"id": "7ab8340e",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": []
|
||||
}
|
||||
],
|
||||
"metadata": {
|
||||
"kernelspec": {
|
||||
"display_name": "base",
|
||||
"language": "python",
|
||||
"name": "python3"
|
||||
},
|
||||
"language_info": {
|
||||
"codemirror_mode": {
|
||||
"name": "ipython",
|
||||
"version": 3
|
||||
},
|
||||
"file_extension": ".py",
|
||||
"mimetype": "text/x-python",
|
||||
"name": "python",
|
||||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython3",
|
||||
"version": "3.12.4"
|
||||
}
|
||||
},
|
||||
"nbformat": 4,
|
||||
"nbformat_minor": 5
|
||||
}
|
||||
@@ -0,0 +1,142 @@
|
||||
from requests import Session
|
||||
from typing import Dict, Any, Optional
|
||||
|
||||
|
||||
class APIRequest:
|
||||
def __init__(self, base_url: str, auth_params: Dict[str, str]):
|
||||
"""
|
||||
初始化API请求工具类
|
||||
|
||||
Args:
|
||||
base_url: API的基础URL
|
||||
auth_params: 认证所需的参数,如用户名、密码等
|
||||
"""
|
||||
self.base_url = base_url
|
||||
self.auth_params = auth_params
|
||||
self.session = Session()
|
||||
self.token = None
|
||||
self._authenticate()
|
||||
|
||||
def _authenticate(self) -> None:
|
||||
"""获取并设置访问令牌"""
|
||||
try:
|
||||
response = self.session.get(
|
||||
f"{self.base_url}/oauth/token", params=self.auth_params
|
||||
)
|
||||
response.raise_for_status() # 检查请求是否成功
|
||||
self.token = response.json()["access_token"]
|
||||
self.session.headers.update({"Authorization": f"Bearer {self.token}"})
|
||||
print("认证成功,token已设置")
|
||||
except Exception as e:
|
||||
print(f"认证失败: {e}")
|
||||
self.token = None
|
||||
|
||||
def request(self, method: str, endpoint: str, **kwargs) -> Any:
|
||||
"""
|
||||
发送API请求
|
||||
|
||||
Args:
|
||||
method: HTTP方法,如'GET', 'POST', 'PUT', 'DELETE'等
|
||||
endpoint: API端点,不包含基础URL部分
|
||||
**kwargs: 其他requests.request支持的参数
|
||||
|
||||
Returns:
|
||||
响应的JSON数据或原始文本
|
||||
|
||||
Raises:
|
||||
Exception: 请求失败时抛出异常
|
||||
"""
|
||||
url = f"{self.base_url}{endpoint}"
|
||||
|
||||
# 自动添加access_token参数(如果需要)
|
||||
if self.token and "params" in kwargs and isinstance(kwargs["params"], dict):
|
||||
kwargs["params"].setdefault("access_token", self.token)
|
||||
|
||||
try:
|
||||
response = self.session.request(method, url, verify=False, **kwargs)
|
||||
response.raise_for_status() # 检查请求是否成功
|
||||
|
||||
# 根据响应内容类型返回不同格式的数据
|
||||
if response.headers.get("Content-Type", "").startswith("application/json"):
|
||||
return response.json()
|
||||
else:
|
||||
return response.text
|
||||
except Exception as e:
|
||||
print(f"请求失败: {e}")
|
||||
raise
|
||||
|
||||
def get(self, endpoint: str, **kwargs) -> Any:
|
||||
"""发送GET请求"""
|
||||
return self.request("GET", endpoint, **kwargs)
|
||||
|
||||
def post(self, endpoint: str, **kwargs) -> Any:
|
||||
"""发送POST请求"""
|
||||
return self.request("POST", endpoint, **kwargs)
|
||||
|
||||
def put(self, endpoint: str, **kwargs) -> Any:
|
||||
"""发送PUT请求"""
|
||||
return self.request("PUT", endpoint, **kwargs)
|
||||
|
||||
def delete(self, endpoint: str, **kwargs) -> Any:
|
||||
"""发送DELETE请求"""
|
||||
return self.request("DELETE", endpoint, **kwargs)
|
||||
|
||||
|
||||
# 创建API请求实例的工厂函数
|
||||
def create(
|
||||
ip: str = "https://band.hxzhxy.cn", auth_params: Optional[Dict[str, str]] = None
|
||||
):
|
||||
"""
|
||||
创建API请求实例
|
||||
|
||||
Args:
|
||||
ip: API服务器的IP地址或域名
|
||||
auth_params: 认证参数,默认为预定义的值
|
||||
|
||||
Returns:
|
||||
APIRequest实例
|
||||
"""
|
||||
# 默认的认证参数
|
||||
DEFAULT_AUTH_PARAMS = {
|
||||
"username": "tangchao",
|
||||
"password": "123456a",
|
||||
"client_id": "client",
|
||||
"grant_type": "password",
|
||||
"client_secret": "123456",
|
||||
}
|
||||
|
||||
# 使用用户提供的认证参数或默认值
|
||||
auth_params = auth_params or DEFAULT_AUTH_PARAMS
|
||||
|
||||
# 构建基础URL
|
||||
if not ip.startswith(("http://", "https://")):
|
||||
base_url = f"http://{ip}"
|
||||
else:
|
||||
base_url = ip
|
||||
|
||||
return APIRequest(base_url, auth_params)
|
||||
|
||||
|
||||
# 示例使用
|
||||
if __name__ == "__main__":
|
||||
# 通过IP地址创建API实例
|
||||
# api = create_api_instance("192.168.0.244:8100")
|
||||
|
||||
# 发送GET请求
|
||||
# response = api.get("/net-manager/band/exportExcelNew", params={"keyword": "", "type": 0, "teamId": 19})
|
||||
# print(response)
|
||||
|
||||
# 发送POST请求
|
||||
# response = api.post("/studentLeave/add", json={
|
||||
# "leaveType": "事假",
|
||||
# "leaveReason": "超长",
|
||||
# "beginDate": "2025-07-24",
|
||||
# "endDate": "2025-07-24",
|
||||
# "beginSection": 0,
|
||||
# "endSection": 0,
|
||||
# "imgUrl": "[{\"url\":\"http://192.168.0.244:9000/test-iot-school/2025-07-24/3489fb7492a04cb08958134686a27293.png\"}]",
|
||||
# "isCycle": 1,
|
||||
# "stuId": "7957"
|
||||
# })
|
||||
# print(response)
|
||||
pass
|
||||
@@ -0,0 +1,554 @@
|
||||
{
|
||||
"success": true,
|
||||
"msg": "操作成功",
|
||||
"code": 0,
|
||||
"data": {
|
||||
"records": [
|
||||
{
|
||||
"id": 1,
|
||||
"username": "萧文7197",
|
||||
"serialNo": "0407522174",
|
||||
"teaName": "萧文",
|
||||
"teamId": 141,
|
||||
"graduationSchool": "清华大学",
|
||||
"education": "[{\"major\": \"临床研究员\", \"graduateTime\": \"2015-01-11\", \"qualification\": \"本科\", \"academicDegree\": \"博士\", \"graduateSchool\": \"清华大学\"}, {\"major\": \"网络工程师\", \"graduateTime\": \"2012-08-18\", \"qualification\": \"大专\", \"academicDegree\": \"博士\", \"graduateSchool\": \"哈尔滨工业大学\"}, {\"major\": \"中餐厨师\", \"graduateTime\": \"1985-11-22\", \"qualification\": \"高中及以下\", \"academicDegree\": \"硕士\", \"graduateSchool\": \"西安交通大学\"}]",
|
||||
"sex": "男",
|
||||
"age": 31,
|
||||
"birth": "1999-12-21",
|
||||
"nation": "哈尼族",
|
||||
"politicalOutlook": "群众",
|
||||
"partyMembershipTime": null,
|
||||
"employmentForm": "外聘",
|
||||
"title": "二级教师",
|
||||
"part": "教学部",
|
||||
"duties": "班主任",
|
||||
"item": 7,
|
||||
"projectManagement": "项目管理",
|
||||
"studyPart": "市场部",
|
||||
"subject": "语文",
|
||||
"numberOfClassesTaught": 10,
|
||||
"classes": "3年级6班",
|
||||
"numberOfClassHours": 17,
|
||||
"numberOfLessonPreparations": 18,
|
||||
"classRoom": "411",
|
||||
"mentorClass": "6年级16班",
|
||||
"phone": "15882715240",
|
||||
"idNum": "320324199409217735",
|
||||
"agriculturalBankCardNumber": "6228485009647603148",
|
||||
"agriculturalBankOpeningBank": "建设银行成华支行",
|
||||
"chengduBankCardNumber": "6214856808175153514",
|
||||
"chengduBankOpeningBank": "建设银行成都金牛支行",
|
||||
"yearOfEmployment": "2014-10-01",
|
||||
"status": 1,
|
||||
"createTime": 1752660852949,
|
||||
"updateTime": 1752660852949,
|
||||
"teacherId": 3387,
|
||||
"nativePlace": "山东省",
|
||||
"joinWorkTime": "2010-02-04",
|
||||
"inductionTime": "2015-04-01",
|
||||
"jobLevel": "高级",
|
||||
"titleTime": "1992-11-25",
|
||||
"homeAddress": "陕西省梧州市怀柔佛山路E座 357645",
|
||||
"emergencyContact": "曾柳",
|
||||
"emergencyContactPhone": "15939531645",
|
||||
"children": "[{\"gender\": \"男\", \"birthData\": \"1991-12-10\"}, {\"gender\": \"女\", \"birthData\": \"2020-04-13\"}, {\"gender\": \"女\", \"birthData\": \"1998-07-26\"}]",
|
||||
"weekClassTime": 10,
|
||||
"weekClassCount": 7,
|
||||
"educationMax": "高中及以下",
|
||||
"workAge": 15.870440723532402
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"username": "萧建军8544",
|
||||
"serialNo": "3293763327",
|
||||
"teaName": "萧建军",
|
||||
"teamId": 151,
|
||||
"graduationSchool": "浙江大学",
|
||||
"education": "[{\"major\": \"绩效考核经理/主管\", \"graduateTime\": \"2017-06-07\", \"qualification\": \"大专\", \"academicDegree\": \"学士\", \"graduateSchool\": \"浙江大学\"}, {\"major\": \"裱胶工\", \"graduateTime\": \"2011-04-27\", \"qualification\": \"大专\", \"academicDegree\": \"学士\", \"graduateSchool\": \"武汉大学\"}, {\"major\": \"药品市场推广经理\", \"graduateTime\": \"1989-02-04\", \"qualification\": \"博士\", \"academicDegree\": \"无\", \"graduateSchool\": \"武汉大学\"}]",
|
||||
"sex": "男",
|
||||
"age": 22,
|
||||
"birth": "1965-06-21",
|
||||
"nation": "门巴族",
|
||||
"politicalOutlook": "中共预备党员",
|
||||
"partyMembershipTime": "2012-12-06",
|
||||
"employmentForm": "在编",
|
||||
"title": "二级教师",
|
||||
"part": "研发部",
|
||||
"duties": "后端",
|
||||
"item": 1,
|
||||
"projectManagement": "网站",
|
||||
"studyPart": "后勤部",
|
||||
"subject": "python",
|
||||
"numberOfClassesTaught": 10,
|
||||
"classes": "5年级9班",
|
||||
"numberOfClassHours": 17,
|
||||
"numberOfLessonPreparations": 8,
|
||||
"classRoom": "233",
|
||||
"mentorClass": "5年级3班",
|
||||
"phone": "18110353857",
|
||||
"idNum": "620524200403154996",
|
||||
"agriculturalBankCardNumber": "6228483355771007539",
|
||||
"agriculturalBankOpeningBank": "交通银行锦江支行",
|
||||
"chengduBankCardNumber": "6214857222063419787",
|
||||
"chengduBankOpeningBank": "交通银行成都天府新区支行",
|
||||
"yearOfEmployment": "2017-08-10",
|
||||
"status": 1,
|
||||
"createTime": 1752660852950,
|
||||
"updateTime": 1752660852950,
|
||||
"teacherId": 7506,
|
||||
"nativePlace": "福建省",
|
||||
"joinWorkTime": "1985-02-02",
|
||||
"inductionTime": "2017-09-10",
|
||||
"jobLevel": "初级",
|
||||
"titleTime": "2016-03-04",
|
||||
"homeAddress": "内蒙古自治区西安市清河马路q座 228789",
|
||||
"emergencyContact": "黄琴",
|
||||
"emergencyContactPhone": "14769318253",
|
||||
"children": "[{\"gender\": \"男\", \"birthData\": \"2016-02-16\"}, {\"gender\": \"男\", \"birthData\": \"1997-06-09\"}]",
|
||||
"weekClassTime": 28,
|
||||
"weekClassCount": 20,
|
||||
"educationMax": "大专",
|
||||
"workAge": 40.15514499022756
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"username": "宋玉珍6589",
|
||||
"serialNo": "4306038379",
|
||||
"teaName": "宋玉珍",
|
||||
"teamId": 117,
|
||||
"graduationSchool": "北京大学",
|
||||
"education": "[{\"major\": \"开发报建\", \"graduateTime\": \"2010-08-23\", \"qualification\": \"博士\", \"academicDegree\": \"硕士\", \"graduateSchool\": \"北京大学\"}, {\"major\": \"实验室负责人/工程师\", \"graduateTime\": \"2010-01-29\", \"qualification\": \"高中及以下\", \"academicDegree\": \"无\", \"graduateSchool\": \"西安交通大学\"}]",
|
||||
"sex": "男",
|
||||
"age": 45,
|
||||
"birth": "1950-09-07",
|
||||
"nation": "鄂伦春族",
|
||||
"politicalOutlook": "中共党员",
|
||||
"partyMembershipTime": "1997-04-02",
|
||||
"employmentForm": "职工",
|
||||
"title": "二级教师",
|
||||
"part": "后勤部",
|
||||
"duties": "班主任",
|
||||
"item": 9,
|
||||
"projectManagement": "教学研究",
|
||||
"studyPart": "后勤部",
|
||||
"subject": "语文",
|
||||
"numberOfClassesTaught": 7,
|
||||
"classes": "1年级14班",
|
||||
"numberOfClassHours": 14,
|
||||
"numberOfLessonPreparations": 7,
|
||||
"classRoom": "355",
|
||||
"mentorClass": "5年级9班",
|
||||
"phone": "18678605102",
|
||||
"idNum": "341125198103209586",
|
||||
"agriculturalBankCardNumber": "6228481046005843156",
|
||||
"agriculturalBankOpeningBank": "工商银行成华支行",
|
||||
"chengduBankCardNumber": "6214855158048530305",
|
||||
"chengduBankOpeningBank": "建设银行成都武侯支行",
|
||||
"yearOfEmployment": "2023-04-08",
|
||||
"status": 1,
|
||||
"createTime": 1752660852951,
|
||||
"updateTime": 1752660852951,
|
||||
"teacherId": 5339,
|
||||
"nativePlace": "辽宁省",
|
||||
"joinWorkTime": "2023-08-11",
|
||||
"inductionTime": "2023-06-08",
|
||||
"jobLevel": "教授",
|
||||
"titleTime": "1981-03-04",
|
||||
"homeAddress": "西藏自治区旭市静安合山路V座 691165",
|
||||
"emergencyContact": "徐桂英",
|
||||
"emergencyContactPhone": "18680664927",
|
||||
"children": "[{\"gender\": \"男\", \"birthData\": \"2008-01-31\"}, {\"gender\": \"男\", \"birthData\": \"2022-03-05\"}]",
|
||||
"weekClassTime": 16,
|
||||
"weekClassCount": 6,
|
||||
"educationMax": "高中及以下",
|
||||
"workAge": 2.514196422441336
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"username": "聂桂芳5274",
|
||||
"serialNo": "6623252130",
|
||||
"teaName": "聂桂芳",
|
||||
"teamId": 145,
|
||||
"graduationSchool": "清华大学",
|
||||
"education": "[{\"major\": \"其他\", \"graduateTime\": \"2005-12-08\", \"qualification\": \"高中及以下\", \"academicDegree\": \"硕士\", \"graduateSchool\": \"清华大学\"}, {\"major\": \"项目总监\", \"graduateTime\": \"2005-02-05\", \"qualification\": \"大专\", \"academicDegree\": \"学士\", \"graduateSchool\": \"上海交通大学\"}]",
|
||||
"sex": "男",
|
||||
"age": 35,
|
||||
"birth": "1956-10-12",
|
||||
"nation": "满族",
|
||||
"politicalOutlook": "共青团员",
|
||||
"partyMembershipTime": null,
|
||||
"employmentForm": "外聘",
|
||||
"title": "二级教师",
|
||||
"part": "财务部",
|
||||
"duties": "教务",
|
||||
"item": 0,
|
||||
"projectManagement": "系统",
|
||||
"studyPart": "后勤部",
|
||||
"subject": "数学",
|
||||
"numberOfClassesTaught": 7,
|
||||
"classes": "4年级16班",
|
||||
"numberOfClassHours": 14,
|
||||
"numberOfLessonPreparations": 6,
|
||||
"classRoom": "400",
|
||||
"mentorClass": "2年级4班",
|
||||
"phone": "14543779071",
|
||||
"idNum": "420582199009169103",
|
||||
"agriculturalBankCardNumber": "6228489226593382825",
|
||||
"agriculturalBankOpeningBank": "工商银行青羊支行",
|
||||
"chengduBankCardNumber": "6214853428267516141",
|
||||
"chengduBankOpeningBank": "工商银行成都成华支行",
|
||||
"yearOfEmployment": "2022-03-07",
|
||||
"status": 1,
|
||||
"createTime": 1752660852952,
|
||||
"updateTime": 1752660852952,
|
||||
"teacherId": 8461,
|
||||
"nativePlace": "湖南省",
|
||||
"joinWorkTime": "1985-10-15",
|
||||
"inductionTime": null,
|
||||
"jobLevel": "初级",
|
||||
"titleTime": "1992-09-30",
|
||||
"homeAddress": "澳门特别行政区兰州市清河兴安盟街M座 457065",
|
||||
"emergencyContact": "何玉兰",
|
||||
"emergencyContactPhone": "13217588566",
|
||||
"children": "[]",
|
||||
"weekClassTime": 12,
|
||||
"weekClassCount": 14,
|
||||
"educationMax": "高中及以下",
|
||||
"workAge": 40.51014821187898
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"username": "谢雷4925",
|
||||
"serialNo": "0582141929",
|
||||
"teaName": "谢雷",
|
||||
"teamId": 106,
|
||||
"graduationSchool": "上海交通大学",
|
||||
"education": "[{\"major\": \"医疗器械维修人员\", \"graduateTime\": \"2007-01-06\", \"qualification\": \"硕士\", \"academicDegree\": \"学士\", \"graduateSchool\": \"上海交通大学\"}, {\"major\": \"移动通信工程师\", \"graduateTime\": \"1999-05-04\", \"qualification\": \"高中及以下\", \"academicDegree\": \"博士\", \"graduateSchool\": \"浙江大学\"}]",
|
||||
"sex": "男",
|
||||
"age": 35,
|
||||
"birth": "1956-03-09",
|
||||
"nation": "仡佬族",
|
||||
"politicalOutlook": "中共党员",
|
||||
"partyMembershipTime": "1993-03-10",
|
||||
"employmentForm": "校聘",
|
||||
"title": "二级教师",
|
||||
"part": "研发部",
|
||||
"duties": "前端",
|
||||
"item": 8,
|
||||
"projectManagement": "网站",
|
||||
"studyPart": "人事部",
|
||||
"subject": "vue",
|
||||
"numberOfClassesTaught": 1,
|
||||
"classes": "2年级15班",
|
||||
"numberOfClassHours": 14,
|
||||
"numberOfLessonPreparations": 9,
|
||||
"classRoom": "110",
|
||||
"mentorClass": "6年级12班",
|
||||
"phone": "13186639035",
|
||||
"idNum": "350627199011018649",
|
||||
"agriculturalBankCardNumber": "6228488684111246118",
|
||||
"agriculturalBankOpeningBank": "工商银行天府新区支行",
|
||||
"chengduBankCardNumber": "6214852843693136989",
|
||||
"chengduBankOpeningBank": "建设银行成都高新支行",
|
||||
"yearOfEmployment": "2024-09-19",
|
||||
"status": 1,
|
||||
"createTime": 1752660852953,
|
||||
"updateTime": 1752660852953,
|
||||
"teacherId": 8941,
|
||||
"nativePlace": "吉林省",
|
||||
"joinWorkTime": "2007-05-01",
|
||||
"inductionTime": "2025-01-19",
|
||||
"jobLevel": "特级",
|
||||
"titleTime": "2015-02-10",
|
||||
"homeAddress": "河北省贵阳市门头沟陈路D座 634136",
|
||||
"emergencyContact": "陈莹",
|
||||
"emergencyContactPhone": "14723343249",
|
||||
"children": "[]",
|
||||
"weekClassTime": 29,
|
||||
"weekClassCount": 13,
|
||||
"educationMax": "高中及以下",
|
||||
"workAge": 18.838428919133122
|
||||
},
|
||||
{
|
||||
"id": 6,
|
||||
"username": "刘倩7587",
|
||||
"serialNo": "8326814177",
|
||||
"teaName": "刘倩",
|
||||
"teamId": 199,
|
||||
"graduationSchool": "清华大学",
|
||||
"education": "[{\"major\": \"证券/期货/外汇经纪人\", \"graduateTime\": \"2010-09-20\", \"qualification\": \"硕士\", \"academicDegree\": \"无\", \"graduateSchool\": \"清华大学\"}, {\"major\": \"出纳员\", \"graduateTime\": \"1991-07-08\", \"qualification\": \"硕士\", \"academicDegree\": \"无\", \"graduateSchool\": \"中山大学\"}]",
|
||||
"sex": "女",
|
||||
"age": 37,
|
||||
"birth": "1993-09-07",
|
||||
"nation": "珞巴族",
|
||||
"politicalOutlook": "其他民主党派",
|
||||
"partyMembershipTime": null,
|
||||
"employmentForm": "职工",
|
||||
"title": "二级教师",
|
||||
"part": "研发部",
|
||||
"duties": "班主任",
|
||||
"item": 9,
|
||||
"projectManagement": "系统",
|
||||
"studyPart": "教学部",
|
||||
"subject": "历史",
|
||||
"numberOfClassesTaught": 2,
|
||||
"classes": "5年级1班",
|
||||
"numberOfClassHours": 27,
|
||||
"numberOfLessonPreparations": 8,
|
||||
"classRoom": "478",
|
||||
"mentorClass": "1年级11班",
|
||||
"phone": "18040831286",
|
||||
"idNum": "130107198707110971",
|
||||
"agriculturalBankCardNumber": "6228484009091160602",
|
||||
"agriculturalBankOpeningBank": "交通银行金牛支行",
|
||||
"chengduBankCardNumber": "6214851207740238787",
|
||||
"chengduBankOpeningBank": "中国银行成都武侯支行",
|
||||
"yearOfEmployment": "2006-05-11",
|
||||
"status": 1,
|
||||
"createTime": 1752660852953,
|
||||
"updateTime": 1752660852953,
|
||||
"teacherId": 1050,
|
||||
"nativePlace": "新疆维吾尔自治区",
|
||||
"joinWorkTime": "1993-06-01",
|
||||
"inductionTime": "2006-09-11",
|
||||
"jobLevel": "特级",
|
||||
"titleTime": "2005-10-29",
|
||||
"homeAddress": "湖南省宜都县金平武街W座 253195",
|
||||
"emergencyContact": "高凤英",
|
||||
"emergencyContactPhone": "13193190747",
|
||||
"children": "[{\"gender\": \"男\", \"birthData\": \"2024-05-01\"}, {\"gender\": \"女\", \"birthData\": \"2009-12-02\"}, {\"gender\": \"女\", \"birthData\": \"1995-12-21\"}]",
|
||||
"weekClassTime": 15,
|
||||
"weekClassCount": 20,
|
||||
"educationMax": "硕士",
|
||||
"workAge": 32.21151825781937
|
||||
},
|
||||
{
|
||||
"id": 7,
|
||||
"username": "赵军3550",
|
||||
"serialNo": "0264499370",
|
||||
"teaName": "赵军",
|
||||
"teamId": 153,
|
||||
"graduationSchool": "武汉大学",
|
||||
"education": "[{\"major\": \"激光/光电子技术\", \"graduateTime\": \"2003-01-13\", \"qualification\": \"本科\", \"academicDegree\": \"学士\", \"graduateSchool\": \"武汉大学\"}]",
|
||||
"sex": "男",
|
||||
"age": 58,
|
||||
"birth": "1952-12-19",
|
||||
"nation": "阿昌族",
|
||||
"politicalOutlook": "共青团员",
|
||||
"partyMembershipTime": null,
|
||||
"employmentForm": "职工",
|
||||
"title": "未评教师",
|
||||
"part": "研发部",
|
||||
"duties": "后端",
|
||||
"item": 1,
|
||||
"projectManagement": "系统",
|
||||
"studyPart": "后勤部",
|
||||
"subject": "历史",
|
||||
"numberOfClassesTaught": 1,
|
||||
"classes": "1年级1班",
|
||||
"numberOfClassHours": 20,
|
||||
"numberOfLessonPreparations": 9,
|
||||
"classRoom": "389",
|
||||
"mentorClass": "6年级4班",
|
||||
"phone": "18836806736",
|
||||
"idNum": "450900196702030811",
|
||||
"agriculturalBankCardNumber": "6228483893044279563",
|
||||
"agriculturalBankOpeningBank": "交通银行天府新区支行",
|
||||
"chengduBankCardNumber": "6214858419348141530",
|
||||
"chengduBankOpeningBank": "中国银行成都锦江支行",
|
||||
"yearOfEmployment": "2015-08-06",
|
||||
"status": 1,
|
||||
"createTime": 1752660852954,
|
||||
"updateTime": 1752660852954,
|
||||
"teacherId": 4111,
|
||||
"nativePlace": "宁夏回族自治区",
|
||||
"joinWorkTime": "2005-07-25",
|
||||
"inductionTime": "2015-12-06",
|
||||
"jobLevel": "初级",
|
||||
"titleTime": null,
|
||||
"homeAddress": "黑龙江省张家港县东城杨路t座 280705",
|
||||
"emergencyContact": "宋淑英",
|
||||
"emergencyContactPhone": "13309262810",
|
||||
"children": "[{\"gender\": \"男\", \"birthData\": \"1993-06-23\"}, {\"gender\": \"女\", \"birthData\": \"2003-08-01\"}, {\"gender\": \"男\", \"birthData\": \"1991-06-09\"}]",
|
||||
"weekClassTime": 12,
|
||||
"weekClassCount": 7,
|
||||
"educationMax": "本科",
|
||||
"workAge": 20.52399430035498
|
||||
},
|
||||
{
|
||||
"id": 8,
|
||||
"username": "林红霞9765",
|
||||
"serialNo": "7491188897",
|
||||
"teaName": "林红霞",
|
||||
"teamId": 179,
|
||||
"graduationSchool": "哈尔滨工业大学",
|
||||
"education": "[{\"major\": \"业务分析经理/主管\", \"graduateTime\": \"1997-09-02\", \"qualification\": \"博士\", \"academicDegree\": \"硕士\", \"graduateSchool\": \"哈尔滨工业大学\"}, {\"major\": \"电信网络工程师\", \"graduateTime\": \"1991-05-27\", \"qualification\": \"博士\", \"academicDegree\": \"无\", \"graduateSchool\": \"中山大学\"}, {\"major\": \"咨询/顾问\", \"graduateTime\": \"1990-04-13\", \"qualification\": \"本科\", \"academicDegree\": \"博士\", \"graduateSchool\": \"西安交通大学\"}]",
|
||||
"sex": "女",
|
||||
"age": 45,
|
||||
"birth": "1998-11-22",
|
||||
"nation": "瑶族",
|
||||
"politicalOutlook": "中共预备党员",
|
||||
"partyMembershipTime": "1981-04-18",
|
||||
"employmentForm": "外聘",
|
||||
"title": "高级教师",
|
||||
"part": "研发部",
|
||||
"duties": "全栈",
|
||||
"item": 8,
|
||||
"projectManagement": "系统",
|
||||
"studyPart": "研发部",
|
||||
"subject": "地理",
|
||||
"numberOfClassesTaught": 6,
|
||||
"classes": "4年级8班",
|
||||
"numberOfClassHours": 23,
|
||||
"numberOfLessonPreparations": 10,
|
||||
"classRoom": "594",
|
||||
"mentorClass": "3年级17班",
|
||||
"phone": "14538117883",
|
||||
"idNum": "34060019800313175X",
|
||||
"agriculturalBankCardNumber": "6228484525833340750",
|
||||
"agriculturalBankOpeningBank": "工商银行高新支行",
|
||||
"chengduBankCardNumber": "6214859638139559252",
|
||||
"chengduBankOpeningBank": "成都银行成都锦江支行",
|
||||
"yearOfEmployment": "2021-01-18",
|
||||
"status": 1,
|
||||
"createTime": 1752660852955,
|
||||
"updateTime": 1752660852955,
|
||||
"teacherId": 4717,
|
||||
"nativePlace": "贵州省",
|
||||
"joinWorkTime": "2004-11-27",
|
||||
"inductionTime": "2021-04-18",
|
||||
"jobLevel": "教授",
|
||||
"titleTime": "1982-02-16",
|
||||
"homeAddress": "新疆维吾尔自治区六盘水县徐汇张家港街O座 535146",
|
||||
"emergencyContact": "冯洋",
|
||||
"emergencyContactPhone": "18888770268",
|
||||
"children": "[{\"gender\": \"女\", \"birthData\": \"2017-05-24\"}, {\"gender\": \"男\", \"birthData\": \"2007-02-26\"}]",
|
||||
"weekClassTime": 13,
|
||||
"weekClassCount": 13,
|
||||
"educationMax": "本科",
|
||||
"workAge": 21.25426464842692
|
||||
},
|
||||
{
|
||||
"id": 9,
|
||||
"username": "周淑兰1763",
|
||||
"serialNo": "5759203906",
|
||||
"teaName": "周淑兰",
|
||||
"teamId": 133,
|
||||
"graduationSchool": "西安交通大学",
|
||||
"education": "[{\"major\": \"督导/巡店\", \"graduateTime\": \"2005-05-11\", \"qualification\": \"博士\", \"academicDegree\": \"学士\", \"graduateSchool\": \"西安交通大学\"}]",
|
||||
"sex": "女",
|
||||
"age": 62,
|
||||
"birth": "1972-03-28",
|
||||
"nation": "傣族",
|
||||
"politicalOutlook": "群众",
|
||||
"partyMembershipTime": null,
|
||||
"employmentForm": "校聘",
|
||||
"title": "高级教师",
|
||||
"part": "教学部",
|
||||
"duties": "行政",
|
||||
"item": 10,
|
||||
"projectManagement": "小程序",
|
||||
"studyPart": "教学部",
|
||||
"subject": "地理",
|
||||
"numberOfClassesTaught": 1,
|
||||
"classes": "4年级11班",
|
||||
"numberOfClassHours": 12,
|
||||
"numberOfLessonPreparations": 6,
|
||||
"classRoom": "285",
|
||||
"mentorClass": "3年级20班",
|
||||
"phone": "18549675970",
|
||||
"idNum": "440233196108294619",
|
||||
"agriculturalBankCardNumber": "6228489228334032618",
|
||||
"agriculturalBankOpeningBank": "工商银行高新支行",
|
||||
"chengduBankCardNumber": "6214857746974203361",
|
||||
"chengduBankOpeningBank": "建设银行成都锦江支行",
|
||||
"yearOfEmployment": "2013-05-24",
|
||||
"status": 1,
|
||||
"createTime": 1752660852956,
|
||||
"updateTime": 1752660852956,
|
||||
"teacherId": 7744,
|
||||
"nativePlace": "甘肃省",
|
||||
"joinWorkTime": "2000-05-23",
|
||||
"inductionTime": "2013-07-24",
|
||||
"jobLevel": "副教授",
|
||||
"titleTime": "1993-03-23",
|
||||
"homeAddress": "江苏省秀梅市江北南京路T座 905843",
|
||||
"emergencyContact": "饶春梅",
|
||||
"emergencyContactPhone": "18030642203",
|
||||
"children": "[]",
|
||||
"weekClassTime": 24,
|
||||
"weekClassCount": 10,
|
||||
"educationMax": "博士",
|
||||
"workAge": 25.604229482023637
|
||||
},
|
||||
{
|
||||
"id": 10,
|
||||
"username": "段凤兰6415",
|
||||
"serialNo": "0773557528",
|
||||
"teaName": "段凤兰",
|
||||
"teamId": 139,
|
||||
"graduationSchool": "上海交通大学",
|
||||
"education": "[{\"major\": \"其他\", \"graduateTime\": \"2015-10-27\", \"qualification\": \"高中及以下\", \"academicDegree\": \"硕士\", \"graduateSchool\": \"上海交通大学\"}]",
|
||||
"sex": "男",
|
||||
"age": 33,
|
||||
"birth": "1984-03-12",
|
||||
"nation": "门巴族",
|
||||
"politicalOutlook": "共青团员",
|
||||
"partyMembershipTime": null,
|
||||
"employmentForm": "在编",
|
||||
"title": "未评教师",
|
||||
"part": "教学部",
|
||||
"duties": "教务",
|
||||
"item": 2,
|
||||
"projectManagement": "项目管理",
|
||||
"studyPart": "财务部",
|
||||
"subject": "化学",
|
||||
"numberOfClassesTaught": 6,
|
||||
"classes": "4年级7班",
|
||||
"numberOfClassHours": 10,
|
||||
"numberOfLessonPreparations": 13,
|
||||
"classRoom": "153",
|
||||
"mentorClass": "1年级4班",
|
||||
"phone": "15566039309",
|
||||
"idNum": "511503199211040941",
|
||||
"agriculturalBankCardNumber": "6228485937396651540",
|
||||
"agriculturalBankOpeningBank": "成都银行锦江支行",
|
||||
"chengduBankCardNumber": "6214859824366201600",
|
||||
"chengduBankOpeningBank": "工商银行成都青羊支行",
|
||||
"yearOfEmployment": "2020-12-04",
|
||||
"status": 1,
|
||||
"createTime": 1752660852957,
|
||||
"updateTime": 1752660852957,
|
||||
"teacherId": 9431,
|
||||
"nativePlace": "青海省",
|
||||
"joinWorkTime": "2009-11-01",
|
||||
"inductionTime": null,
|
||||
"jobLevel": "讲师",
|
||||
"titleTime": null,
|
||||
"homeAddress": "湖北省梧州市新城迟街P座 519863",
|
||||
"emergencyContact": "包冬梅",
|
||||
"emergencyContactPhone": "13513469845",
|
||||
"children": "[{\"gender\": \"男\", \"birthData\": \"1994-06-06\"}, {\"gender\": \"男\", \"birthData\": \"2022-05-27\"}]",
|
||||
"weekClassTime": 17,
|
||||
"weekClassCount": 7,
|
||||
"educationMax": "高中及以下",
|
||||
"workAge": 16.43753375566068
|
||||
}
|
||||
],
|
||||
"total": 10,
|
||||
"size": 15,
|
||||
"current": 1,
|
||||
"orders": [
|
||||
{
|
||||
"column": "update_time",
|
||||
"asc": false
|
||||
}
|
||||
],
|
||||
"optimizeCountSql": true,
|
||||
"hitCount": false,
|
||||
"countId": null,
|
||||
"maxLimit": null,
|
||||
"searchCount": true,
|
||||
"pages": 1
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
INSERT INTO `teacher_files` (id, username, serialNo, teaName, teamId, graduationSchool, sex, age, birth, nation, politicalOutlook, partyMembershipTime, employmentForm, title, part, duties, item, projectManagement, studyPart, subject, numberOfClassesTaught, classes, numberOfClassHours, numberOfLessonPreparations, classRoom, mentorClass, phone, idNum, agriculturalBankCardNumber, agriculturalBankOpeningBank, chengduBankCardNumber, chengduBankOpeningBank, yearOfEmployment, status, createTime, updateTime, teacherId, nativePlace, joinWorkTime, inductionTime, jobLevel, titleTime, homeAddress, emergencyContact, emergencyContactPhone, weekClassTime, weekClassCount, educationMax, workAge, `education`, `children`) VALUES ('1', '刘红霞1184', '1297430114', '刘红霞', '191', '四川大学', '男', '26', '1979-08-12', '独龙族', '中共预备党员', '2012-01-28', '职工', '一级教师', '市场部', '教务', '8', '课程开发', '人事部', '化学', '5', '5年级11班', '14', '20', '569', '1年级13班', '13899646895', '331123200009052872', '6228485319561781973', '中国银行天府新区支行', '6214853886213702753', '建设银行成都锦江支行', '2022-07-03', '1', '2025-07-16 18:14:12', '2025-07-16 18:14:12', '3247', '黑龙江省', '2011-02-14', '2022-12-03', '初级', '1997-07-15', '新疆维吾尔自治区萍市海港汕尾路u座 720978', '汪玉华', '13875717441', '23', '10', '硕士', '14.096637556042003', '[{\"major\": \"保险经纪人/保险代理\", \"graduateTime\": \"1999-12-26\", \"qualification\": \"硕士\", \"academicDegree\": \"学士\", \"graduateSchool\": \"四川大学\"}]', '[]');
|
||||
INSERT INTO `teacher_files` (id, username, serialNo, teaName, teamId, graduationSchool, sex, age, birth, nation, politicalOutlook, partyMembershipTime, employmentForm, title, part, duties, item, projectManagement, studyPart, subject, numberOfClassesTaught, classes, numberOfClassHours, numberOfLessonPreparations, classRoom, mentorClass, phone, idNum, agriculturalBankCardNumber, agriculturalBankOpeningBank, chengduBankCardNumber, chengduBankOpeningBank, yearOfEmployment, status, createTime, updateTime, teacherId, nativePlace, joinWorkTime, inductionTime, jobLevel, titleTime, homeAddress, emergencyContact, emergencyContactPhone, weekClassTime, weekClassCount, educationMax, workAge, `education`, `children`) VALUES ('2', '蔡淑华9822', '6596239475', '蔡淑华', '180', '上海交通大学', '女', '33', '1988-07-19', '纳西族', '其他民主党派', NULL, '临时工', '二级教师', '测试部门', '教务', '9', '网站', '教学部', '历史', '1', '5年级10班', '13', '15', '345', '4年级1班', '15960071855', '430112199306174970', '6228481663683412150', '中国银行锦江支行', '6214853037916195936', '交通银行成都天府新区支行', '2020-03-10', '1', '2025-07-16 18:14:12', '2025-07-16 18:14:12', '7871', '澳门特别行政区', '2017-10-20', '2020-06-10', '教授级高级', '1998-07-02', '河北省海燕市梁平阜新路r座 152152', '姚洁', '18577525797', '28', '11', '高中及以下', '8.295862311224596', '[{\"major\": \"人事助理\", \"graduateTime\": \"1989-10-29\", \"qualification\": \"高中及以下\", \"academicDegree\": \"硕士\", \"graduateSchool\": \"上海交通大学\"}]', '[]');
|
||||
INSERT INTO `teacher_files` (id, username, serialNo, teaName, teamId, graduationSchool, sex, age, birth, nation, politicalOutlook, partyMembershipTime, employmentForm, title, part, duties, item, projectManagement, studyPart, subject, numberOfClassesTaught, classes, numberOfClassHours, numberOfLessonPreparations, classRoom, mentorClass, phone, idNum, agriculturalBankCardNumber, agriculturalBankOpeningBank, chengduBankCardNumber, chengduBankOpeningBank, yearOfEmployment, status, createTime, updateTime, teacherId, nativePlace, joinWorkTime, inductionTime, jobLevel, titleTime, homeAddress, emergencyContact, emergencyContactPhone, weekClassTime, weekClassCount, educationMax, workAge, `education`, `children`) VALUES ('3', '刘璐7255', '3857197015', '刘璐', '142', '清华大学', '男', '64', '1958-04-12', '苗族', '中共党员', '1987-05-07', '在编', '二级教师', '财务部', '前端', '10', '课程开发', '财务部', '地理', '7', '4年级11班', '27', '18', '495', '1年级2班', '14799956145', '371402196210127939', '6228486018196170443', '中国银行高新支行', '6214853627798792773', '中国银行成都武侯支行', '2023-08-16', '1', '2025-07-16 18:14:12', '2025-07-16 18:14:12', '4131', '浙江省', '2014-09-14', '2023-11-16', '讲师', '2009-05-03', '安徽省长沙市门头沟刘路W座 925934', '郑玉梅', '15368633818', '27', '12', '硕士', '11.537495330358727', '[{\"major\": \"物业管理主管\", \"graduateTime\": \"2024-12-13\", \"qualification\": \"本科\", \"academicDegree\": \"博士\", \"graduateSchool\": \"清华大学\"}, {\"major\": \"样衣工\", \"graduateTime\": \"2023-12-24\", \"qualification\": \"硕士\", \"academicDegree\": \"学士\", \"graduateSchool\": \"清华大学\"}, {\"major\": \"CNC工程师\", \"graduateTime\": \"1988-01-24\", \"qualification\": \"博士\", \"academicDegree\": \"硕士\", \"graduateSchool\": \"西安交通大学\"}]', '[{\"gender\": \"女\", \"birthData\": \"2001-08-26\"}]');
|
||||
INSERT INTO `teacher_files` (id, username, serialNo, teaName, teamId, graduationSchool, sex, age, birth, nation, politicalOutlook, partyMembershipTime, employmentForm, title, part, duties, item, projectManagement, studyPart, subject, numberOfClassesTaught, classes, numberOfClassHours, numberOfLessonPreparations, classRoom, mentorClass, phone, idNum, agriculturalBankCardNumber, agriculturalBankOpeningBank, chengduBankCardNumber, chengduBankOpeningBank, yearOfEmployment, status, createTime, updateTime, teacherId, nativePlace, joinWorkTime, inductionTime, jobLevel, titleTime, homeAddress, emergencyContact, emergencyContactPhone, weekClassTime, weekClassCount, educationMax, workAge, `education`, `children`) VALUES ('4', '龚龙9194', '5709412365', '龚龙', '176', '武汉大学', '女', '47', '1988-08-21', '黎族', '中共预备党员', '2022-07-14', '外聘', '一级教师', '教学部', '班主任', '3', 'APP', '市场部', 'python', '1', '2年级11班', '23', '10', '497', '2年级18班', '15912089344', '530823197909054769', '6228486469565840285', '建设银行锦江支行', '6214851183588922960', '成都银行成都锦江支行', '1997-12-17', '1', '2025-07-16 18:14:12', '2025-07-16 18:14:12', '5683', '宁夏回族自治区', '1990-12-01', '1998-04-17', '讲师', '1992-04-09', '北京市洁县新城佛山街V座 749519', '范春梅', '15388885188', '24', '8', '高中及以下', '35.387692456680874', '[{\"major\": \"收银主管\", \"graduateTime\": \"1996-05-08\", \"qualification\": \"高中及以下\", \"academicDegree\": \"无\", \"graduateSchool\": \"武汉大学\"}]', '[]');
|
||||
INSERT INTO `teacher_files` (id, username, serialNo, teaName, teamId, graduationSchool, sex, age, birth, nation, politicalOutlook, partyMembershipTime, employmentForm, title, part, duties, item, projectManagement, studyPart, subject, numberOfClassesTaught, classes, numberOfClassHours, numberOfLessonPreparations, classRoom, mentorClass, phone, idNum, agriculturalBankCardNumber, agriculturalBankOpeningBank, chengduBankCardNumber, chengduBankOpeningBank, yearOfEmployment, status, createTime, updateTime, teacherId, nativePlace, joinWorkTime, inductionTime, jobLevel, titleTime, homeAddress, emergencyContact, emergencyContactPhone, weekClassTime, weekClassCount, educationMax, workAge, `education`, `children`) VALUES ('5', '杨玉珍4258', '7273347563', '杨玉珍', '153', '清华大学', '男', '36', '1965-10-29', '乌孜别克族', '其他民主党派', NULL, '外聘', '高级教师', '教学部', '行政', '0', 'APP', '人事部', '生物', '1', '2年级17班', '25', '16', '151', '6年级7班', '13035578561', '341825198803282061', '6228486697113082577', '中国银行武侯支行', '6214859920319223383', '中国银行成都天府新区支行', '2019-07-20', '1', '2025-07-16 18:14:12', '2025-07-16 18:14:12', '6519', '山东省', '2014-06-20', '2019-09-20', '特级', '2014-09-27', '新疆维吾尔自治区杨市永川曾路o座 652053', '吴慧', '18692546523', '19', '19', '本科', '11.35374658626053', '[{\"major\": \"网站编辑\", \"graduateTime\": \"2015-02-18\", \"qualification\": \"大专\", \"academicDegree\": \"无\", \"graduateSchool\": \"清华大学\"}, {\"major\": \"店长/经理\", \"graduateTime\": \"2003-11-05\", \"qualification\": \"本科\", \"academicDegree\": \"无\", \"graduateSchool\": \"中山大学\"}, {\"major\": \"客服总监\", \"graduateTime\": \"1987-04-24\", \"qualification\": \"博士\", \"academicDegree\": \"博士\", \"graduateSchool\": \"中山大学\"}]', '[{\"gender\": \"女\", \"birthData\": \"2003-12-11\"}, {\"gender\": \"男\", \"birthData\": \"2018-09-11\"}]');
|
||||
INSERT INTO `teacher_files` (id, username, serialNo, teaName, teamId, graduationSchool, sex, age, birth, nation, politicalOutlook, partyMembershipTime, employmentForm, title, part, duties, item, projectManagement, studyPart, subject, numberOfClassesTaught, classes, numberOfClassHours, numberOfLessonPreparations, classRoom, mentorClass, phone, idNum, agriculturalBankCardNumber, agriculturalBankOpeningBank, chengduBankCardNumber, chengduBankOpeningBank, yearOfEmployment, status, createTime, updateTime, teacherId, nativePlace, joinWorkTime, inductionTime, jobLevel, titleTime, homeAddress, emergencyContact, emergencyContactPhone, weekClassTime, weekClassCount, educationMax, workAge, `education`, `children`) VALUES ('6', '王红7036', '0118519328', '王红', '192', '上海交通大学', '男', '29', '2000-05-21', '鄂伦春族', '其他民主党派', NULL, '在编', '未评教师', '研发部', '班主任', '9', '课程开发', '研发部', '生物', '9', '4年级8班', '29', '18', '552', '6年级4班', '15145460699', '440804199706252886', '6228487347045686480', '交通银行成华支行', '6214854699448255406', '中国银行成都成华支行', '2013-05-05', '1', '2025-07-16 18:14:12', '2025-07-16 18:14:12', '3455', '台湾省', '1982-05-27', '2013-11-05', '教授', NULL, '河南省婷婷市清浦澳门路Z座 726165', '朱玉', '15781207463', '29', '13', '硕士', '43.99372379212602', '[{\"major\": \"VIP专员\", \"graduateTime\": \"1999-02-19\", \"qualification\": \"硕士\", \"academicDegree\": \"博士\", \"graduateSchool\": \"上海交通大学\"}, {\"major\": \"运输经理/主管\", \"graduateTime\": \"1991-03-28\", \"qualification\": \"硕士\", \"academicDegree\": \"博士\", \"graduateSchool\": \"北京大学\"}]', '[]');
|
||||
INSERT INTO `teacher_files` (id, username, serialNo, teaName, teamId, graduationSchool, sex, age, birth, nation, politicalOutlook, partyMembershipTime, employmentForm, title, part, duties, item, projectManagement, studyPart, subject, numberOfClassesTaught, classes, numberOfClassHours, numberOfLessonPreparations, classRoom, mentorClass, phone, idNum, agriculturalBankCardNumber, agriculturalBankOpeningBank, chengduBankCardNumber, chengduBankOpeningBank, yearOfEmployment, status, createTime, updateTime, teacherId, nativePlace, joinWorkTime, inductionTime, jobLevel, titleTime, homeAddress, emergencyContact, emergencyContactPhone, weekClassTime, weekClassCount, educationMax, workAge, `education`, `children`) VALUES ('7', '张玉华8714', '9720211859', '张玉华', '110', '北京大学', '女', '30', '1987-08-16', '赫哲族', '群众', NULL, '在编', '二级教师', '测试部门', '行政', '9', '系统', '研发部', '化学', '2', '5年级16班', '22', '8', '470', '4年级14班', '13406285169', '141123199411206699', '6228486879726771017', '工商银行成华支行', '6214852932661410427', '交通银行成都天府新区支行', '1996-05-11', '1', '2025-07-16 18:14:12', '2025-07-16 18:14:12', '9595', '香港特别行政区', '1993-08-01', '1996-10-11', '教授级高级', '2008-05-09', '贵州省丹丹市清城沈阳街s座 893397', '蒋浩', '15299859434', '19', '10', '硕士', '32.90001647168158', '[{\"major\": \"汽车设计工程师\", \"graduateTime\": \"1995-07-12\", \"qualification\": \"大专\", \"academicDegree\": \"学士\", \"graduateSchool\": \"北京大学\"}, {\"major\": \"其他\", \"graduateTime\": \"1985-07-11\", \"qualification\": \"硕士\", \"academicDegree\": \"博士\", \"graduateSchool\": \"上海交通大学\"}, {\"major\": \"审计经理/主管\", \"graduateTime\": \"1985-07-11\", \"qualification\": \"大专\", \"academicDegree\": \"无\", \"graduateSchool\": \"四川大学\"}]', '[]');
|
||||
INSERT INTO `teacher_files` (id, username, serialNo, teaName, teamId, graduationSchool, sex, age, birth, nation, politicalOutlook, partyMembershipTime, employmentForm, title, part, duties, item, projectManagement, studyPart, subject, numberOfClassesTaught, classes, numberOfClassHours, numberOfLessonPreparations, classRoom, mentorClass, phone, idNum, agriculturalBankCardNumber, agriculturalBankOpeningBank, chengduBankCardNumber, chengduBankOpeningBank, yearOfEmployment, status, createTime, updateTime, teacherId, nativePlace, joinWorkTime, inductionTime, jobLevel, titleTime, homeAddress, emergencyContact, emergencyContactPhone, weekClassTime, weekClassCount, educationMax, workAge, `education`, `children`) VALUES ('8', '张平6070', '7466324627', '张平', '154', '哈尔滨工业大学', '女', '51', '2000-09-21', '蒙古族', '其他民主党派', NULL, '职工', '二级教师', '市场部', '教务', '9', '系统', '行政部', '物理', '10', '4年级12班', '19', '15', '184', '6年级6班', '15793205336', '530524197410080036', '6228480055340039129', '建设银行高新支行', '6214859070386793158', '工商银行成都成华支行', '2009-05-28', '1', '2025-07-16 18:14:12', '2025-07-16 18:14:12', '1245', '安徽省', '1986-06-21', '2009-09-28', '讲师', '1996-05-02', '新疆维吾尔自治区秀芳县涪城齐齐哈尔街q座 814358', '毛燕', '15615254713', '29', '18', '硕士', '39.86413960328499', '[{\"major\": \"销售人员\", \"graduateTime\": \"2022-06-23\", \"qualification\": \"硕士\", \"academicDegree\": \"博士\", \"graduateSchool\": \"哈尔滨工业大学\"}, {\"major\": \"故障分析工程师\", \"graduateTime\": \"1984-03-28\", \"qualification\": \"博士\", \"academicDegree\": \"学士\", \"graduateSchool\": \"上海交通大学\"}, {\"major\": \"店长/经理\", \"graduateTime\": \"1980-04-11\", \"qualification\": \"本科\", \"academicDegree\": \"无\", \"graduateSchool\": \"哈尔滨工业大学\"}]', '[{\"gender\": \"男\", \"birthData\": \"2008-09-12\"}, {\"gender\": \"女\", \"birthData\": \"2013-09-24\"}]');
|
||||
INSERT INTO `teacher_files` (id, username, serialNo, teaName, teamId, graduationSchool, sex, age, birth, nation, politicalOutlook, partyMembershipTime, employmentForm, title, part, duties, item, projectManagement, studyPart, subject, numberOfClassesTaught, classes, numberOfClassHours, numberOfLessonPreparations, classRoom, mentorClass, phone, idNum, agriculturalBankCardNumber, agriculturalBankOpeningBank, chengduBankCardNumber, chengduBankOpeningBank, yearOfEmployment, status, createTime, updateTime, teacherId, nativePlace, joinWorkTime, inductionTime, jobLevel, titleTime, homeAddress, emergencyContact, emergencyContactPhone, weekClassTime, weekClassCount, educationMax, workAge, `education`, `children`) VALUES ('9', '李桂香2614', '4711329607', '李桂香', '129', '中山大学', '女', '30', '1985-05-21', '高山族', '中共党员', '2022-07-11', '在编', '高级教师', '教学部', '行政', '5', '课程开发', '研发部', '化学', '9', '6年级11班', '30', '8', '116', '2年级5班', '13601530475', '120114199512021502', '6228481224753965562', '中国银行锦江支行', '6214853857978687153', '工商银行成都天府新区支行', '2021-06-03', '2', '2025-07-16 18:14:12', '2025-07-16 18:14:12', '7168', '浙江省', '2016-04-23', NULL, '初级', '1983-01-11', '山西省长春县淄川杨街y座 155692', '张杨', '18180850601', '16', '18', '高中及以下', '9.665386434131749', '[{\"major\": \"临床研究员\", \"graduateTime\": \"2021-09-30\", \"qualification\": \"高中及以下\", \"academicDegree\": \"硕士\", \"graduateSchool\": \"中山大学\"}, {\"major\": \"生产总监\", \"graduateTime\": \"2010-10-09\", \"qualification\": \"硕士\", \"academicDegree\": \"无\", \"graduateSchool\": \"西安交通大学\"}]', '[{\"gender\": \"女\", \"birthData\": \"2023-09-18\"}]');
|
||||
INSERT INTO `teacher_files` (id, username, serialNo, teaName, teamId, graduationSchool, sex, age, birth, nation, politicalOutlook, partyMembershipTime, employmentForm, title, part, duties, item, projectManagement, studyPart, subject, numberOfClassesTaught, classes, numberOfClassHours, numberOfLessonPreparations, classRoom, mentorClass, phone, idNum, agriculturalBankCardNumber, agriculturalBankOpeningBank, chengduBankCardNumber, chengduBankOpeningBank, yearOfEmployment, status, createTime, updateTime, teacherId, nativePlace, joinWorkTime, inductionTime, jobLevel, titleTime, homeAddress, emergencyContact, emergencyContactPhone, weekClassTime, weekClassCount, educationMax, workAge, `education`, `children`) VALUES ('10', '雷平8379', '2276366314', '雷平', '196', '西安交通大学', '女', '53', '1979-09-23', '满族', '中共党员', '2010-02-18', '校聘', '一级教师', '财务部', '教师', '4', 'APP', '教学部', '语文', '8', '1年级19班', '28', '5', '150', '3年级10班', '18771482976', '520624197407252363', '6228481597016678047', '工商银行高新支行', '6214850306817135716', '建设银行成都天府新区支行', '2012-05-04', '1', '2025-07-16 18:14:12', '2025-07-16 18:14:12', '2394', '江苏省', '1990-02-26', '2012-07-04', '高级', '1997-08-28', '吉林省凤英县西夏邯郸街K座 995822', '马雪梅', '15918339592', '19', '17', '高中及以下', '35.68367703354602', '[{\"major\": \"互联网/电子商务/网游\", \"graduateTime\": \"2002-07-29\", \"qualification\": \"高中及以下\", \"academicDegree\": \"博士\", \"graduateSchool\": \"西安交通大学\"}]', '[{\"gender\": \"男\", \"birthData\": \"2000-02-15\"}, {\"gender\": \"女\", \"birthData\": \"2005-05-31\"}]');
|
||||
@@ -0,0 +1,218 @@
|
||||
{
|
||||
"cells": [
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 1,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"import requests\n",
|
||||
"import time\n",
|
||||
"import random\n",
|
||||
"import datetime"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 7,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"ip = \"http://139.159.182.121:8090\"\n",
|
||||
"# param = {\n",
|
||||
"# \"username\": \"zhongwei\",\n",
|
||||
"# \"password\": \"123456a\",\n",
|
||||
"# \"client_id\": \"client\",\n",
|
||||
"# \"grant_type\": \"password\",\n",
|
||||
"# \"client_secret\": \"123456\",\n",
|
||||
"# }\n",
|
||||
"# data = requests.get(url=f\"{ip}/oauth/token\", params=param).json()\n",
|
||||
"# token = data[\"access_token\"]\n",
|
||||
"# header = {\n",
|
||||
"# \"content-type\": \"application/json\",\n",
|
||||
"# \"authorization\": f\"Bearer {token}\",\n",
|
||||
"# }"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 3,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"bandNos = ['0985704955','0890497621','2631768263']"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"int(datetime.datetime.now().timestamp()*1000)"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 3,
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"'2024-10-22 17:38:19'"
|
||||
]
|
||||
},
|
||||
"execution_count": 3,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"datetime.datetime.strftime(datetime.datetime.now(), '%Y-%m-%d %H:%M:%S')"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 5,
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"1729553899000.0"
|
||||
]
|
||||
},
|
||||
"execution_count": 5,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"datetime.datetime.strptime('2024-10-22 07:38:19', '%Y-%m-%d %H:%M:%S').timestamp()*1000"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 8,
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"''"
|
||||
]
|
||||
},
|
||||
"execution_count": 8,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"requests.get(url=f\"{ip}/schoolBus/crad\",params={\"bandNo\": '0976835307',\"serialNo\":'865860043867069',\"time\":1729553899000}).text"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"103, 30"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 1,
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"733 米\n",
|
||||
"587 米\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"from geopy.distance import geodesic\n",
|
||||
"# 定义两个地点的经纬度坐标\n",
|
||||
"location1 = (30.70125, 103.99548 )#起点\n",
|
||||
"location2 = (30.70423, 103.98864)#黄\n",
|
||||
"location3 = (30.70260, 103.99447)#泡\n",
|
||||
"# 计算地理距离\n",
|
||||
"distance = geodesic(location1, location2).m\n",
|
||||
"distance2 = geodesic(location2, location3).m\n",
|
||||
"# 输出地理距离\n",
|
||||
"print(f\"{int(distance)} 米\")\n",
|
||||
"print(f\"{int(distance2)} 米\")"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"for index,pos in enumerate(positions):\n",
|
||||
" x,y=pos\n",
|
||||
" response = requests.get(url=f\"{ip}/schoolBus/gps\",params={\"serialNo\":'868626047777357',\"time\":int(datetime.datetime.now().timestamp()*1000),\"coodx\":x,\"coody\":y}).text\n",
|
||||
" print(response)\n",
|
||||
" time.sleep(10)"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"while True:\n",
|
||||
" data = requests.get(url=f\"{ip}/schoolBus/location\",params={\"serialNo\":'865860043833053'}).text\n",
|
||||
" print(data)\n",
|
||||
" time.sleep(30)"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"requests.get(url=f\"{ip}/schoolBus/crad\",params={\"bandNo\": bandNos[0],\"serialNo\":'868626047775245',\"time\":int(datetime.datetime.now().timestamp()*1000)}).text"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"response = requests.get(url=f\"{ip}/schoolBus/gps\",params={\"serialNo\":'868626047775245',\"time\":int(datetime.datetime.now().timestamp()*1000),\"coodx\":10399440, \"coody\":3070043}).text\n",
|
||||
"print(response)"
|
||||
]
|
||||
}
|
||||
],
|
||||
"metadata": {
|
||||
"kernelspec": {
|
||||
"display_name": "base",
|
||||
"language": "python",
|
||||
"name": "python3"
|
||||
},
|
||||
"language_info": {
|
||||
"codemirror_mode": {
|
||||
"name": "ipython",
|
||||
"version": 3
|
||||
},
|
||||
"file_extension": ".py",
|
||||
"mimetype": "text/x-python",
|
||||
"name": "python",
|
||||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython3",
|
||||
"version": "3.12.4"
|
||||
}
|
||||
},
|
||||
"nbformat": 4,
|
||||
"nbformat_minor": 2
|
||||
}
|
||||
@@ -0,0 +1,286 @@
|
||||
{
|
||||
"cells": [
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 75,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"with open(\"log.txt\",\"r\") as f:\n",
|
||||
" content = f.read()\n",
|
||||
" content = content.split(\"\\n\")"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 76,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"positions = []\n",
|
||||
"for i in content:\n",
|
||||
" positions.append(i.split(\"\\t\"))\n",
|
||||
" "
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 77,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"import requests\n",
|
||||
"import time\n",
|
||||
"import random\n",
|
||||
"import datetime"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 78,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"ip = \"http://192.168.0.224:8084\"\n",
|
||||
"param = {\n",
|
||||
" \"username\": \"zhongwei\",\n",
|
||||
" \"password\": \"123456a\",\n",
|
||||
" \"client_id\": \"client\",\n",
|
||||
" \"grant_type\": \"password\",\n",
|
||||
" \"client_secret\": \"123456\",\n",
|
||||
"}\n",
|
||||
"data = requests.get(url=f\"{ip}/oauth/token\", params=param).json()\n",
|
||||
"token = data[\"access_token\"]\n",
|
||||
"header = {\n",
|
||||
" \"content-type\": \"application/json\",\n",
|
||||
" \"authorization\": f\"Bearer {token}\",\n",
|
||||
"}"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 79,
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"0\n",
|
||||
"10399368 3070207\n",
|
||||
"{'id': 167, 'name': '泡桐树中学', 'coodx': '10399447', 'coody': '3070260', 'distancePre': 0.11, 'serialNo': '865860043897629', 'time': 1729243090635}\n",
|
||||
"1\n",
|
||||
"10399315 3070130\n",
|
||||
"{'id': 167, 'name': '泡桐树中学', 'coodx': '10399447', 'coody': '3070260', 'distancePre': 0.2, 'serialNo': '865860043897629', 'time': 1729243094731}\n",
|
||||
"2\n",
|
||||
"10399498 3070002\n",
|
||||
"{'id': 167, 'name': '泡桐树中学', 'coodx': '10399447', 'coody': '3070260', 'distancePre': 0.35, 'serialNo': '865860043897629', 'time': 1729243098831}\n",
|
||||
"3\n",
|
||||
"10399670 3069859\n",
|
||||
"{'id': 167, 'name': '泡桐树中学', 'coodx': '10399447', 'coody': '3070260', 'distancePre': 0.61, 'serialNo': '865860043897629', 'time': 1729243102910}\n",
|
||||
"4\n",
|
||||
"10399687 3069660\n",
|
||||
"{'id': 167, 'name': '泡桐树中学', 'coodx': '10399447', 'coody': '3070260', 'distancePre': 0.75, 'serialNo': '865860043897629', 'time': 1729243107012}\n",
|
||||
"5\n",
|
||||
"10399758 3069486\n",
|
||||
"{'id': 168, 'name': '黄苑街口', 'coodx': '10399932', 'coody': '3069687', 'distancePre': 0.52, 'serialNo': '865860043897629', 'time': 1729243111096}\n",
|
||||
"6\n",
|
||||
"10399789 3069309\n",
|
||||
"{'id': 168, 'name': '黄苑街口', 'coodx': '10399932', 'coody': '3069687', 'distancePre': 0.87, 'serialNo': '865860043897629', 'time': 1729243115185}\n",
|
||||
"7\n",
|
||||
"10399732 3069169\n",
|
||||
"{'id': 169, 'name': '苏坡公园', 'coodx': '10399770', 'coody': '3069253', 'distancePre': 0.21, 'serialNo': '865860043897629', 'time': 1729243119316}\n",
|
||||
"8\n",
|
||||
"10399635 3069006\n",
|
||||
"{'id': 169, 'name': '苏坡公园', 'coodx': '10399770', 'coody': '3069253', 'distancePre': 0.62, 'serialNo': '865860043897629', 'time': 1729243123424}\n",
|
||||
"9\n",
|
||||
"10399528 3068847\n",
|
||||
"{'id': 170, 'name': '金泽路口', 'coodx': '10399605', 'coody': '3068840', 'distancePre': 0.1, 'serialNo': '865860043897629', 'time': 1729243127516}\n",
|
||||
"10\n",
|
||||
"10399380 3068570\n",
|
||||
"{'id': 170, 'name': '金泽路口', 'coodx': '10399605', 'coody': '3068840', 'distancePre': 0.52, 'serialNo': '865860043897629', 'time': 1729243131598}\n",
|
||||
"11\n",
|
||||
"10399231 3068341\n",
|
||||
"{'id': 170, 'name': '金泽路口', 'coodx': '10399605', 'coody': '3068840', 'distancePre': 0.93, 'serialNo': '865860043897629', 'time': 1729243135677}\n",
|
||||
"12\n",
|
||||
"10399077 3068106\n",
|
||||
"{'id': 171, 'name': '蜀鑫东路口', 'coodx': '10399201', 'coody': '3068303', 'distancePre': 0.63, 'serialNo': '865860043897629', 'time': 1729243139780}\n",
|
||||
"13\n",
|
||||
"10398956 3067924\n",
|
||||
"{'id': 172, 'name': '苏坡立交北站', 'coodx': '10399008', 'coody': '3067990', 'distancePre': 0.17, 'serialNo': '865860043897629', 'time': 1729243143900}\n",
|
||||
"14\n",
|
||||
"10398795 3067992\n",
|
||||
"{'id': 172, 'name': '苏坡立交北站', 'coodx': '10399008', 'coody': '3067990', 'distancePre': 0.43, 'serialNo': '865860043897629', 'time': 1729243147980}\n",
|
||||
"15\n",
|
||||
"10398790 3067993\n",
|
||||
"{'id': 172, 'name': '苏坡立交北站', 'coodx': '10399008', 'coody': '3067990', 'distancePre': 0.44, 'serialNo': '865860043897629', 'time': 1729243152083}\n",
|
||||
"16\n",
|
||||
"10398681 3067877\n",
|
||||
"{'id': 172, 'name': '苏坡立交北站', 'coodx': '10399008', 'coody': '3067990', 'distancePre': 0.55, 'serialNo': '865860043897629', 'time': 1729243156165}\n",
|
||||
"17\n",
|
||||
"10398668 3067829\n",
|
||||
"{'id': 172, 'name': '苏坡立交北站', 'coodx': '10399008', 'coody': '3067990', 'distancePre': 0.54, 'serialNo': '865860043897629', 'time': 1729243160258}\n",
|
||||
"18\n",
|
||||
"10398406 3067785\n",
|
||||
"{'id': 173, 'name': '金福路东', 'coodx': '10398541', 'coody': '3068095', 'distancePre': 0.81, 'serialNo': '865860043897629', 'time': 1729243164340}\n",
|
||||
"19\n",
|
||||
"10398382 3067830\n",
|
||||
"{'id': 174, 'name': '蜀清路', 'coodx': '10398385', 'coody': '3067861', 'distancePre': 0.11, 'serialNo': '865860043897629', 'time': 1729243168424}\n",
|
||||
"20\n",
|
||||
"10398362 3067900\n",
|
||||
"{'id': 174, 'name': '蜀清路', 'coodx': '10398385', 'coody': '3067861', 'distancePre': 0.14, 'serialNo': '865860043897629', 'time': 1729243172507}\n",
|
||||
"21\n",
|
||||
"10398373 3067961\n",
|
||||
"{'id': 174, 'name': '蜀清路', 'coodx': '10398385', 'coody': '3067861', 'distancePre': 0.26, 'serialNo': '865860043897629', 'time': 1729243176596}\n",
|
||||
"22\n",
|
||||
"10398380 3068026\n",
|
||||
"{'id': 174, 'name': '蜀清路', 'coodx': '10398385', 'coody': '3067861', 'distancePre': 0.35, 'serialNo': '865860043897629', 'time': 1729243180684}\n",
|
||||
"23\n",
|
||||
"10398424 3068131\n",
|
||||
"{'id': 175, 'name': '清水滨河路', 'coodx': '10398657', 'coody': '3067831', 'distancePre': 0.0, 'serialNo': '865860043897629', 'time': 1729243184770}\n",
|
||||
"24\n",
|
||||
"10398454 3068126\n",
|
||||
"{'id': 175, 'name': '清水滨河路', 'coodx': '10398657', 'coody': '3067831', 'distancePre': 0.0, 'serialNo': '865860043897629', 'time': 1729243184770}\n",
|
||||
"25\n",
|
||||
"10398643 3068121\n",
|
||||
"{'id': 175, 'name': '清水滨河路', 'coodx': '10398657', 'coody': '3067831', 'distancePre': 0.0, 'serialNo': '865860043897629', 'time': 1729243184770}\n",
|
||||
"26\n",
|
||||
"10398752 3068314\n",
|
||||
"{'id': 175, 'name': '清水滨河路', 'coodx': '10398657', 'coody': '3067831', 'distancePre': 0.0, 'serialNo': '865860043897629', 'time': 1729243184770}\n",
|
||||
"27\n",
|
||||
"10398903 3068250\n",
|
||||
"{'id': 175, 'name': '清水滨河路', 'coodx': '10398657', 'coody': '3067831', 'distancePre': 0.0, 'serialNo': '865860043897629', 'time': 1729243184770}\n",
|
||||
"28\n",
|
||||
"10399091 3068162\n",
|
||||
"{'id': 175, 'name': '清水滨河路', 'coodx': '10398657', 'coody': '3067831', 'distancePre': 0.0, 'serialNo': '865860043897629', 'time': 1729243184770}\n",
|
||||
"29\n",
|
||||
"10398946 3068262\n",
|
||||
"{'id': 175, 'name': '清水滨河路', 'coodx': '10398657', 'coody': '3067831', 'distancePre': 0.0, 'serialNo': '865860043897629', 'time': 1729243184770}\n",
|
||||
"30\n",
|
||||
"10398852 3068289\n",
|
||||
"{'id': 175, 'name': '清水滨河路', 'coodx': '10398657', 'coody': '3067831', 'distancePre': 0.0, 'serialNo': '865860043897629', 'time': 1729243184770}\n",
|
||||
"31\n",
|
||||
"10398844 3068302\n",
|
||||
"{'id': 175, 'name': '清水滨河路', 'coodx': '10398657', 'coody': '3067831', 'distancePre': 0.0, 'serialNo': '865860043897629', 'time': 1729243184770}\n",
|
||||
"32\n",
|
||||
"10398790 3068330\n",
|
||||
"{'id': 175, 'name': '清水滨河路', 'coodx': '10398657', 'coody': '3067831', 'distancePre': 0.0, 'serialNo': '865860043897629', 'time': 1729243184770}\n",
|
||||
"33\n",
|
||||
"10398578 3068431\n",
|
||||
"{'id': 175, 'name': '清水滨河路', 'coodx': '10398657', 'coody': '3067831', 'distancePre': 0.0, 'serialNo': '865860043897629', 'time': 1729243184770}\n",
|
||||
"34\n",
|
||||
"10398400 3068513\n",
|
||||
"{'id': 175, 'name': '清水滨河路', 'coodx': '10398657', 'coody': '3067831', 'distancePre': 0.0, 'serialNo': '865860043897629', 'time': 1729243184770}\n",
|
||||
"35\n",
|
||||
"10398399 3068513\n",
|
||||
"{'id': 175, 'name': '清水滨河路', 'coodx': '10398657', 'coody': '3067831', 'distancePre': 0.0, 'serialNo': '865860043897629', 'time': 1729243184770}\n",
|
||||
"36\n",
|
||||
"10398398 3068510\n",
|
||||
"{'id': 175, 'name': '清水滨河路', 'coodx': '10398657', 'coody': '3067831', 'distancePre': 0.0, 'serialNo': '865860043897629', 'time': 1729243184770}\n",
|
||||
"37\n",
|
||||
"10398398 3068511\n",
|
||||
"{'id': 175, 'name': '清水滨河路', 'coodx': '10398657', 'coody': '3067831', 'distancePre': 0.0, 'serialNo': '865860043897629', 'time': 1729243184770}\n",
|
||||
"38\n",
|
||||
"10398398 3068513\n",
|
||||
"{'id': 175, 'name': '清水滨河路', 'coodx': '10398657', 'coody': '3067831', 'distancePre': 0.0, 'serialNo': '865860043897629', 'time': 1729243184770}\n",
|
||||
"39\n",
|
||||
"10398396 3068510\n",
|
||||
"{'id': 175, 'name': '清水滨河路', 'coodx': '10398657', 'coody': '3067831', 'distancePre': 0.0, 'serialNo': '865860043897629', 'time': 1729243184770}\n",
|
||||
"40\n",
|
||||
"10398403 3068514\n",
|
||||
"{'id': 175, 'name': '清水滨河路', 'coodx': '10398657', 'coody': '3067831', 'distancePre': 0.0, 'serialNo': '865860043897629', 'time': 1729243184770}\n",
|
||||
"41\n",
|
||||
"10398372 3068527\n",
|
||||
"{'id': 175, 'name': '清水滨河路', 'coodx': '10398657', 'coody': '3067831', 'distancePre': 0.0, 'serialNo': '865860043897629', 'time': 1729243184770}\n",
|
||||
"42\n",
|
||||
"10398359 3068549\n",
|
||||
"{'id': 175, 'name': '清水滨河路', 'coodx': '10398657', 'coody': '3067831', 'distancePre': 0.0, 'serialNo': '865860043897629', 'time': 1729243184770}\n",
|
||||
"43\n",
|
||||
"10398330 3068555\n",
|
||||
"{'id': 175, 'name': '清水滨河路', 'coodx': '10398657', 'coody': '3067831', 'distancePre': 0.0, 'serialNo': '865860043897629', 'time': 1729243184770}\n",
|
||||
"44\n",
|
||||
"10398244 3068578\n",
|
||||
"{'id': 175, 'name': '清水滨河路', 'coodx': '10398657', 'coody': '3067831', 'distancePre': 0.0, 'serialNo': '865860043897629', 'time': 1729243184770}\n",
|
||||
"45\n",
|
||||
"10398253 3068576\n",
|
||||
"{'id': 175, 'name': '清水滨河路', 'coodx': '10398657', 'coody': '3067831', 'distancePre': 0.0, 'serialNo': '865860043897629', 'time': 1729243184770}\n",
|
||||
"46\n",
|
||||
"10398246 3068572\n",
|
||||
"{'id': 175, 'name': '清水滨河路', 'coodx': '10398657', 'coody': '3067831', 'distancePre': 0.0, 'serialNo': '865860043897629', 'time': 1729243184770}\n",
|
||||
"47\n",
|
||||
"10398243 3068575\n",
|
||||
"{'id': 175, 'name': '清水滨河路', 'coodx': '10398657', 'coody': '3067831', 'distancePre': 0.0, 'serialNo': '865860043897629', 'time': 1729243184770}\n",
|
||||
"48\n",
|
||||
"10398067 3068655\n",
|
||||
"{'id': 175, 'name': '清水滨河路', 'coodx': '10398657', 'coody': '3067831', 'distancePre': 0.0, 'serialNo': '865860043897629', 'time': 1729243184770}\n",
|
||||
"49\n",
|
||||
"10397899 3068705\n",
|
||||
"{'id': 175, 'name': '清水滨河路', 'coodx': '10398657', 'coody': '3067831', 'distancePre': 0.0, 'serialNo': '865860043897629', 'time': 1729243184770}\n",
|
||||
"50\n",
|
||||
"10397543 3068653\n",
|
||||
"{'id': 175, 'name': '清水滨河路', 'coodx': '10398657', 'coody': '3067831', 'distancePre': 0.0, 'serialNo': '865860043897629', 'time': 1729243184770}\n",
|
||||
"51\n",
|
||||
"10397409 3068624\n",
|
||||
"{'id': 175, 'name': '清水滨河路', 'coodx': '10398657', 'coody': '3067831', 'distancePre': 0.0, 'serialNo': '865860043897629', 'time': 1729243184770}\n",
|
||||
"52\n",
|
||||
"10397398 3068619\n",
|
||||
"{'id': 175, 'name': '清水滨河路', 'coodx': '10398657', 'coody': '3067831', 'distancePre': 0.0, 'serialNo': '865860043897629', 'time': 1729243184770}\n",
|
||||
"53\n",
|
||||
"10397396 3068617\n",
|
||||
"{'id': 175, 'name': '清水滨河路', 'coodx': '10398657', 'coody': '3067831', 'distancePre': 0.0, 'serialNo': '865860043897629', 'time': 1729243184770}\n",
|
||||
"54\n",
|
||||
"10397263 3068598\n",
|
||||
"{'id': 175, 'name': '清水滨河路', 'coodx': '10398657', 'coody': '3067831', 'distancePre': 0.0, 'serialNo': '865860043897629', 'time': 1729243184770}\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"for index,pos in enumerate(positions,start=0):\n",
|
||||
" x,y=pos\n",
|
||||
" response = requests.get(url=f\"{ip}/schoolBus/card\",params={\"serialNo\":'865860043897629',\"time\":int(datetime.datetime.now().timestamp()*1000),\"coodx\":x,\"coody\":y}).text\n",
|
||||
" print(index)\n",
|
||||
" print(x,y)\n",
|
||||
" data = requests.get(url=f\"{ip}/locationNew\",params={\"id\": 8}).json()\n",
|
||||
" print(data[\"data\"][\"schoolBusLocation\"])\n",
|
||||
" time.sleep(4)"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"requests.get(url=f\"{ip}/schoolBus/location\",params={\"serialNo\":'868626047775245'}).text"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": []
|
||||
}
|
||||
],
|
||||
"metadata": {
|
||||
"kernelspec": {
|
||||
"display_name": "base",
|
||||
"language": "python",
|
||||
"name": "python3"
|
||||
},
|
||||
"language_info": {
|
||||
"codemirror_mode": {
|
||||
"name": "ipython",
|
||||
"version": 3
|
||||
},
|
||||
"file_extension": ".py",
|
||||
"mimetype": "text/x-python",
|
||||
"name": "python",
|
||||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython3",
|
||||
"version": "3.12.4"
|
||||
}
|
||||
},
|
||||
"nbformat": 4,
|
||||
"nbformat_minor": 2
|
||||
}
|
||||
@@ -0,0 +1,360 @@
|
||||
{
|
||||
"cells": [
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 1,
|
||||
"id": "eb6a8154",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"import pandas as pd\n",
|
||||
"df = pd.read_excel('./学生信息_最新.xlsx',dtype='str')"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 5,
|
||||
"id": "78f0cdaa",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"'<html>\\r\\n<head><title>404 Not Found</title></head>\\r\\n<body bgcolor=\"white\">\\r\\n<center><h1>404 Not Found</h1></center>\\r\\n<hr><center>nginx/1.4.0</center>\\r\\n</body>\\r\\n</html>\\r\\n'"
|
||||
]
|
||||
},
|
||||
"execution_count": 5,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"get(url=f\"http://band.hxzhxy.cn/oauth/token?username=zhongwei&password=123456a&client_id=client&grant_type=password&client_secret=123456\").text"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 1,
|
||||
"id": "d34b4562",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"from requests import get,post\n",
|
||||
"import time\n",
|
||||
"ip = \"http://band.hxzhxy.cn\"\n",
|
||||
"param = {\n",
|
||||
" \"username\": \"tangchao\",\n",
|
||||
" \"password\": \"123456a\",\n",
|
||||
" \"client_id\": \"client\",\n",
|
||||
" \"grant_type\": \"password\",\n",
|
||||
" \"client_secret\": \"123456\",\n",
|
||||
"}\n",
|
||||
"data = get(url=f\"http://band.hxzhxy.cn/oauth/token?username=zhongwei&password=123456a&client_id=client&grant_type=password&client_secret=123456\").json()\n",
|
||||
"token = data[\"access_token\"]\n",
|
||||
"header = {\n",
|
||||
" \"content-type\": \"application/json\",\n",
|
||||
" \"authorization\": f\"Bearer {token}\",\n",
|
||||
"}"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 3,
|
||||
"id": "80c5ff5c",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stderr",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"C:\\Users\\Administrator\\AppData\\Local\\Temp\\ipykernel_11244\\3332289157.py:1: DeprecationWarning: DataFrameGroupBy.apply operated on the grouping columns. This behavior is deprecated, and in a future version of pandas the grouping columns will be excluded from the operation. Either pass `include_groups=False` to exclude the groupings or explicitly select the grouping columns after groupby to silence this warning.\n",
|
||||
" a = df.groupby(\"教室\").apply(lambda x:x[\"手环号\"].tolist())\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"a = df.groupby(\"教室\").apply(lambda x:x[\"手环号\"].tolist())"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"id": "bd8942ac",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": []
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 4,
|
||||
"id": "6756c409",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"doors = get(f\"https://band.hxzhxy.cn/door/lock/listLockPage?teamId=119&pageSize=60&pageNumber=0&value=&areaId=&tierId=®ionId=&bindType=&lockName=&type=2&mainTypeId=&sizeType=&lockType=&access_token={token}\").json()"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 5,
|
||||
"id": "11c5f395",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"doors_map ={}\n",
|
||||
"for item in doors[\"data\"][\"content\"]:\n",
|
||||
" doors_map[item[\"lockName\"]] = item[\"lockNo\"]"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 6,
|
||||
"id": "ac4e8886",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"教室\n",
|
||||
"2210 [0022796140, 0022753212, 0022796172, 310863721...\n",
|
||||
"2211 [3108594513, 3108622273, 3108583137, 002303998...\n",
|
||||
"2212 [3108445809, 3108464161, 3108415601, 310846636...\n",
|
||||
"2213 [0022820892, 3108624769, 3108605505, 310846235...\n",
|
||||
"2214 [3108599409, 3107632929, 3108571601, 002272249...\n",
|
||||
"2311 [3108598753, 3108438913, 3108358785, 310839236...\n",
|
||||
"2312 [3108631313, 0022702140, 3108584241, 002283212...\n",
|
||||
"2313 [3108562849, 0022679980, 3108437249, 310843908...\n",
|
||||
"2314 [3108415473, 3108462385, 0022752972, 310862931...\n",
|
||||
"2510 [0022822732, 3108606273, 3108390481, 002279577...\n",
|
||||
"2511 [3108388321, 0022704076, 3108582545, 002270244...\n",
|
||||
"2512 [3108606081, 3108614401, 3108600385, 310844576...\n",
|
||||
"2513 [3108440913, 3108683713, 3108588817, 310868209...\n",
|
||||
"2514 [3108361393, 3108600401, 3108597553, 310860504...\n",
|
||||
"dtype: object"
|
||||
]
|
||||
},
|
||||
"execution_count": 6,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"a"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 7,
|
||||
"id": "9c65d092",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"for key,value in a.items():\n",
|
||||
" lockNo = doors_map.get(f'{key}前门',None)\n",
|
||||
" addUserBand = \",\".join(value)\n"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 2,
|
||||
"id": "4cae8da6",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"result =post(\"https://band.hxzhxy.cn/door/accredit/sendNews\",json={\"startTime\":\"25083115\",\"endTime\":\"28052815\",\"adminType\":\"55\",\"type\":\"01\",\"time\":[1756625633772,1843112033772],\"accountIp\":\"183.220.92.52\",\"accountName\":\"183.220.92.52\",\"lockNo\":\"181681774702\",\"serialNo\":\"868002345684294\",\"addAdminBand\":\"\",\"addUserBand\":\"3108624305\",\"removeBand\":\"\",\"doorAccreditIds\":\"\"},headers=header).text"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"id": "aef76278",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"from datetime import datetime,timedelta\n",
|
||||
"start = datetime.now().strftime(\"%y%m%d%H\")\n",
|
||||
"end = (datetime.now()+ timedelta(days=365)).strftime(\"%y%m%d%H\")"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"id": "ed36257e",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"('25091916', '26091916')"
|
||||
]
|
||||
},
|
||||
"execution_count": 10,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
},
|
||||
{
|
||||
"ename": "",
|
||||
"evalue": "",
|
||||
"output_type": "error",
|
||||
"traceback": [
|
||||
"\u001b[1;31m在当前单元格或上一个单元格中执行代码时 Kernel 崩溃。\n",
|
||||
"\u001b[1;31m请查看单元格中的代码,以确定故障的可能原因。\n",
|
||||
"\u001b[1;31m单击<a href='https://aka.ms/vscodeJupyterKernelCrash'>此处</a>了解详细信息。\n",
|
||||
"\u001b[1;31m有关更多详细信息,请查看 Jupyter <a href='command:jupyter.viewOutput'>log</a>。"
|
||||
]
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"start,end"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"id": "673efe31",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"下发2512前门\n",
|
||||
"参数lockNo:181681774855,serialNo:868002345684074,addUserBand:3108606081,3108614401,3108600385,3108445761,0022754844,3108629505,3108601713,3108590993,0022722508,3108586817,3108354753,3108586769,3108386177,3108359649,3108584129,3108356609,0022830300,3108637281,3108637185,3108605073,3108605345,3108632769,0022796108,3108595409,3108562881,3108614321,3108388129,3108603841,0022821084,3108359713,3108358529,3108460625,0023038412,3108466545,3108681873,3108396257,3108652497\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n"
|
||||
]
|
||||
},
|
||||
{
|
||||
"ename": "",
|
||||
"evalue": "",
|
||||
"output_type": "error",
|
||||
"traceback": [
|
||||
"\u001b[1;31m在当前单元格或上一个单元格中执行代码时 Kernel 崩溃。\n",
|
||||
"\u001b[1;31m请查看单元格中的代码,以确定故障的可能原因。\n",
|
||||
"\u001b[1;31m单击<a href='https://aka.ms/vscodeJupyterKernelCrash'>此处</a>了解详细信息。\n",
|
||||
"\u001b[1;31m有关更多详细信息,请查看 Jupyter <a href='command:jupyter.viewOutput'>log</a>。"
|
||||
]
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"# for key,value in a.items():\n",
|
||||
"# lockNo = doors_map.get(f'{key}前门',None)\n",
|
||||
"# addUserBand = \",\".join(value)\n",
|
||||
"for key,value in a.items():\n",
|
||||
" lockNo = doors_map.get(f'{key}前门',None)\n",
|
||||
" addUserBand = \",\".join(value)\n",
|
||||
" if key!='2512':continue\n",
|
||||
" for item in doors[\"data\"][\"content\"]:\n",
|
||||
" if item[\"lockName\"] == f'{key}前门':\n",
|
||||
" print( f'下发{key}前门')\n",
|
||||
" print(f\"参数lockNo:{lockNo},serialNo:{item['serialNo']},addUserBand:{addUserBand}\")\n",
|
||||
" result =post(\"https://band.hxzhxy.cn/door/accredit/sendNews\",json={\"startTime\":\"25083115\",\"endTime\":\"28052815\",\"adminType\":\"55\",\"type\":\"01\",\"time\":[1756625633772,1843112033772],\"accountIp\":\"183.220.92.52\",\"accountName\":\"183.220.92.52\",\"lockNo\":lockNo,\"serialNo\":item[\"serialNo\"],\"addAdminBand\":\"\",\"addUserBand\":addUserBand,\"removeBand\":\"\",\"doorAccreditIds\":\"\"},headers=header).text\n",
|
||||
" print(result)\n",
|
||||
" # print(a)\n",
|
||||
" time.sleep(10)\n",
|
||||
" break\n",
|
||||
" "
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 12,
|
||||
"id": "c4e96b85",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"import tqdm"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 31,
|
||||
"id": "96da8a5d",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stderr",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"100%|██████████| 52/52 [00:07<00:00, 7.22it/s]\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"data = get(f\"https://band.hxzhxy.cn/door/lock/listLockPage?teamId=119&pageSize=60&pageNumber=0&value=&areaId=&tierId=®ionId=&bindType=&lockName=&type=2&mainTypeId=&sizeType=&lockType=&access_token={token}\").json()\n",
|
||||
"with tqdm.tqdm(total=len(data[\"data\"][\"content\"])) as pbar:\n",
|
||||
" for item in data[\"data\"][\"content\"]:\n",
|
||||
" if item[\"password\"] == \"12345687\" or item[\"password\"]==None: \n",
|
||||
" pbar.update(1)\n",
|
||||
" continue\n",
|
||||
" post(\"https://band.hxzhxy.cn/door/password/send\",json={\"lockNos\":item[\"lockNo\"],\"serialNos\":item[\"serialNo\"],\"password\":\"12345687\",\"type\":\"04\",\"typeSend\":\"0\",\"accountIp\":\"183.220.91.181\",\"accountName\":\"183.220.91.181\",\"account\":\"5789\"},headers=header)\n",
|
||||
" time.sleep(7)\n",
|
||||
" pbar.update(1)"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 33,
|
||||
"id": "ee45017c",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"{'bandUserCount': 0, 'lockNo': '181681774855', 'teamId': 119, 'electric': 100, 'tierName': '5', 'doorName': '2512前门', 'ID': 723, 'lockType': 2, 'remark': None, 'mainType': '教室', 'type': '', 'password': '88888888', 'bandAdminCount': 4, 'remask': None, 'alias': '教学楼3-2门锁网关', 'createTime': 1755314698000, 'dongId': 28, 'genre': None, 'gateType': 1, 'dongName': '1栋', 'lockName': '2512前门', 'roomName': '2512', 'image': None, 'sizeType': 1, 'isPassword': 1, 'regionName': '无', 'areaId': 20, 'updateTime': None, 'version': None, 'serialNo': '868002345684074', 'opsTime': None, 'teamName': '2512', 'tierId': 64, 'doorId': 747, 'areaName': '教学楼', 'batteryType': None}\n",
|
||||
"88888888\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"data = get(f\"https://band.hxzhxy.cn/door/lock/listLockPage?teamId=119&pageSize=60&pageNumber=0&value=&areaId=&tierId=®ionId=&bindType=&lockName=&type=2&mainTypeId=&sizeType=&lockType=&access_token={token}\").json()\n",
|
||||
"for item in data[\"data\"][\"content\"]:\n",
|
||||
" if item[\"password\"] != \"12345687\" and item[\"password\"]!=None:\n",
|
||||
" print(item)\n",
|
||||
" print(item['password'])"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 9,
|
||||
"id": "cc3c500c",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"32"
|
||||
]
|
||||
},
|
||||
"execution_count": 9,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"len(\"Xpaotongshutongwenzhongxue971001\")"
|
||||
]
|
||||
}
|
||||
],
|
||||
"metadata": {
|
||||
"kernelspec": {
|
||||
"display_name": "base",
|
||||
"language": "python",
|
||||
"name": "python3"
|
||||
},
|
||||
"language_info": {
|
||||
"codemirror_mode": {
|
||||
"name": "ipython",
|
||||
"version": 3
|
||||
},
|
||||
"file_extension": ".py",
|
||||
"mimetype": "text/x-python",
|
||||
"name": "python",
|
||||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython3",
|
||||
"version": "3.12.4"
|
||||
}
|
||||
},
|
||||
"nbformat": 4,
|
||||
"nbformat_minor": 5
|
||||
}
|
||||
@@ -0,0 +1,314 @@
|
||||
{
|
||||
"cells": [
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 1,
|
||||
"id": "d34b4562",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"from requests import get,post\n",
|
||||
"import time\n",
|
||||
"ip = \"http://band.hxzhxy.cn\"\n",
|
||||
"param = {\n",
|
||||
" \"username\": \"tangchao\",\n",
|
||||
" \"password\": \"123456a\",\n",
|
||||
" \"client_id\": \"client\",\n",
|
||||
" \"grant_type\": \"password\",\n",
|
||||
" \"client_secret\": \"123456\",\n",
|
||||
"}\n",
|
||||
"data = get(url=f\"http://band.hxzhxy.cn/oauth/token?username=zhongwei&password=123456a&client_id=client&grant_type=password&client_secret=123456\").json()\n",
|
||||
"token = data[\"access_token\"]\n",
|
||||
"header = {\n",
|
||||
" \"content-type\": \"application/json\",\n",
|
||||
" \"authorization\": f\"Bearer {token}\",\n",
|
||||
"}"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"id": "03513226",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"ename": "",
|
||||
"evalue": "",
|
||||
"output_type": "error",
|
||||
"traceback": [
|
||||
"\u001b[1;31m在当前单元格或上一个单元格中执行代码时 Kernel 崩溃。\n",
|
||||
"\u001b[1;31m请查看单元格中的代码,以确定故障的可能原因。\n",
|
||||
"\u001b[1;31m单击<a href='https://aka.ms/vscodeJupyterKernelCrash'>此处</a>了解详细信息。\n",
|
||||
"\u001b[1;31m有关更多详细信息,请查看 Jupyter <a href='command:jupyter.viewOutput'>log</a>。"
|
||||
]
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"data = get(f\"https://band.hxzhxy.cn/door/lock/listLockPage?teamId=119&pageSize=60&pageNumber=0&value=&areaId=&tierId=®ionId=&bindType=&lockName=&type=2&mainTypeId=&sizeType=&lockType=&access_token={token}\").json()"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 3,
|
||||
"id": "4108fb9a",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"import time"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 4,
|
||||
"id": "266fc913",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"serialNos=['1619991908']"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 5,
|
||||
"id": "673efe31",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"for item in data[\"data\"][\"content\"]:\n",
|
||||
" addAdminBand =\",\".join(serialNos)\n",
|
||||
" a =post(\"https://band.hxzhxy.cn/door/accredit/sendNews\",json={\n",
|
||||
" \"startTime\":\"25082114\",\"endTime\":\"35051814\",\"adminType\":\"55\",\"type\":\"01\",\"time\":[1755756984314,2071380076000],\"accountIp\":\"183.220.92.213\",\"accountName\":\"183.220.92.213\",\"lockNo\":item[\"lockNo\"],\"serialNo\":item[\"serialNo\"],\"addAdminBand\":\"\",\"addUserBand\":addAdminBand,\"removeBand\":\"\",\"doorAccreditIds\":\"\"\n",
|
||||
" },headers=header).text\n",
|
||||
" print(a)\n",
|
||||
" time.sleep(1)\n",
|
||||
" "
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"id": "c4e96b85",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"import tqdm"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"id": "96da8a5d",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"data = get(f\"https://band.hxzhxy.cn/door/lock/listLockPage?teamId=119&pageSize=60&pageNumber=0&value=&areaId=&tierId=®ionId=&bindType=&lockName=&type=2&mainTypeId=&sizeType=&lockType=&access_token={token}\").json()\n",
|
||||
"with tqdm.tqdm(total=len(data[\"data\"][\"content\"])) as pbar:\n",
|
||||
" for item in data[\"data\"][\"content\"]:\n",
|
||||
" if item[\"password\"] == \"12345687\" or item[\"password\"]==None: \n",
|
||||
" pbar.update(1)\n",
|
||||
" continue\n",
|
||||
" post(\"https://band.hxzhxy.cn/door/password/send\",json={\"lockNos\":item[\"lockNo\"],\"serialNos\":item[\"serialNo\"],\"password\":\"12345687\",\"type\":\"04\",\"typeSend\":\"0\",\"accountIp\":\"183.220.91.181\",\"accountName\":\"183.220.91.181\",\"account\":\"5789\"},headers=header)\n",
|
||||
" time.sleep(7)\n",
|
||||
" pbar.update(1)"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"id": "ee45017c",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"data = get(f\"https://band.hxzhxy.cn/door/lock/listLockPage?teamId=119&pageSize=60&pageNumber=0&value=&areaId=&tierId=®ionId=&bindType=&lockName=&type=2&mainTypeId=&sizeType=&lockType=&access_token={token}\").json()\n",
|
||||
"for item in data[\"data\"][\"content\"]:\n",
|
||||
" if item[\"password\"] != \"12345687\" and item[\"password\"]!=None:\n",
|
||||
" print(item)\n",
|
||||
" print(item['password'])"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"id": "cc3c500c",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"len(\"Xpaotongshutongwenzhongxue971001\")"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 37,
|
||||
"id": "e1a6df45",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"['4007516707',\n",
|
||||
" '4009525491',\n",
|
||||
" '4004683395',\n",
|
||||
" '4008811955',\n",
|
||||
" '4008924883',\n",
|
||||
" '4009224243',\n",
|
||||
" '4009213507',\n",
|
||||
" '4009187555',\n",
|
||||
" '4007743635',\n",
|
||||
" '4009523651',\n",
|
||||
" '4008270787',\n",
|
||||
" '4009482275',\n",
|
||||
" '0276930835',\n",
|
||||
" '4009509123',\n",
|
||||
" '4007526915',\n",
|
||||
" '4007516643',\n",
|
||||
" '4008464659',\n",
|
||||
" '4009443907',\n",
|
||||
" '4009203219',\n",
|
||||
" '4009209379',\n",
|
||||
" '3478812113',\n",
|
||||
" '3470473985']"
|
||||
]
|
||||
},
|
||||
"execution_count": 37,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"serialNos"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 43,
|
||||
"id": "d35c7e00",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"0\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"#权限提取\n",
|
||||
"count = 0\n",
|
||||
"for item in data[\"data\"][\"content\"]:\n",
|
||||
" teacher = get(f\"https://band.hxzhxy.cn/door/admin/selectAllTeacherAndSerialNew?teamId=119&lockNo={item['lockNo']}&access_token=2ca5ff6c-24a0-4231-98e2-fec9e38c5a38\").json()[\"data\"][\"userTea\"]\n",
|
||||
" flag = True\n",
|
||||
" for i in teacher:\n",
|
||||
" if '物业' in i[\"teaName\"]:\n",
|
||||
" flag = False\n",
|
||||
" break\n",
|
||||
" if flag:\n",
|
||||
" print(item[\"lockName\"])\n",
|
||||
" count+=1\n",
|
||||
" addAdminBand =\",\".join(serialNos)\n",
|
||||
" a =post(\"https://band.hxzhxy.cn/door/accredit/sendNews\",json={\n",
|
||||
" \"startTime\":\"25082114\",\"endTime\":\"35051814\",\"adminType\":\"55\",\"type\":\"01\",\"time\":[1755756984314,2071380076000],\"accountIp\":\"183.220.92.213\",\"accountName\":\"183.220.92.213\",\"lockNo\":item[\"lockNo\"],\"serialNo\":item[\"serialNo\"],\"addAdminBand\":\"\",\"addUserBand\":addAdminBand,\"removeBand\":\"\",\"doorAccreditIds\":\"\"\n",
|
||||
" },headers=header).text\n",
|
||||
" time.sleep(10)\n",
|
||||
" \n",
|
||||
"print(count)"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"id": "263663b3",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": []
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"id": "978802c0",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": []
|
||||
}
|
||||
],
|
||||
"metadata": {
|
||||
"kernelspec": {
|
||||
"display_name": "base",
|
||||
"language": "python",
|
||||
"name": "python3"
|
||||
},
|
||||
"language_info": {
|
||||
"codemirror_mode": {
|
||||
"name": "ipython",
|
||||
"version": 3
|
||||
},
|
||||
"file_extension": ".py",
|
||||
"mimetype": "text/x-python",
|
||||
"name": "python",
|
||||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython3",
|
||||
"version": "3.12.4"
|
||||
}
|
||||
},
|
||||
"nbformat": 4,
|
||||
"nbformat_minor": 5
|
||||
}
|
||||
@@ -0,0 +1,331 @@
|
||||
{
|
||||
"cells": [
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 25,
|
||||
"id": "d99d999d",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"import pandas as pd"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 27,
|
||||
"id": "955684bc",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"df = pd.read_excel(\"./学生信息.xls\", usecols=['学号', '姓名', '性别', '年级','班级'])"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 28,
|
||||
"id": "7a49db1c",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"class_count = df.groupby(['年级', '班级']).size().reset_index(name='人数')"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 29,
|
||||
"id": "3e00f787",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"data": {
|
||||
"text/html": [
|
||||
"<div>\n",
|
||||
"<style scoped>\n",
|
||||
" .dataframe tbody tr th:only-of-type {\n",
|
||||
" vertical-align: middle;\n",
|
||||
" }\n",
|
||||
"\n",
|
||||
" .dataframe tbody tr th {\n",
|
||||
" vertical-align: top;\n",
|
||||
" }\n",
|
||||
"\n",
|
||||
" .dataframe thead th {\n",
|
||||
" text-align: right;\n",
|
||||
" }\n",
|
||||
"</style>\n",
|
||||
"<table border=\"1\" class=\"dataframe\">\n",
|
||||
" <thead>\n",
|
||||
" <tr style=\"text-align: right;\">\n",
|
||||
" <th></th>\n",
|
||||
" <th>年级</th>\n",
|
||||
" <th>班级</th>\n",
|
||||
" <th>人数</th>\n",
|
||||
" </tr>\n",
|
||||
" </thead>\n",
|
||||
" <tbody>\n",
|
||||
" <tr>\n",
|
||||
" <th>0</th>\n",
|
||||
" <td>26学部</td>\n",
|
||||
" <td>1班</td>\n",
|
||||
" <td>42</td>\n",
|
||||
" </tr>\n",
|
||||
" <tr>\n",
|
||||
" <th>1</th>\n",
|
||||
" <td>26学部</td>\n",
|
||||
" <td>2班</td>\n",
|
||||
" <td>41</td>\n",
|
||||
" </tr>\n",
|
||||
" <tr>\n",
|
||||
" <th>2</th>\n",
|
||||
" <td>26学部</td>\n",
|
||||
" <td>3班</td>\n",
|
||||
" <td>38</td>\n",
|
||||
" </tr>\n",
|
||||
" <tr>\n",
|
||||
" <th>3</th>\n",
|
||||
" <td>26学部</td>\n",
|
||||
" <td>4班</td>\n",
|
||||
" <td>40</td>\n",
|
||||
" </tr>\n",
|
||||
" <tr>\n",
|
||||
" <th>4</th>\n",
|
||||
" <td>26学部</td>\n",
|
||||
" <td>5班</td>\n",
|
||||
" <td>39</td>\n",
|
||||
" </tr>\n",
|
||||
" <tr>\n",
|
||||
" <th>5</th>\n",
|
||||
" <td>27学部</td>\n",
|
||||
" <td>1班</td>\n",
|
||||
" <td>48</td>\n",
|
||||
" </tr>\n",
|
||||
" <tr>\n",
|
||||
" <th>6</th>\n",
|
||||
" <td>27学部</td>\n",
|
||||
" <td>2班</td>\n",
|
||||
" <td>47</td>\n",
|
||||
" </tr>\n",
|
||||
" <tr>\n",
|
||||
" <th>7</th>\n",
|
||||
" <td>27学部</td>\n",
|
||||
" <td>3班</td>\n",
|
||||
" <td>46</td>\n",
|
||||
" </tr>\n",
|
||||
" <tr>\n",
|
||||
" <th>8</th>\n",
|
||||
" <td>27学部</td>\n",
|
||||
" <td>4班</td>\n",
|
||||
" <td>48</td>\n",
|
||||
" </tr>\n",
|
||||
" <tr>\n",
|
||||
" <th>9</th>\n",
|
||||
" <td>27学部</td>\n",
|
||||
" <td>5班</td>\n",
|
||||
" <td>48</td>\n",
|
||||
" </tr>\n",
|
||||
" <tr>\n",
|
||||
" <th>10</th>\n",
|
||||
" <td>28学部</td>\n",
|
||||
" <td>1班</td>\n",
|
||||
" <td>49</td>\n",
|
||||
" </tr>\n",
|
||||
" <tr>\n",
|
||||
" <th>11</th>\n",
|
||||
" <td>28学部</td>\n",
|
||||
" <td>2班</td>\n",
|
||||
" <td>49</td>\n",
|
||||
" </tr>\n",
|
||||
" <tr>\n",
|
||||
" <th>12</th>\n",
|
||||
" <td>28学部</td>\n",
|
||||
" <td>3班</td>\n",
|
||||
" <td>49</td>\n",
|
||||
" </tr>\n",
|
||||
" <tr>\n",
|
||||
" <th>13</th>\n",
|
||||
" <td>28学部</td>\n",
|
||||
" <td>4班</td>\n",
|
||||
" <td>49</td>\n",
|
||||
" </tr>\n",
|
||||
" </tbody>\n",
|
||||
"</table>\n",
|
||||
"</div>"
|
||||
],
|
||||
"text/plain": [
|
||||
" 年级 班级 人数\n",
|
||||
"0 26学部 1班 42\n",
|
||||
"1 26学部 2班 41\n",
|
||||
"2 26学部 3班 38\n",
|
||||
"3 26学部 4班 40\n",
|
||||
"4 26学部 5班 39\n",
|
||||
"5 27学部 1班 48\n",
|
||||
"6 27学部 2班 47\n",
|
||||
"7 27学部 3班 46\n",
|
||||
"8 27学部 4班 48\n",
|
||||
"9 27学部 5班 48\n",
|
||||
"10 28学部 1班 49\n",
|
||||
"11 28学部 2班 49\n",
|
||||
"12 28学部 3班 49\n",
|
||||
"13 28学部 4班 49"
|
||||
]
|
||||
},
|
||||
"execution_count": 29,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"class_count"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"id": "bc5324c0",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": []
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 13,
|
||||
"id": "6a622610",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"df = pd.read_excel(\"./学生信息.xls\", usecols=['学号', '姓名', '性别', '年级'])\n",
|
||||
"row_strings = set()\n",
|
||||
"for _, row in df.iterrows():\n",
|
||||
" row_str = f\"{row['学号']}{row['姓名']}{row['性别']}{row['年级']}\"\n",
|
||||
" row_strings.add(row_str)"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 14,
|
||||
"id": "c2b0ab79",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"(633, 4)"
|
||||
]
|
||||
},
|
||||
"execution_count": 14,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"df.shape"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 15,
|
||||
"id": "e5f90213",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"633"
|
||||
]
|
||||
},
|
||||
"execution_count": 15,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"len(row_strings)"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 21,
|
||||
"id": "0ec9fe0a",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"df1 = pd.read_excel(\"./学生信息2.xls\", usecols=['学号', '姓名', '性别', '年级'])\n",
|
||||
"row_strings1 = set()\n",
|
||||
"for _, row in df.iterrows():\n",
|
||||
" row_str = f\"{row['学号']}{row['姓名']}{row['性别']}{row['年级']}\"\n",
|
||||
" row_strings1.add(row_str)"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 22,
|
||||
"id": "75d2483a",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"'260434于铭达男26学部'"
|
||||
]
|
||||
},
|
||||
"execution_count": 22,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"row_strings1.pop()"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 24,
|
||||
"id": "e5180f79",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"{'260434于铭达男26学部'}"
|
||||
]
|
||||
},
|
||||
"execution_count": 24,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"row_strings - row_strings1 "
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"id": "e87426b4",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": []
|
||||
}
|
||||
],
|
||||
"metadata": {
|
||||
"kernelspec": {
|
||||
"display_name": "base",
|
||||
"language": "python",
|
||||
"name": "python3"
|
||||
},
|
||||
"language_info": {
|
||||
"codemirror_mode": {
|
||||
"name": "ipython",
|
||||
"version": 3
|
||||
},
|
||||
"file_extension": ".py",
|
||||
"mimetype": "text/x-python",
|
||||
"name": "python",
|
||||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython3",
|
||||
"version": "3.12.4"
|
||||
}
|
||||
},
|
||||
"nbformat": 4,
|
||||
"nbformat_minor": 5
|
||||
}
|
||||
+1030
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,58 @@
|
||||
{
|
||||
"cells": [
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 1,
|
||||
"id": "f7558ad5",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"from requests import get,post\n",
|
||||
"import time\n",
|
||||
"ip = \"http://band.hxzhxy.cn\"\n",
|
||||
"param = {\n",
|
||||
" \"username\": \"zhongwei\",\n",
|
||||
" \"password\": \"123456a\",\n",
|
||||
" \"client_id\": \"client\",\n",
|
||||
" \"grant_type\": \"password\",\n",
|
||||
" \"client_secret\": \"123456\",\n",
|
||||
"}\n",
|
||||
"data = get(url=f\"http://band.hxzhxy.cn/oauth/token?username=zhongwei&password=123456a&client_id=client&grant_type=password&client_secret=123456\").json()\n",
|
||||
"token = data[\"access_token\"]\n",
|
||||
"header = {\n",
|
||||
" \"content-type\": \"application/json\",\n",
|
||||
" \"authorization\": f\"Bearer {token}\",\n",
|
||||
"}"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"id": "355a8be9",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": []
|
||||
}
|
||||
],
|
||||
"metadata": {
|
||||
"kernelspec": {
|
||||
"display_name": "base",
|
||||
"language": "python",
|
||||
"name": "python3"
|
||||
},
|
||||
"language_info": {
|
||||
"codemirror_mode": {
|
||||
"name": "ipython",
|
||||
"version": 3
|
||||
},
|
||||
"file_extension": ".py",
|
||||
"mimetype": "text/x-python",
|
||||
"name": "python",
|
||||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython3",
|
||||
"version": "3.12.4"
|
||||
}
|
||||
},
|
||||
"nbformat": 4,
|
||||
"nbformat_minor": 5
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
{
|
||||
"cells": [
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 1,
|
||||
"id": "87b031d3",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"from requests import get,post\n",
|
||||
"import time\n",
|
||||
"ip = \"http://band.hxzhxy.cn\"\n",
|
||||
"param = {\n",
|
||||
" \"username\": \"zhongwei\",\n",
|
||||
" \"password\": \"123456a\",\n",
|
||||
" \"client_id\": \"client\",\n",
|
||||
" \"grant_type\": \"password\",\n",
|
||||
" \"client_secret\": \"123456\",\n",
|
||||
"}\n",
|
||||
"data = get(url=f\"http://band.hxzhxy.cn/oauth/token?username=zhongwei&password=123456a&client_id=client&grant_type=password&client_secret=123456\").json()\n",
|
||||
"token = data[\"access_token\"]\n",
|
||||
"header = {\n",
|
||||
" \"content-type\": \"application/json\",\n",
|
||||
" \"authorization\": f\"Bearer {token}\",\n",
|
||||
"}"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 4,
|
||||
"id": "e8d05784",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"for i in range(1,5):\n",
|
||||
" post(f\"https://band.hxzhxy.cn/uc/class/add?access_token={token}\",json={\"gradeId\":128,\"teamId\":119,\"className\":f\"{i}班\",\"enabled\":True})"
|
||||
]
|
||||
}
|
||||
],
|
||||
"metadata": {
|
||||
"kernelspec": {
|
||||
"display_name": "base",
|
||||
"language": "python",
|
||||
"name": "python3"
|
||||
},
|
||||
"language_info": {
|
||||
"codemirror_mode": {
|
||||
"name": "ipython",
|
||||
"version": 3
|
||||
},
|
||||
"file_extension": ".py",
|
||||
"mimetype": "text/x-python",
|
||||
"name": "python",
|
||||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython3",
|
||||
"version": "3.12.4"
|
||||
}
|
||||
},
|
||||
"nbformat": 4,
|
||||
"nbformat_minor": 5
|
||||
}
|
||||
@@ -0,0 +1,402 @@
|
||||
{
|
||||
"cells": [
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 1,
|
||||
"id": "8722d8c1",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"from requests import get,post\n",
|
||||
"import time\n",
|
||||
"ip = \"http://band.hxzhxy.cn\"\n",
|
||||
"param = {\n",
|
||||
" \"username\": \"tangchao\",\n",
|
||||
" \"password\": \"123456a\",\n",
|
||||
" \"client_id\": \"client\",\n",
|
||||
" \"grant_type\": \"password\",\n",
|
||||
" \"client_secret\": \"123456\",\n",
|
||||
"}\n",
|
||||
"data = get(url=f\"http://band.hxzhxy.cn/oauth/token?username=zhongwei&password=123456a&client_id=client&grant_type=password&client_secret=123456\").json()\n",
|
||||
"token = data[\"access_token\"]\n",
|
||||
"header = {\n",
|
||||
" \"content-type\": \"application/json\",\n",
|
||||
" \"authorization\": f\"Bearer {token}\",\n",
|
||||
"}"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 3,
|
||||
"id": "0a5daac0",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"with open(\"老师卡号.txt\",\"r\") as f:\n",
|
||||
" data = f.readlines()"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 6,
|
||||
"id": "4fe7cc35",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"data = [i.strip() for i in data]"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 7,
|
||||
"id": "e3abd961",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"data = set(data)"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 8,
|
||||
"id": "3671ee4c",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"{'3469514193',\n",
|
||||
" '3469519393',\n",
|
||||
" '3469552177',\n",
|
||||
" '3469581313',\n",
|
||||
" '3469596961',\n",
|
||||
" '3469609649',\n",
|
||||
" '3469612369',\n",
|
||||
" '3469621121',\n",
|
||||
" '3469623857',\n",
|
||||
" '3469629441',\n",
|
||||
" '3469643777',\n",
|
||||
" '3469682817',\n",
|
||||
" '3469702017',\n",
|
||||
" '3469703377',\n",
|
||||
" '3469704033',\n",
|
||||
" '3469706961',\n",
|
||||
" '3469718081',\n",
|
||||
" '3469718929',\n",
|
||||
" '3469734897',\n",
|
||||
" '3469746033',\n",
|
||||
" '3469747265',\n",
|
||||
" '3469755041',\n",
|
||||
" '3469787969',\n",
|
||||
" '3469805089',\n",
|
||||
" '3469814913',\n",
|
||||
" '3469825521',\n",
|
||||
" '3469832865',\n",
|
||||
" '3469842913',\n",
|
||||
" '3469864113',\n",
|
||||
" '3469892865',\n",
|
||||
" '3469900369',\n",
|
||||
" '3469902913',\n",
|
||||
" '3469903873',\n",
|
||||
" '3469920465',\n",
|
||||
" '3469921185',\n",
|
||||
" '3469921281',\n",
|
||||
" '3469921969',\n",
|
||||
" '3469924737',\n",
|
||||
" '3469935969',\n",
|
||||
" '3469937233',\n",
|
||||
" '3469948529',\n",
|
||||
" '3469977073',\n",
|
||||
" '3469979137',\n",
|
||||
" '3470112929',\n",
|
||||
" '3470131089',\n",
|
||||
" '3470131617',\n",
|
||||
" '3470146785',\n",
|
||||
" '3470161617',\n",
|
||||
" '3470201473',\n",
|
||||
" '3470232945',\n",
|
||||
" '3470249217',\n",
|
||||
" '3470254721',\n",
|
||||
" '3470256161',\n",
|
||||
" '3470260225',\n",
|
||||
" '3470267665',\n",
|
||||
" '3470271137',\n",
|
||||
" '3470273073',\n",
|
||||
" '3470274017',\n",
|
||||
" '3470281505',\n",
|
||||
" '3470290369',\n",
|
||||
" '3470295313',\n",
|
||||
" '3470306737',\n",
|
||||
" '3470321169',\n",
|
||||
" '3470326177',\n",
|
||||
" '3470367985',\n",
|
||||
" '3470398209',\n",
|
||||
" '3470413809',\n",
|
||||
" '3470416705',\n",
|
||||
" '3470427441',\n",
|
||||
" '3470436417',\n",
|
||||
" '3470455105',\n",
|
||||
" '3470456161',\n",
|
||||
" '3470467185',\n",
|
||||
" '3478099521',\n",
|
||||
" '3478109089',\n",
|
||||
" '3478114145',\n",
|
||||
" '3478118337',\n",
|
||||
" '3478122689',\n",
|
||||
" '3478127985',\n",
|
||||
" '3478134321',\n",
|
||||
" '3478138625',\n",
|
||||
" '3478142449',\n",
|
||||
" '3478149377',\n",
|
||||
" '3478189425',\n",
|
||||
" '3478219489',\n",
|
||||
" '3478222433',\n",
|
||||
" '3478239377',\n",
|
||||
" '3478275697',\n",
|
||||
" '3478282593',\n",
|
||||
" '3478360833',\n",
|
||||
" '3478373857',\n",
|
||||
" '3478374961',\n",
|
||||
" '3478376993',\n",
|
||||
" '3478381361',\n",
|
||||
" '3478767249',\n",
|
||||
" '3478768177',\n",
|
||||
" '3478784033',\n",
|
||||
" '3478799537',\n",
|
||||
" '3478822609',\n",
|
||||
" '3478824289',\n",
|
||||
" '3478826705',\n",
|
||||
" '3478849873',\n",
|
||||
" '3478859505',\n",
|
||||
" '3478868353',\n",
|
||||
" '3478878849',\n",
|
||||
" '3478883393',\n",
|
||||
" '3478885889',\n",
|
||||
" '3478891265',\n",
|
||||
" '3478891489',\n",
|
||||
" '3478899025',\n",
|
||||
" '3478905201',\n",
|
||||
" '3478905425',\n",
|
||||
" '3478935969',\n",
|
||||
" '3478937745',\n",
|
||||
" '3479120625',\n",
|
||||
" '3479129665',\n",
|
||||
" '3479150577',\n",
|
||||
" '3479159185',\n",
|
||||
" '3479177937',\n",
|
||||
" '3479178209',\n",
|
||||
" '3479237665',\n",
|
||||
" '3479239713',\n",
|
||||
" '3479262673',\n",
|
||||
" '3479274577',\n",
|
||||
" '3479275665',\n",
|
||||
" '3479276641',\n",
|
||||
" '3479279361',\n",
|
||||
" '3479300913',\n",
|
||||
" '3479301345',\n",
|
||||
" '3479309281',\n",
|
||||
" '3479309905',\n",
|
||||
" '3479313249',\n",
|
||||
" '3479346785',\n",
|
||||
" '3479357393',\n",
|
||||
" '3479369777',\n",
|
||||
" '3479384513'}"
|
||||
]
|
||||
},
|
||||
"execution_count": 8,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"data"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 9,
|
||||
"id": "ff4119d4",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n",
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":null}\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"for serialNo in data:\n",
|
||||
" tem = post(f\"https://band.hxzhxy.cn/net-manager/band/add?access_token=b4f3d20c-af97-4c2b-8964-ed5afc7d0ab6\",json= {\"serialNo\":serialNo,\"teamId\":119,\"version\":None,\"type\":\"2\",\"mac\":None,\"schoolId\":None}\n",
|
||||
" ).text\n",
|
||||
" print(tem)\n",
|
||||
" "
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"id": "e91931a9",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": []
|
||||
}
|
||||
],
|
||||
"metadata": {
|
||||
"kernelspec": {
|
||||
"display_name": "base",
|
||||
"language": "python",
|
||||
"name": "python3"
|
||||
},
|
||||
"language_info": {
|
||||
"codemirror_mode": {
|
||||
"name": "ipython",
|
||||
"version": 3
|
||||
},
|
||||
"file_extension": ".py",
|
||||
"mimetype": "text/x-python",
|
||||
"name": "python",
|
||||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython3",
|
||||
"version": "3.12.4"
|
||||
}
|
||||
},
|
||||
"nbformat": 4,
|
||||
"nbformat_minor": 5
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1,813 @@
|
||||
{
|
||||
"cells": [
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"id": "eaac4cfd",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"infos = [\n",
|
||||
" {\n",
|
||||
" \"room\": \"2101\",\n",
|
||||
" \"names\": []\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2105\",\n",
|
||||
" \"names\": [\n",
|
||||
" {\n",
|
||||
" \"username\": \"李伟杰\",\n",
|
||||
" \"bandNo\": \"3470371521\"\n",
|
||||
" }\n",
|
||||
" ]\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2106\",\n",
|
||||
" \"names\": []\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2107\",\n",
|
||||
" \"names\": [\n",
|
||||
" {\n",
|
||||
" \"username\": \"王菁婵\",\n",
|
||||
" \"bandNo\": \"3478823249\"\n",
|
||||
" }\n",
|
||||
" ]\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2108\",\n",
|
||||
" \"names\": [\n",
|
||||
" {\n",
|
||||
" \"username\": \"陈曦\",\n",
|
||||
" \"bandNo\": \"3469732433\"\n",
|
||||
" }\n",
|
||||
" ]\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2109\",\n",
|
||||
" \"names\": []\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2110\",\n",
|
||||
" \"names\": []\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2111\",\n",
|
||||
" \"names\": []\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2112\",\n",
|
||||
" \"names\": [\n",
|
||||
" {\n",
|
||||
" \"username\": \"田力豪\",\n",
|
||||
" \"bandNo\": \"3479278081\"\n",
|
||||
" }\n",
|
||||
" ]\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2113\",\n",
|
||||
" \"names\": [\n",
|
||||
" {\n",
|
||||
" \"username\": \"段静远\",\n",
|
||||
" \"bandNo\": \"3470462129\"\n",
|
||||
" }\n",
|
||||
" ]\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2114\",\n",
|
||||
" \"names\": [\n",
|
||||
" {\n",
|
||||
" \"username\": \"王佳\",\n",
|
||||
" \"bandNo\": \"3470399841\"\n",
|
||||
" }\n",
|
||||
" ]\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2115\",\n",
|
||||
" \"names\": []\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2116\",\n",
|
||||
" \"names\": []\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2201\",\n",
|
||||
" \"names\": []\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2202\",\n",
|
||||
" \"names\": []\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2203\",\n",
|
||||
" \"names\": []\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2204\",\n",
|
||||
" \"names\": [\n",
|
||||
" {\n",
|
||||
" \"username\": \"易建军\",\n",
|
||||
" \"bandNo\": \"3470323953\"\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"username\": \"王佳\",\n",
|
||||
" \"bandNo\": \"3470399841\"\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"username\": \"田力豪\",\n",
|
||||
" \"bandNo\": \"3479278081\"\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"username\": \"段静远\",\n",
|
||||
" \"bandNo\": \"3470462129\"\n",
|
||||
" }\n",
|
||||
" ]\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2205\",\n",
|
||||
" \"names\": [\n",
|
||||
" {\n",
|
||||
" \"username\": \"罗星琪\",\n",
|
||||
" \"bandNo\": \"3469625873\"\n",
|
||||
" }\n",
|
||||
" ]\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2206\",\n",
|
||||
" \"names\": [\n",
|
||||
" {\n",
|
||||
" \"username\": \"张桃\",\n",
|
||||
" \"bandNo\": \"3470463665\"\n",
|
||||
" }\n",
|
||||
" ]\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2207\",\n",
|
||||
" \"names\": [\n",
|
||||
" {\n",
|
||||
" \"username\": \"陈小林\",\n",
|
||||
" \"bandNo\": \"3478087713\"\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"username\": \"金秀\",\n",
|
||||
" \"bandNo\": \"3479319313\"\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"username\": \"刘钰\",\n",
|
||||
" \"bandNo\": \"3478899473\"\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"username\": \"张瑜\",\n",
|
||||
" \"bandNo\": \"3469876433\"\n",
|
||||
" }\n",
|
||||
" ]\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2208\",\n",
|
||||
" \"names\": [\n",
|
||||
" {\n",
|
||||
" \"username\": \"王永久\",\n",
|
||||
" \"bandNo\": \"3478934433\"\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"username\": \"韦晨曦\",\n",
|
||||
" \"bandNo\": \"3479368753\"\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"username\": \"袁为明\",\n",
|
||||
" \"bandNo\": \"3469688737\"\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"username\": \"黄怡岚\",\n",
|
||||
" \"bandNo\": \"3469796657\"\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"username\": \"李莉\",\n",
|
||||
" \"bandNo\": \"3478812529\"\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"username\": \"唐晓丽\",\n",
|
||||
" \"bandNo\": \"3474320001\"\n",
|
||||
" }\n",
|
||||
" ]\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2209\",\n",
|
||||
" \"names\": []\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2210\",\n",
|
||||
" \"names\": []\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2211\",\n",
|
||||
" \"names\": []\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2212\",\n",
|
||||
" \"names\": []\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2213\",\n",
|
||||
" \"names\": []\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2214\",\n",
|
||||
" \"names\": []\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2215\",\n",
|
||||
" \"names\": []\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2216\",\n",
|
||||
" \"names\": []\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2217\",\n",
|
||||
" \"names\": []\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2301\",\n",
|
||||
" \"names\": [\n",
|
||||
" {\n",
|
||||
" \"username\": \"李华\",\n",
|
||||
" \"bandNo\": \"3470049553\"\n",
|
||||
" }\n",
|
||||
" ]\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2302\",\n",
|
||||
" \"names\": [\n",
|
||||
" {\n",
|
||||
" \"username\": \"张琼丹\",\n",
|
||||
" \"bandNo\": \"3470175681\"\n",
|
||||
" }\n",
|
||||
" ]\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2303\",\n",
|
||||
" \"names\": [\n",
|
||||
" {\n",
|
||||
" \"username\": \"唐艳\",\n",
|
||||
" \"bandNo\": \"3478260977\"\n",
|
||||
" }\n",
|
||||
" ]\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2304\",\n",
|
||||
" \"names\": []\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2305\",\n",
|
||||
" \"names\": [\n",
|
||||
" {\n",
|
||||
" \"username\": \"黄敏\",\n",
|
||||
" \"bandNo\": \"3478295185\"\n",
|
||||
" }\n",
|
||||
" ]\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2306\",\n",
|
||||
" \"names\": [\n",
|
||||
" {\n",
|
||||
" \"username\": \"张敬之\",\n",
|
||||
" \"bandNo\": \"3470058945\"\n",
|
||||
" }\n",
|
||||
" ]\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2307\",\n",
|
||||
" \"names\": [\n",
|
||||
" {\n",
|
||||
" \"username\": \"唐文凯\",\n",
|
||||
" \"bandNo\": \"3478926993\"\n",
|
||||
" }\n",
|
||||
" ]\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2308\",\n",
|
||||
" \"names\": [\n",
|
||||
" {\n",
|
||||
" \"username\": \"曾伟宏\",\n",
|
||||
" \"bandNo\": \"3478292849\"\n",
|
||||
" }\n",
|
||||
" ]\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2309\",\n",
|
||||
" \"names\": [\n",
|
||||
" {\n",
|
||||
" \"username\": \"杨莉\",\n",
|
||||
" \"bandNo\": \"3479187969\"\n",
|
||||
" }\n",
|
||||
" ]\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2310\",\n",
|
||||
" \"names\": [\n",
|
||||
" {\n",
|
||||
" \"username\": \"姚瑶\",\n",
|
||||
" \"bandNo\": \"3470453105\"\n",
|
||||
" }\n",
|
||||
" ]\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2311\",\n",
|
||||
" \"names\": [\n",
|
||||
" {\n",
|
||||
" \"username\": \"贾琼\",\n",
|
||||
" \"bandNo\": \"3479277169\"\n",
|
||||
" }\n",
|
||||
" ]\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2312\",\n",
|
||||
" \"names\": [\n",
|
||||
" {\n",
|
||||
" \"username\": \"董湘蓉\",\n",
|
||||
" \"bandNo\": \"3470450737\"\n",
|
||||
" }\n",
|
||||
" ]\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2313\",\n",
|
||||
" \"names\": [\n",
|
||||
" {\n",
|
||||
" \"username\": \"薛燕\",\n",
|
||||
" \"bandNo\": \"3469743921\"\n",
|
||||
" }\n",
|
||||
" ]\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2314\",\n",
|
||||
" \"names\": [\n",
|
||||
" {\n",
|
||||
" \"username\": \"张丽平\",\n",
|
||||
" \"bandNo\": \"3470021249\"\n",
|
||||
" }\n",
|
||||
" ]\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2315\",\n",
|
||||
" \"names\": [\n",
|
||||
" {\n",
|
||||
" \"username\": \"刘杰\",\n",
|
||||
" \"bandNo\": \"3478769761\"\n",
|
||||
" }\n",
|
||||
" ]\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2316\",\n",
|
||||
" \"names\": [\n",
|
||||
" {\n",
|
||||
" \"username\": \"唐光辉\",\n",
|
||||
" \"bandNo\": \"3479121729\"\n",
|
||||
" }\n",
|
||||
" ]\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2317\",\n",
|
||||
" \"names\": [\n",
|
||||
" {\n",
|
||||
" \"username\": \"杨晓伟\",\n",
|
||||
" \"bandNo\": \"3478134817\"\n",
|
||||
" }\n",
|
||||
" ]\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2401\",\n",
|
||||
" \"names\": [\n",
|
||||
" {\n",
|
||||
" \"username\": \"张启容\",\n",
|
||||
" \"bandNo\": \"3469575377\"\n",
|
||||
" }\n",
|
||||
" ]\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2402\",\n",
|
||||
" \"names\": [\n",
|
||||
" {\n",
|
||||
" \"username\": \"闫满琳\",\n",
|
||||
" \"bandNo\": \"3478920081\"\n",
|
||||
" }\n",
|
||||
" ]\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2403\",\n",
|
||||
" \"names\": [\n",
|
||||
" {\n",
|
||||
" \"username\": \"贺蕾\",\n",
|
||||
" \"bandNo\": \"3479268465\"\n",
|
||||
" }\n",
|
||||
" ]\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2404\",\n",
|
||||
" \"names\": [\n",
|
||||
" {\n",
|
||||
" \"username\": \"刘志坚\",\n",
|
||||
" \"bandNo\": \"3478320321\"\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"username\": \"唐文凯\",\n",
|
||||
" \"bandNo\": \"3478926993\"\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"username\": \"董怡\",\n",
|
||||
" \"bandNo\": \"3479118689\"\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"username\": \"黄黠\",\n",
|
||||
" \"bandNo\": \"3469699089\"\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"username\": \"叶顺刚\",\n",
|
||||
" \"bandNo\": \"3470150801\"\n",
|
||||
" }\n",
|
||||
" ]\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2405\",\n",
|
||||
" \"names\": [\n",
|
||||
" {\n",
|
||||
" \"username\": \"韩金金\",\n",
|
||||
" \"bandNo\": \"3479331137\"\n",
|
||||
" }\n",
|
||||
" ]\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2406\",\n",
|
||||
" \"names\": [\n",
|
||||
" {\n",
|
||||
" \"username\": \"王建军\",\n",
|
||||
" \"bandNo\": \"3469848993\"\n",
|
||||
" }\n",
|
||||
" ]\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2407\",\n",
|
||||
" \"names\": [\n",
|
||||
" {\n",
|
||||
" \"username\": \"张明惠\",\n",
|
||||
" \"bandNo\": \"3470455681\"\n",
|
||||
" }\n",
|
||||
" ]\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2408\",\n",
|
||||
" \"names\": []\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2409\",\n",
|
||||
" \"names\": []\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2410\",\n",
|
||||
" \"names\": []\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2411\",\n",
|
||||
" \"names\": []\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2412\",\n",
|
||||
" \"names\": [\n",
|
||||
" {\n",
|
||||
" \"username\": \"唐廷凤\",\n",
|
||||
" \"bandNo\": \"3478379537\"\n",
|
||||
" }\n",
|
||||
" ]\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2413\",\n",
|
||||
" \"names\": [\n",
|
||||
" {\n",
|
||||
" \"username\": \"吴杰\",\n",
|
||||
" \"bandNo\": \"3470379953\"\n",
|
||||
" }\n",
|
||||
" ]\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2414\",\n",
|
||||
" \"names\": [\n",
|
||||
" {\n",
|
||||
" \"username\": \"马靖\",\n",
|
||||
" \"bandNo\": \"3469775921\"\n",
|
||||
" }\n",
|
||||
" ]\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2415\",\n",
|
||||
" \"names\": [\n",
|
||||
" {\n",
|
||||
" \"username\": \"文仕宇\",\n",
|
||||
" \"bandNo\": \"3479296977\"\n",
|
||||
" }\n",
|
||||
" ]\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2416\",\n",
|
||||
" \"names\": [\n",
|
||||
" {\n",
|
||||
" \"username\": \"庄秋雨\",\n",
|
||||
" \"bandNo\": \"3478905073\"\n",
|
||||
" }\n",
|
||||
" ]\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2417\",\n",
|
||||
" \"names\": [\n",
|
||||
" {\n",
|
||||
" \"username\": \"王德琳\",\n",
|
||||
" \"bandNo\": \"3479320897\"\n",
|
||||
" }\n",
|
||||
" ]\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2501\",\n",
|
||||
" \"names\": []\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2502\",\n",
|
||||
" \"names\": []\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2503\",\n",
|
||||
" \"names\": []\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2504\",\n",
|
||||
" \"names\": [\n",
|
||||
" {\n",
|
||||
" \"username\": \"舒勇\",\n",
|
||||
" \"bandNo\": \"3478913041\"\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"username\": \"张洪春\",\n",
|
||||
" \"bandNo\": \"3470118433\"\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"username\": \"周黎\",\n",
|
||||
" \"bandNo\": \"3478843745\"\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"username\": \"黎锐\",\n",
|
||||
" \"bandNo\": \"3470453105\"\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"username\": \"刘本章\",\n",
|
||||
" \"bandNo\": \"3478294225\"\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"username\": \"蒲秀娟\",\n",
|
||||
" \"bandNo\": \"3478914385\"\n",
|
||||
" }\n",
|
||||
" ]\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2505\",\n",
|
||||
" \"names\": []\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2506\",\n",
|
||||
" \"names\": []\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2507\",\n",
|
||||
" \"names\": []\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2508\",\n",
|
||||
" \"names\": []\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2509\",\n",
|
||||
" \"names\": [\n",
|
||||
" {\n",
|
||||
" \"username\": \"任学丽\",\n",
|
||||
" \"bandNo\": \"3470402273\"\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"username\": \"张春玲\",\n",
|
||||
" \"bandNo\": \"3469575809\"\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"username\": \"张荣华\",\n",
|
||||
" \"bandNo\": \"3469720401\"\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"username\": \"周琼英\",\n",
|
||||
" \"bandNo\": \"3470480753\"\n",
|
||||
" }\n",
|
||||
" ]\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2510\",\n",
|
||||
" \"names\": []\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2511\",\n",
|
||||
" \"names\": []\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2512\",\n",
|
||||
" \"names\": []\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2513\",\n",
|
||||
" \"names\": []\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2514\",\n",
|
||||
" \"names\": []\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2515\",\n",
|
||||
" \"names\": []\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2516\",\n",
|
||||
" \"names\": []\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2517\",\n",
|
||||
" \"names\": []\n",
|
||||
" }\n",
|
||||
"]"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 1,
|
||||
"id": "d34b4562",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"from requests import get,post\n",
|
||||
"import time\n",
|
||||
"ip = \"http://band.hxzhxy.cn\"\n",
|
||||
"param = {\n",
|
||||
" \"username\": \"zhongwei\",\n",
|
||||
" \"password\": \"123456a\",\n",
|
||||
" \"client_id\": \"client\",\n",
|
||||
" \"grant_type\": \"password\",\n",
|
||||
" \"client_secret\": \"123456\",\n",
|
||||
"}\n",
|
||||
"data = get(url=f\"http://band.hxzhxy.cn/oauth/token?username=zhongwei&password=123456a&client_id=client&grant_type=password&client_secret=123456\").json()\n",
|
||||
"token = data[\"access_token\"]\n",
|
||||
"header = {\n",
|
||||
" \"content-type\": \"application/json\",\n",
|
||||
" \"authorization\": f\"Bearer {token}\",\n",
|
||||
"}"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 10,
|
||||
"id": "03513226",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"data = get(f\"https://band.hxzhxy.cn/door/lock/listLockPage?teamId=119&pageSize=60&pageNumber=0&value=&areaId=&tierId=®ionId=&bindType=&lockName=&type=2&mainTypeId=&sizeType=&lockType=&access_token={token}\").json()"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 11,
|
||||
"id": "4108fb9a",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"import time"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"id": "673efe31",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"for item in data[\"data\"][\"content\"]:\n",
|
||||
" addAdminBand = \"3478926993\"\n",
|
||||
" post(\"https://band.hxzhxy.cn/door/accredit/sendNews\",json={\n",
|
||||
" \"startTime\":\"25082114\",\"endTime\":\"35051814\",\"adminType\":\"55\",\"type\":\"01\",\"time\":[1755756984314,2071380076000],\"accountIp\":\"183.220.92.213\",\"accountName\":\"183.220.92.213\",\"lockNo\":item[\"lockNo\"],\"serialNo\":item[\"serialNo\"],\"addAdminBand\":addAdminBand,\"addUserBand\":\"\",\"removeBand\":\"\",\"doorAccreditIds\":\"\"\n",
|
||||
" },headers=header,proxies={\"http\": \"http://127.0.0.1:8080\", \"https\": \"http://127.0.0.1:8080\"},verify=False)\n",
|
||||
" time.sleep(1)\n",
|
||||
" "
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 12,
|
||||
"id": "c4e96b85",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"import tqdm"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 31,
|
||||
"id": "96da8a5d",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stderr",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"100%|██████████| 52/52 [00:07<00:00, 7.22it/s]\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"data = get(f\"https://band.hxzhxy.cn/door/lock/listLockPage?teamId=119&pageSize=60&pageNumber=0&value=&areaId=&tierId=®ionId=&bindType=&lockName=&type=2&mainTypeId=&sizeType=&lockType=&access_token={token}\").json()\n",
|
||||
"with tqdm.tqdm(total=len(data[\"data\"][\"content\"])) as pbar:\n",
|
||||
" for item in data[\"data\"][\"content\"]:\n",
|
||||
" if item[\"password\"] == \"12345687\" or item[\"password\"]==None: \n",
|
||||
" pbar.update(1)\n",
|
||||
" continue\n",
|
||||
" post(\"https://band.hxzhxy.cn/door/password/send\",json={\"lockNos\":item[\"lockNo\"],\"serialNos\":item[\"serialNo\"],\"password\":\"12345687\",\"type\":\"04\",\"typeSend\":\"0\",\"accountIp\":\"183.220.91.181\",\"accountName\":\"183.220.91.181\",\"account\":\"5789\"},headers=header)\n",
|
||||
" time.sleep(7)\n",
|
||||
" pbar.update(1)"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 33,
|
||||
"id": "ee45017c",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"{'bandUserCount': 0, 'lockNo': '181681774855', 'teamId': 119, 'electric': 100, 'tierName': '5', 'doorName': '2512前门', 'ID': 723, 'lockType': 2, 'remark': None, 'mainType': '教室', 'type': '', 'password': '88888888', 'bandAdminCount': 4, 'remask': None, 'alias': '教学楼3-2门锁网关', 'createTime': 1755314698000, 'dongId': 28, 'genre': None, 'gateType': 1, 'dongName': '1栋', 'lockName': '2512前门', 'roomName': '2512', 'image': None, 'sizeType': 1, 'isPassword': 1, 'regionName': '无', 'areaId': 20, 'updateTime': None, 'version': None, 'serialNo': '868002345684074', 'opsTime': None, 'teamName': '2512', 'tierId': 64, 'doorId': 747, 'areaName': '教学楼', 'batteryType': None}\n",
|
||||
"88888888\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"data = get(f\"https://band.hxzhxy.cn/door/lock/listLockPage?teamId=119&pageSize=60&pageNumber=0&value=&areaId=&tierId=®ionId=&bindType=&lockName=&type=2&mainTypeId=&sizeType=&lockType=&access_token={token}\").json()\n",
|
||||
"for item in data[\"data\"][\"content\"]:\n",
|
||||
" if item[\"password\"] != \"12345687\" and item[\"password\"]!=None:\n",
|
||||
" print(item)\n",
|
||||
" print(item['password'])"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 9,
|
||||
"id": "cc3c500c",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"32"
|
||||
]
|
||||
},
|
||||
"execution_count": 9,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"len(\"Xpaotongshutongwenzhongxue971001\")"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"id": "a6a3791a",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"泡桐树同文"
|
||||
]
|
||||
}
|
||||
],
|
||||
"metadata": {
|
||||
"kernelspec": {
|
||||
"display_name": "base",
|
||||
"language": "python",
|
||||
"name": "python3"
|
||||
},
|
||||
"language_info": {
|
||||
"codemirror_mode": {
|
||||
"name": "ipython",
|
||||
"version": 3
|
||||
},
|
||||
"file_extension": ".py",
|
||||
"mimetype": "text/x-python",
|
||||
"name": "python",
|
||||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython3",
|
||||
"version": "3.12.4"
|
||||
}
|
||||
},
|
||||
"nbformat": 4,
|
||||
"nbformat_minor": 5
|
||||
}
|
||||
@@ -0,0 +1,813 @@
|
||||
{
|
||||
"cells": [
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"id": "eaac4cfd",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"infos = [\n",
|
||||
" {\n",
|
||||
" \"room\": \"2101\",\n",
|
||||
" \"names\": []\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2105\",\n",
|
||||
" \"names\": [\n",
|
||||
" {\n",
|
||||
" \"username\": \"李伟杰\",\n",
|
||||
" \"bandNo\": \"3470371521\"\n",
|
||||
" }\n",
|
||||
" ]\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2106\",\n",
|
||||
" \"names\": []\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2107\",\n",
|
||||
" \"names\": [\n",
|
||||
" {\n",
|
||||
" \"username\": \"王菁婵\",\n",
|
||||
" \"bandNo\": \"3478823249\"\n",
|
||||
" }\n",
|
||||
" ]\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2108\",\n",
|
||||
" \"names\": [\n",
|
||||
" {\n",
|
||||
" \"username\": \"陈曦\",\n",
|
||||
" \"bandNo\": \"3469732433\"\n",
|
||||
" }\n",
|
||||
" ]\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2109\",\n",
|
||||
" \"names\": []\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2110\",\n",
|
||||
" \"names\": []\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2111\",\n",
|
||||
" \"names\": []\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2112\",\n",
|
||||
" \"names\": [\n",
|
||||
" {\n",
|
||||
" \"username\": \"田力豪\",\n",
|
||||
" \"bandNo\": \"3479278081\"\n",
|
||||
" }\n",
|
||||
" ]\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2113\",\n",
|
||||
" \"names\": [\n",
|
||||
" {\n",
|
||||
" \"username\": \"段静远\",\n",
|
||||
" \"bandNo\": \"3470462129\"\n",
|
||||
" }\n",
|
||||
" ]\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2114\",\n",
|
||||
" \"names\": [\n",
|
||||
" {\n",
|
||||
" \"username\": \"王佳\",\n",
|
||||
" \"bandNo\": \"3470399841\"\n",
|
||||
" }\n",
|
||||
" ]\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2115\",\n",
|
||||
" \"names\": []\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2116\",\n",
|
||||
" \"names\": []\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2201\",\n",
|
||||
" \"names\": []\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2202\",\n",
|
||||
" \"names\": []\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2203\",\n",
|
||||
" \"names\": []\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2204\",\n",
|
||||
" \"names\": [\n",
|
||||
" {\n",
|
||||
" \"username\": \"易建军\",\n",
|
||||
" \"bandNo\": \"3470323953\"\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"username\": \"王佳\",\n",
|
||||
" \"bandNo\": \"3470399841\"\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"username\": \"田力豪\",\n",
|
||||
" \"bandNo\": \"3479278081\"\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"username\": \"段静远\",\n",
|
||||
" \"bandNo\": \"3470462129\"\n",
|
||||
" }\n",
|
||||
" ]\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2205\",\n",
|
||||
" \"names\": [\n",
|
||||
" {\n",
|
||||
" \"username\": \"罗星琪\",\n",
|
||||
" \"bandNo\": \"3469625873\"\n",
|
||||
" }\n",
|
||||
" ]\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2206\",\n",
|
||||
" \"names\": [\n",
|
||||
" {\n",
|
||||
" \"username\": \"张桃\",\n",
|
||||
" \"bandNo\": \"3470463665\"\n",
|
||||
" }\n",
|
||||
" ]\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2207\",\n",
|
||||
" \"names\": [\n",
|
||||
" {\n",
|
||||
" \"username\": \"陈小林\",\n",
|
||||
" \"bandNo\": \"3478087713\"\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"username\": \"金秀\",\n",
|
||||
" \"bandNo\": \"3479319313\"\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"username\": \"刘钰\",\n",
|
||||
" \"bandNo\": \"3478899473\"\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"username\": \"张瑜\",\n",
|
||||
" \"bandNo\": \"3469876433\"\n",
|
||||
" }\n",
|
||||
" ]\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2208\",\n",
|
||||
" \"names\": [\n",
|
||||
" {\n",
|
||||
" \"username\": \"王永久\",\n",
|
||||
" \"bandNo\": \"3478934433\"\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"username\": \"韦晨曦\",\n",
|
||||
" \"bandNo\": \"3479368753\"\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"username\": \"袁为明\",\n",
|
||||
" \"bandNo\": \"3469688737\"\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"username\": \"黄怡岚\",\n",
|
||||
" \"bandNo\": \"3469796657\"\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"username\": \"李莉\",\n",
|
||||
" \"bandNo\": \"3478812529\"\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"username\": \"唐晓丽\",\n",
|
||||
" \"bandNo\": \"3474320001\"\n",
|
||||
" }\n",
|
||||
" ]\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2209\",\n",
|
||||
" \"names\": []\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2210\",\n",
|
||||
" \"names\": []\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2211\",\n",
|
||||
" \"names\": []\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2212\",\n",
|
||||
" \"names\": []\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2213\",\n",
|
||||
" \"names\": []\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2214\",\n",
|
||||
" \"names\": []\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2215\",\n",
|
||||
" \"names\": []\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2216\",\n",
|
||||
" \"names\": []\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2217\",\n",
|
||||
" \"names\": []\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2301\",\n",
|
||||
" \"names\": [\n",
|
||||
" {\n",
|
||||
" \"username\": \"李华\",\n",
|
||||
" \"bandNo\": \"3470049553\"\n",
|
||||
" }\n",
|
||||
" ]\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2302\",\n",
|
||||
" \"names\": [\n",
|
||||
" {\n",
|
||||
" \"username\": \"张琼丹\",\n",
|
||||
" \"bandNo\": \"3470175681\"\n",
|
||||
" }\n",
|
||||
" ]\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2303\",\n",
|
||||
" \"names\": [\n",
|
||||
" {\n",
|
||||
" \"username\": \"唐艳\",\n",
|
||||
" \"bandNo\": \"3478260977\"\n",
|
||||
" }\n",
|
||||
" ]\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2304\",\n",
|
||||
" \"names\": []\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2305\",\n",
|
||||
" \"names\": [\n",
|
||||
" {\n",
|
||||
" \"username\": \"黄敏\",\n",
|
||||
" \"bandNo\": \"3478295185\"\n",
|
||||
" }\n",
|
||||
" ]\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2306\",\n",
|
||||
" \"names\": [\n",
|
||||
" {\n",
|
||||
" \"username\": \"张敬之\",\n",
|
||||
" \"bandNo\": \"3470058945\"\n",
|
||||
" }\n",
|
||||
" ]\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2307\",\n",
|
||||
" \"names\": [\n",
|
||||
" {\n",
|
||||
" \"username\": \"唐文凯\",\n",
|
||||
" \"bandNo\": \"3478926993\"\n",
|
||||
" }\n",
|
||||
" ]\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2308\",\n",
|
||||
" \"names\": [\n",
|
||||
" {\n",
|
||||
" \"username\": \"曾伟宏\",\n",
|
||||
" \"bandNo\": \"3478292849\"\n",
|
||||
" }\n",
|
||||
" ]\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2309\",\n",
|
||||
" \"names\": [\n",
|
||||
" {\n",
|
||||
" \"username\": \"杨莉\",\n",
|
||||
" \"bandNo\": \"3479187969\"\n",
|
||||
" }\n",
|
||||
" ]\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2310\",\n",
|
||||
" \"names\": [\n",
|
||||
" {\n",
|
||||
" \"username\": \"姚瑶\",\n",
|
||||
" \"bandNo\": \"3470453105\"\n",
|
||||
" }\n",
|
||||
" ]\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2311\",\n",
|
||||
" \"names\": [\n",
|
||||
" {\n",
|
||||
" \"username\": \"贾琼\",\n",
|
||||
" \"bandNo\": \"3479277169\"\n",
|
||||
" }\n",
|
||||
" ]\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2312\",\n",
|
||||
" \"names\": [\n",
|
||||
" {\n",
|
||||
" \"username\": \"董湘蓉\",\n",
|
||||
" \"bandNo\": \"3470450737\"\n",
|
||||
" }\n",
|
||||
" ]\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2313\",\n",
|
||||
" \"names\": [\n",
|
||||
" {\n",
|
||||
" \"username\": \"薛燕\",\n",
|
||||
" \"bandNo\": \"3469743921\"\n",
|
||||
" }\n",
|
||||
" ]\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2314\",\n",
|
||||
" \"names\": [\n",
|
||||
" {\n",
|
||||
" \"username\": \"张丽平\",\n",
|
||||
" \"bandNo\": \"3470021249\"\n",
|
||||
" }\n",
|
||||
" ]\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2315\",\n",
|
||||
" \"names\": [\n",
|
||||
" {\n",
|
||||
" \"username\": \"刘杰\",\n",
|
||||
" \"bandNo\": \"3478769761\"\n",
|
||||
" }\n",
|
||||
" ]\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2316\",\n",
|
||||
" \"names\": [\n",
|
||||
" {\n",
|
||||
" \"username\": \"唐光辉\",\n",
|
||||
" \"bandNo\": \"3479121729\"\n",
|
||||
" }\n",
|
||||
" ]\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2317\",\n",
|
||||
" \"names\": [\n",
|
||||
" {\n",
|
||||
" \"username\": \"杨晓伟\",\n",
|
||||
" \"bandNo\": \"3478134817\"\n",
|
||||
" }\n",
|
||||
" ]\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2401\",\n",
|
||||
" \"names\": [\n",
|
||||
" {\n",
|
||||
" \"username\": \"张启容\",\n",
|
||||
" \"bandNo\": \"3469575377\"\n",
|
||||
" }\n",
|
||||
" ]\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2402\",\n",
|
||||
" \"names\": [\n",
|
||||
" {\n",
|
||||
" \"username\": \"闫满琳\",\n",
|
||||
" \"bandNo\": \"3478920081\"\n",
|
||||
" }\n",
|
||||
" ]\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2403\",\n",
|
||||
" \"names\": [\n",
|
||||
" {\n",
|
||||
" \"username\": \"贺蕾\",\n",
|
||||
" \"bandNo\": \"3479268465\"\n",
|
||||
" }\n",
|
||||
" ]\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2404\",\n",
|
||||
" \"names\": [\n",
|
||||
" {\n",
|
||||
" \"username\": \"刘志坚\",\n",
|
||||
" \"bandNo\": \"3478320321\"\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"username\": \"唐文凯\",\n",
|
||||
" \"bandNo\": \"3478926993\"\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"username\": \"董怡\",\n",
|
||||
" \"bandNo\": \"3479118689\"\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"username\": \"黄黠\",\n",
|
||||
" \"bandNo\": \"3469699089\"\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"username\": \"叶顺刚\",\n",
|
||||
" \"bandNo\": \"3470150801\"\n",
|
||||
" }\n",
|
||||
" ]\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2405\",\n",
|
||||
" \"names\": [\n",
|
||||
" {\n",
|
||||
" \"username\": \"韩金金\",\n",
|
||||
" \"bandNo\": \"3479331137\"\n",
|
||||
" }\n",
|
||||
" ]\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2406\",\n",
|
||||
" \"names\": [\n",
|
||||
" {\n",
|
||||
" \"username\": \"王建军\",\n",
|
||||
" \"bandNo\": \"3469848993\"\n",
|
||||
" }\n",
|
||||
" ]\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2407\",\n",
|
||||
" \"names\": [\n",
|
||||
" {\n",
|
||||
" \"username\": \"张明惠\",\n",
|
||||
" \"bandNo\": \"3470455681\"\n",
|
||||
" }\n",
|
||||
" ]\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2408\",\n",
|
||||
" \"names\": []\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2409\",\n",
|
||||
" \"names\": []\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2410\",\n",
|
||||
" \"names\": []\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2411\",\n",
|
||||
" \"names\": []\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2412\",\n",
|
||||
" \"names\": [\n",
|
||||
" {\n",
|
||||
" \"username\": \"唐廷凤\",\n",
|
||||
" \"bandNo\": \"3478379537\"\n",
|
||||
" }\n",
|
||||
" ]\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2413\",\n",
|
||||
" \"names\": [\n",
|
||||
" {\n",
|
||||
" \"username\": \"吴杰\",\n",
|
||||
" \"bandNo\": \"3470379953\"\n",
|
||||
" }\n",
|
||||
" ]\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2414\",\n",
|
||||
" \"names\": [\n",
|
||||
" {\n",
|
||||
" \"username\": \"马靖\",\n",
|
||||
" \"bandNo\": \"3469775921\"\n",
|
||||
" }\n",
|
||||
" ]\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2415\",\n",
|
||||
" \"names\": [\n",
|
||||
" {\n",
|
||||
" \"username\": \"文仕宇\",\n",
|
||||
" \"bandNo\": \"3479296977\"\n",
|
||||
" }\n",
|
||||
" ]\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2416\",\n",
|
||||
" \"names\": [\n",
|
||||
" {\n",
|
||||
" \"username\": \"庄秋雨\",\n",
|
||||
" \"bandNo\": \"3478905073\"\n",
|
||||
" }\n",
|
||||
" ]\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2417\",\n",
|
||||
" \"names\": [\n",
|
||||
" {\n",
|
||||
" \"username\": \"王德琳\",\n",
|
||||
" \"bandNo\": \"3479320897\"\n",
|
||||
" }\n",
|
||||
" ]\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2501\",\n",
|
||||
" \"names\": []\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2502\",\n",
|
||||
" \"names\": []\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2503\",\n",
|
||||
" \"names\": []\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2504\",\n",
|
||||
" \"names\": [\n",
|
||||
" {\n",
|
||||
" \"username\": \"舒勇\",\n",
|
||||
" \"bandNo\": \"3478913041\"\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"username\": \"张洪春\",\n",
|
||||
" \"bandNo\": \"3470118433\"\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"username\": \"周黎\",\n",
|
||||
" \"bandNo\": \"3478843745\"\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"username\": \"黎锐\",\n",
|
||||
" \"bandNo\": \"3470453105\"\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"username\": \"刘本章\",\n",
|
||||
" \"bandNo\": \"3478294225\"\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"username\": \"蒲秀娟\",\n",
|
||||
" \"bandNo\": \"3478914385\"\n",
|
||||
" }\n",
|
||||
" ]\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2505\",\n",
|
||||
" \"names\": []\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2506\",\n",
|
||||
" \"names\": []\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2507\",\n",
|
||||
" \"names\": []\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2508\",\n",
|
||||
" \"names\": []\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2509\",\n",
|
||||
" \"names\": [\n",
|
||||
" {\n",
|
||||
" \"username\": \"任学丽\",\n",
|
||||
" \"bandNo\": \"3470402273\"\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"username\": \"张春玲\",\n",
|
||||
" \"bandNo\": \"3469575809\"\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"username\": \"张荣华\",\n",
|
||||
" \"bandNo\": \"3469720401\"\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"username\": \"周琼英\",\n",
|
||||
" \"bandNo\": \"3470480753\"\n",
|
||||
" }\n",
|
||||
" ]\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2510\",\n",
|
||||
" \"names\": []\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2511\",\n",
|
||||
" \"names\": []\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2512\",\n",
|
||||
" \"names\": []\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2513\",\n",
|
||||
" \"names\": []\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2514\",\n",
|
||||
" \"names\": []\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2515\",\n",
|
||||
" \"names\": []\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2516\",\n",
|
||||
" \"names\": []\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"room\": \"2517\",\n",
|
||||
" \"names\": []\n",
|
||||
" }\n",
|
||||
"]"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 1,
|
||||
"id": "d34b4562",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"from requests import get,post\n",
|
||||
"import time\n",
|
||||
"ip = \"http://band.hxzhxy.cn\"\n",
|
||||
"param = {\n",
|
||||
" \"username\": \"zhongwei\",\n",
|
||||
" \"password\": \"123456a\",\n",
|
||||
" \"client_id\": \"client\",\n",
|
||||
" \"grant_type\": \"password\",\n",
|
||||
" \"client_secret\": \"123456\",\n",
|
||||
"}\n",
|
||||
"data = get(url=f\"http://band.hxzhxy.cn/oauth/token?username=zhongwei&password=123456a&client_id=client&grant_type=password&client_secret=123456\").json()\n",
|
||||
"token = data[\"access_token\"]\n",
|
||||
"header = {\n",
|
||||
" \"content-type\": \"application/json\",\n",
|
||||
" \"authorization\": f\"Bearer {token}\",\n",
|
||||
"}"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 10,
|
||||
"id": "03513226",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"data = get(f\"https://band.hxzhxy.cn/door/lock/listLockPage?teamId=119&pageSize=60&pageNumber=0&value=&areaId=&tierId=®ionId=&bindType=&lockName=&type=2&mainTypeId=&sizeType=&lockType=&access_token={token}\").json()"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 11,
|
||||
"id": "4108fb9a",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"import time"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"id": "673efe31",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"for item in data[\"data\"][\"content\"]:\n",
|
||||
" addAdminBand = \"3478926993\"\n",
|
||||
" post(\"https://band.hxzhxy.cn/door/accredit/sendNews\",json={\n",
|
||||
" \"startTime\":\"25082114\",\"endTime\":\"35051814\",\"adminType\":\"55\",\"type\":\"01\",\"time\":[1755756984314,2071380076000],\"accountIp\":\"183.220.92.213\",\"accountName\":\"183.220.92.213\",\"lockNo\":item[\"lockNo\"],\"serialNo\":item[\"serialNo\"],\"addAdminBand\":addAdminBand,\"addUserBand\":\"\",\"removeBand\":\"\",\"doorAccreditIds\":\"\"\n",
|
||||
" },headers=header,proxies={\"http\": \"http://127.0.0.1:8080\", \"https\": \"http://127.0.0.1:8080\"},verify=False)\n",
|
||||
" time.sleep(1)\n",
|
||||
" "
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 12,
|
||||
"id": "c4e96b85",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"import tqdm"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 31,
|
||||
"id": "96da8a5d",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stderr",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"100%|██████████| 52/52 [00:07<00:00, 7.22it/s]\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"data = get(f\"https://band.hxzhxy.cn/door/lock/listLockPage?teamId=119&pageSize=60&pageNumber=0&value=&areaId=&tierId=®ionId=&bindType=&lockName=&type=2&mainTypeId=&sizeType=&lockType=&access_token={token}\").json()\n",
|
||||
"with tqdm.tqdm(total=len(data[\"data\"][\"content\"])) as pbar:\n",
|
||||
" for item in data[\"data\"][\"content\"]:\n",
|
||||
" if item[\"password\"] == \"12345687\" or item[\"password\"]==None: \n",
|
||||
" pbar.update(1)\n",
|
||||
" continue\n",
|
||||
" post(\"https://band.hxzhxy.cn/door/password/send\",json={\"lockNos\":item[\"lockNo\"],\"serialNos\":item[\"serialNo\"],\"password\":\"12345687\",\"type\":\"04\",\"typeSend\":\"0\",\"accountIp\":\"183.220.91.181\",\"accountName\":\"183.220.91.181\",\"account\":\"5789\"},headers=header)\n",
|
||||
" time.sleep(7)\n",
|
||||
" pbar.update(1)"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 33,
|
||||
"id": "ee45017c",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"{'bandUserCount': 0, 'lockNo': '181681774855', 'teamId': 119, 'electric': 100, 'tierName': '5', 'doorName': '2512前门', 'ID': 723, 'lockType': 2, 'remark': None, 'mainType': '教室', 'type': '', 'password': '88888888', 'bandAdminCount': 4, 'remask': None, 'alias': '教学楼3-2门锁网关', 'createTime': 1755314698000, 'dongId': 28, 'genre': None, 'gateType': 1, 'dongName': '1栋', 'lockName': '2512前门', 'roomName': '2512', 'image': None, 'sizeType': 1, 'isPassword': 1, 'regionName': '无', 'areaId': 20, 'updateTime': None, 'version': None, 'serialNo': '868002345684074', 'opsTime': None, 'teamName': '2512', 'tierId': 64, 'doorId': 747, 'areaName': '教学楼', 'batteryType': None}\n",
|
||||
"88888888\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"data = get(f\"https://band.hxzhxy.cn/door/lock/listLockPage?teamId=119&pageSize=60&pageNumber=0&value=&areaId=&tierId=®ionId=&bindType=&lockName=&type=2&mainTypeId=&sizeType=&lockType=&access_token={token}\").json()\n",
|
||||
"for item in data[\"data\"][\"content\"]:\n",
|
||||
" if item[\"password\"] != \"12345687\" and item[\"password\"]!=None:\n",
|
||||
" print(item)\n",
|
||||
" print(item['password'])"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 9,
|
||||
"id": "cc3c500c",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"32"
|
||||
]
|
||||
},
|
||||
"execution_count": 9,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"len(\"Xpaotongshutongwenzhongxue971001\")"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"id": "a6a3791a",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"泡桐树同文"
|
||||
]
|
||||
}
|
||||
],
|
||||
"metadata": {
|
||||
"kernelspec": {
|
||||
"display_name": "base",
|
||||
"language": "python",
|
||||
"name": "python3"
|
||||
},
|
||||
"language_info": {
|
||||
"codemirror_mode": {
|
||||
"name": "ipython",
|
||||
"version": 3
|
||||
},
|
||||
"file_extension": ".py",
|
||||
"mimetype": "text/x-python",
|
||||
"name": "python",
|
||||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython3",
|
||||
"version": "3.12.4"
|
||||
}
|
||||
},
|
||||
"nbformat": 4,
|
||||
"nbformat_minor": 5
|
||||
}
|
||||
+205
@@ -0,0 +1,205 @@
|
||||
{
|
||||
"cells": [
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"id": "137d8688",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"from requests import get, post,put"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"id": "ebfc2997",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"from requests import sessions\n",
|
||||
"\n",
|
||||
"\n",
|
||||
"\n",
|
||||
"\n",
|
||||
"def print_url_hook(response, *args, **kwargs):\n",
|
||||
" print(f\"Request URL: {response.request.url}\")\n",
|
||||
" print(f\"Request Headers: {response.request.headers}\")\n",
|
||||
" print(f\"Request Body: {response.request.body}\")\n",
|
||||
"# 定义一个钩子函数,用于在收到响应后打印出响应的详细信息\n",
|
||||
"def print_response_hook(response, *args, **kwargs):\n",
|
||||
" print(f\"Response URL: {response.url}\")\n",
|
||||
" print(f\"Response Status Code: {response.status_code}\")\n",
|
||||
" print(f\"Response Headers: {response.headers}\")\n",
|
||||
" print(f\"Response Body: {response.text}\")\n",
|
||||
" # response._content = b'1.cpp'\n",
|
||||
" print(f\"Response Body: {response.text}\")\n",
|
||||
"\n",
|
||||
"sessions = sessions.Session()\n",
|
||||
"# 注册钩子函数\n",
|
||||
"sessions.hooks['response'].append(print_url_hook)\n",
|
||||
"sessions.hooks['response'].append(print_response_hook)"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 54,
|
||||
"id": "eb844e83",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"Request URL: http://192.168.0.244:8100/oauth/token?client_id=client&grant_type=client_credentials&client_secret=123456\n",
|
||||
"Request Headers: {'User-Agent': 'python-requests/2.32.2', 'Accept-Encoding': 'gzip, deflate, br, zstd', 'Accept': '*/*', 'Connection': 'keep-alive'}\n",
|
||||
"Request Body: None\n",
|
||||
"Response URL: http://192.168.0.244:8100/oauth/token?client_id=client&grant_type=client_credentials&client_secret=123456\n",
|
||||
"Response Status Code: 200\n",
|
||||
"Response Headers: {'Cache-Control': 'no-store', 'Pragma': 'no-cache', 'X-Content-Type-Options': 'nosniff', 'X-XSS-Protection': '1; mode=block', 'X-Frame-Options': 'DENY', 'Content-Type': 'application/json;charset=UTF-8', 'Transfer-Encoding': 'chunked', 'Date': 'Fri, 23 May 2025 07:07:32 GMT'}\n",
|
||||
"Response Body: {\"access_token\":\"86878c6c-1151-4db7-93bb-71d9b1c07be9\",\"token_type\":\"bearer\",\"expires_in\":86031,\"scope\":\"select\"}\n",
|
||||
"Response Body: {\"access_token\":\"86878c6c-1151-4db7-93bb-71d9b1c07be9\",\"token_type\":\"bearer\",\"expires_in\":86031,\"scope\":\"select\"}\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"param = {\n",
|
||||
" \"client_id\": \"client\",\n",
|
||||
" \"grant_type\": \"client_credentials\",\n",
|
||||
" \"client_secret\": \"123456\",\n",
|
||||
"}\n",
|
||||
"# ip = \"https://band.hxzhxy.cn\"\n",
|
||||
"ip = \"http://192.168.0.244:8100\"\n",
|
||||
"data = sessions.get(url=f\"{ip}/oauth/token\", params=param)\n",
|
||||
"header = {\"Authorization\": f\"Bearer {data.json()['access_token']}\"}"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"id": "7b54b187",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"sessions.get(\"http://192.168.0.244:8100/home/screen/school\",headers=header)"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"id": "3624b16d",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"get(\"http://192.168.0.244:8080/home/screen/electric\",headers=header,params={\"access_token\":token})"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"id": "7a90a2ff",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": []
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"id": "b7892f11",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"sessions.get(\"http://192.168.0.244:8080/home/screen/electric\",headers=header,params={\"access_token\":token})"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 48,
|
||||
"id": "9a05cd98",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"file = None\n",
|
||||
"with open(\"screenshot.png\",\"rb\") as f:\n",
|
||||
" file = f.read()"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 49,
|
||||
"id": "8a778b76",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"252920"
|
||||
]
|
||||
},
|
||||
"execution_count": 49,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"len(file)"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 55,
|
||||
"id": "cdfb1954",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"{'success': True,\n",
|
||||
" 'msg': 'http://192.168.0.244:9000/test-iot-school/2025-05-23/2a9ad5a85be8459aa58af3d9c6274818.jpg',\n",
|
||||
" 'code': 0,\n",
|
||||
" 'data': None}"
|
||||
]
|
||||
},
|
||||
"execution_count": 55,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"post(f\"{ip}/school/device/content/upload\",headers=header,files={\"file\":(\n",
|
||||
" \"test.jpg\",\n",
|
||||
" file\n",
|
||||
")},proxies={\"http\":\"http://192.168.0.222:8080\"}).json()"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"id": "1bd04d34",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": []
|
||||
}
|
||||
],
|
||||
"metadata": {
|
||||
"kernelspec": {
|
||||
"display_name": "base",
|
||||
"language": "python",
|
||||
"name": "python3"
|
||||
},
|
||||
"language_info": {
|
||||
"codemirror_mode": {
|
||||
"name": "ipython",
|
||||
"version": 3
|
||||
},
|
||||
"file_extension": ".py",
|
||||
"mimetype": "text/x-python",
|
||||
"name": "python",
|
||||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython3",
|
||||
"version": "3.12.4"
|
||||
}
|
||||
},
|
||||
"nbformat": 4,
|
||||
"nbformat_minor": 5
|
||||
}
|
||||
@@ -0,0 +1,227 @@
|
||||
{
|
||||
"cells": [
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 2,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"from requests import get,post"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 6,
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"'{\"success\":false,\"msg\":\"非法访问,没有认证\",\"code\":10007,\"data\":null}'"
|
||||
]
|
||||
},
|
||||
"execution_count": 6,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"get(\"http://192.168.0.244:8100/culum/tea/get?id=14&access_token=11f0a07a-b6cb-4b1b-a1a4-9b83f90c9075\").text"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 30,
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"ename": "ConnectionError",
|
||||
"evalue": "HTTPConnectionPool(host='192.168.0.205', port=8100): Max retries exceeded with url: /door/accredit/sendNews?access_token=649cb490-214b-45a1-997d-18e84e9348e3 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x0000024767489A60>: Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。'))",
|
||||
"output_type": "error",
|
||||
"traceback": [
|
||||
"\u001b[1;31m---------------------------------------------------------------------------\u001b[0m",
|
||||
"\u001b[1;31mConnectionRefusedError\u001b[0m Traceback (most recent call last)",
|
||||
"File \u001b[1;32md:\\Anaconda3\\Lib\\site-packages\\urllib3\\connection.py:196\u001b[0m, in \u001b[0;36mHTTPConnection._new_conn\u001b[1;34m(self)\u001b[0m\n\u001b[0;32m 195\u001b[0m \u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[1;32m--> 196\u001b[0m sock \u001b[38;5;241m=\u001b[39m connection\u001b[38;5;241m.\u001b[39mcreate_connection(\n\u001b[0;32m 197\u001b[0m (\u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39m_dns_host, \u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mport),\n\u001b[0;32m 198\u001b[0m \u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mtimeout,\n\u001b[0;32m 199\u001b[0m source_address\u001b[38;5;241m=\u001b[39m\u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39msource_address,\n\u001b[0;32m 200\u001b[0m socket_options\u001b[38;5;241m=\u001b[39m\u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39msocket_options,\n\u001b[0;32m 201\u001b[0m )\n\u001b[0;32m 202\u001b[0m \u001b[38;5;28;01mexcept\u001b[39;00m socket\u001b[38;5;241m.\u001b[39mgaierror \u001b[38;5;28;01mas\u001b[39;00m e:\n",
|
||||
"File \u001b[1;32md:\\Anaconda3\\Lib\\site-packages\\urllib3\\util\\connection.py:85\u001b[0m, in \u001b[0;36mcreate_connection\u001b[1;34m(address, timeout, source_address, socket_options)\u001b[0m\n\u001b[0;32m 84\u001b[0m \u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[1;32m---> 85\u001b[0m \u001b[38;5;28;01mraise\u001b[39;00m err\n\u001b[0;32m 86\u001b[0m \u001b[38;5;28;01mfinally\u001b[39;00m:\n\u001b[0;32m 87\u001b[0m \u001b[38;5;66;03m# Break explicitly a reference cycle\u001b[39;00m\n",
|
||||
"File \u001b[1;32md:\\Anaconda3\\Lib\\site-packages\\urllib3\\util\\connection.py:73\u001b[0m, in \u001b[0;36mcreate_connection\u001b[1;34m(address, timeout, source_address, socket_options)\u001b[0m\n\u001b[0;32m 72\u001b[0m sock\u001b[38;5;241m.\u001b[39mbind(source_address)\n\u001b[1;32m---> 73\u001b[0m sock\u001b[38;5;241m.\u001b[39mconnect(sa)\n\u001b[0;32m 74\u001b[0m \u001b[38;5;66;03m# Break explicitly a reference cycle\u001b[39;00m\n",
|
||||
"\u001b[1;31mConnectionRefusedError\u001b[0m: [WinError 10061] 由于目标计算机积极拒绝,无法连接。",
|
||||
"\nThe above exception was the direct cause of the following exception:\n",
|
||||
"\u001b[1;31mNewConnectionError\u001b[0m Traceback (most recent call last)",
|
||||
"File \u001b[1;32md:\\Anaconda3\\Lib\\site-packages\\urllib3\\connectionpool.py:789\u001b[0m, in \u001b[0;36mHTTPConnectionPool.urlopen\u001b[1;34m(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, preload_content, decode_content, **response_kw)\u001b[0m\n\u001b[0;32m 788\u001b[0m \u001b[38;5;66;03m# Make the request on the HTTPConnection object\u001b[39;00m\n\u001b[1;32m--> 789\u001b[0m response \u001b[38;5;241m=\u001b[39m \u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39m_make_request(\n\u001b[0;32m 790\u001b[0m conn,\n\u001b[0;32m 791\u001b[0m method,\n\u001b[0;32m 792\u001b[0m url,\n\u001b[0;32m 793\u001b[0m timeout\u001b[38;5;241m=\u001b[39mtimeout_obj,\n\u001b[0;32m 794\u001b[0m body\u001b[38;5;241m=\u001b[39mbody,\n\u001b[0;32m 795\u001b[0m headers\u001b[38;5;241m=\u001b[39mheaders,\n\u001b[0;32m 796\u001b[0m chunked\u001b[38;5;241m=\u001b[39mchunked,\n\u001b[0;32m 797\u001b[0m retries\u001b[38;5;241m=\u001b[39mretries,\n\u001b[0;32m 798\u001b[0m response_conn\u001b[38;5;241m=\u001b[39mresponse_conn,\n\u001b[0;32m 799\u001b[0m preload_content\u001b[38;5;241m=\u001b[39mpreload_content,\n\u001b[0;32m 800\u001b[0m decode_content\u001b[38;5;241m=\u001b[39mdecode_content,\n\u001b[0;32m 801\u001b[0m \u001b[38;5;241m*\u001b[39m\u001b[38;5;241m*\u001b[39mresponse_kw,\n\u001b[0;32m 802\u001b[0m )\n\u001b[0;32m 804\u001b[0m \u001b[38;5;66;03m# Everything went great!\u001b[39;00m\n",
|
||||
"File \u001b[1;32md:\\Anaconda3\\Lib\\site-packages\\urllib3\\connectionpool.py:495\u001b[0m, in \u001b[0;36mHTTPConnectionPool._make_request\u001b[1;34m(self, conn, method, url, body, headers, retries, timeout, chunked, response_conn, preload_content, decode_content, enforce_content_length)\u001b[0m\n\u001b[0;32m 494\u001b[0m \u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[1;32m--> 495\u001b[0m conn\u001b[38;5;241m.\u001b[39mrequest(\n\u001b[0;32m 496\u001b[0m method,\n\u001b[0;32m 497\u001b[0m url,\n\u001b[0;32m 498\u001b[0m body\u001b[38;5;241m=\u001b[39mbody,\n\u001b[0;32m 499\u001b[0m headers\u001b[38;5;241m=\u001b[39mheaders,\n\u001b[0;32m 500\u001b[0m chunked\u001b[38;5;241m=\u001b[39mchunked,\n\u001b[0;32m 501\u001b[0m preload_content\u001b[38;5;241m=\u001b[39mpreload_content,\n\u001b[0;32m 502\u001b[0m decode_content\u001b[38;5;241m=\u001b[39mdecode_content,\n\u001b[0;32m 503\u001b[0m enforce_content_length\u001b[38;5;241m=\u001b[39menforce_content_length,\n\u001b[0;32m 504\u001b[0m )\n\u001b[0;32m 506\u001b[0m \u001b[38;5;66;03m# We are swallowing BrokenPipeError (errno.EPIPE) since the server is\u001b[39;00m\n\u001b[0;32m 507\u001b[0m \u001b[38;5;66;03m# legitimately able to close the connection after sending a valid response.\u001b[39;00m\n\u001b[0;32m 508\u001b[0m \u001b[38;5;66;03m# With this behaviour, the received response is still readable.\u001b[39;00m\n",
|
||||
"File \u001b[1;32md:\\Anaconda3\\Lib\\site-packages\\urllib3\\connection.py:398\u001b[0m, in \u001b[0;36mHTTPConnection.request\u001b[1;34m(self, method, url, body, headers, chunked, preload_content, decode_content, enforce_content_length)\u001b[0m\n\u001b[0;32m 397\u001b[0m \u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mputheader(header, value)\n\u001b[1;32m--> 398\u001b[0m \u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mendheaders()\n\u001b[0;32m 400\u001b[0m \u001b[38;5;66;03m# If we're given a body we start sending that in chunks.\u001b[39;00m\n",
|
||||
"File \u001b[1;32md:\\Anaconda3\\Lib\\http\\client.py:1331\u001b[0m, in \u001b[0;36mHTTPConnection.endheaders\u001b[1;34m(self, message_body, encode_chunked)\u001b[0m\n\u001b[0;32m 1330\u001b[0m \u001b[38;5;28;01mraise\u001b[39;00m CannotSendHeader()\n\u001b[1;32m-> 1331\u001b[0m \u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39m_send_output(message_body, encode_chunked\u001b[38;5;241m=\u001b[39mencode_chunked)\n",
|
||||
"File \u001b[1;32md:\\Anaconda3\\Lib\\http\\client.py:1091\u001b[0m, in \u001b[0;36mHTTPConnection._send_output\u001b[1;34m(self, message_body, encode_chunked)\u001b[0m\n\u001b[0;32m 1090\u001b[0m \u001b[38;5;28;01mdel\u001b[39;00m \u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39m_buffer[:]\n\u001b[1;32m-> 1091\u001b[0m \u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39msend(msg)\n\u001b[0;32m 1093\u001b[0m \u001b[38;5;28;01mif\u001b[39;00m message_body \u001b[38;5;129;01mis\u001b[39;00m \u001b[38;5;129;01mnot\u001b[39;00m \u001b[38;5;28;01mNone\u001b[39;00m:\n\u001b[0;32m 1094\u001b[0m \n\u001b[0;32m 1095\u001b[0m \u001b[38;5;66;03m# create a consistent interface to message_body\u001b[39;00m\n",
|
||||
"File \u001b[1;32md:\\Anaconda3\\Lib\\http\\client.py:1035\u001b[0m, in \u001b[0;36mHTTPConnection.send\u001b[1;34m(self, data)\u001b[0m\n\u001b[0;32m 1034\u001b[0m \u001b[38;5;28;01mif\u001b[39;00m \u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mauto_open:\n\u001b[1;32m-> 1035\u001b[0m \u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mconnect()\n\u001b[0;32m 1036\u001b[0m \u001b[38;5;28;01melse\u001b[39;00m:\n",
|
||||
"File \u001b[1;32md:\\Anaconda3\\Lib\\site-packages\\urllib3\\connection.py:236\u001b[0m, in \u001b[0;36mHTTPConnection.connect\u001b[1;34m(self)\u001b[0m\n\u001b[0;32m 235\u001b[0m \u001b[38;5;28;01mdef\u001b[39;00m \u001b[38;5;21mconnect\u001b[39m(\u001b[38;5;28mself\u001b[39m) \u001b[38;5;241m-\u001b[39m\u001b[38;5;241m>\u001b[39m \u001b[38;5;28;01mNone\u001b[39;00m:\n\u001b[1;32m--> 236\u001b[0m \u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39msock \u001b[38;5;241m=\u001b[39m \u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39m_new_conn()\n\u001b[0;32m 237\u001b[0m \u001b[38;5;28;01mif\u001b[39;00m \u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39m_tunnel_host:\n\u001b[0;32m 238\u001b[0m \u001b[38;5;66;03m# If we're tunneling it means we're connected to our proxy.\u001b[39;00m\n",
|
||||
"File \u001b[1;32md:\\Anaconda3\\Lib\\site-packages\\urllib3\\connection.py:211\u001b[0m, in \u001b[0;36mHTTPConnection._new_conn\u001b[1;34m(self)\u001b[0m\n\u001b[0;32m 210\u001b[0m \u001b[38;5;28;01mexcept\u001b[39;00m \u001b[38;5;167;01mOSError\u001b[39;00m \u001b[38;5;28;01mas\u001b[39;00m e:\n\u001b[1;32m--> 211\u001b[0m \u001b[38;5;28;01mraise\u001b[39;00m NewConnectionError(\n\u001b[0;32m 212\u001b[0m \u001b[38;5;28mself\u001b[39m, \u001b[38;5;124mf\u001b[39m\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mFailed to establish a new connection: \u001b[39m\u001b[38;5;132;01m{\u001b[39;00me\u001b[38;5;132;01m}\u001b[39;00m\u001b[38;5;124m\"\u001b[39m\n\u001b[0;32m 213\u001b[0m ) \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;21;01me\u001b[39;00m\n\u001b[0;32m 215\u001b[0m \u001b[38;5;66;03m# Audit hooks are only available in Python 3.8+\u001b[39;00m\n",
|
||||
"\u001b[1;31mNewConnectionError\u001b[0m: <urllib3.connection.HTTPConnection object at 0x0000024767489A60>: Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。",
|
||||
"\nThe above exception was the direct cause of the following exception:\n",
|
||||
"\u001b[1;31mMaxRetryError\u001b[0m Traceback (most recent call last)",
|
||||
"File \u001b[1;32md:\\Anaconda3\\Lib\\site-packages\\requests\\adapters.py:589\u001b[0m, in \u001b[0;36mHTTPAdapter.send\u001b[1;34m(self, request, stream, timeout, verify, cert, proxies)\u001b[0m\n\u001b[0;32m 588\u001b[0m \u001b[38;5;28;01mtry\u001b[39;00m:\n\u001b[1;32m--> 589\u001b[0m resp \u001b[38;5;241m=\u001b[39m conn\u001b[38;5;241m.\u001b[39murlopen(\n\u001b[0;32m 590\u001b[0m method\u001b[38;5;241m=\u001b[39mrequest\u001b[38;5;241m.\u001b[39mmethod,\n\u001b[0;32m 591\u001b[0m url\u001b[38;5;241m=\u001b[39murl,\n\u001b[0;32m 592\u001b[0m body\u001b[38;5;241m=\u001b[39mrequest\u001b[38;5;241m.\u001b[39mbody,\n\u001b[0;32m 593\u001b[0m headers\u001b[38;5;241m=\u001b[39mrequest\u001b[38;5;241m.\u001b[39mheaders,\n\u001b[0;32m 594\u001b[0m redirect\u001b[38;5;241m=\u001b[39m\u001b[38;5;28;01mFalse\u001b[39;00m,\n\u001b[0;32m 595\u001b[0m assert_same_host\u001b[38;5;241m=\u001b[39m\u001b[38;5;28;01mFalse\u001b[39;00m,\n\u001b[0;32m 596\u001b[0m preload_content\u001b[38;5;241m=\u001b[39m\u001b[38;5;28;01mFalse\u001b[39;00m,\n\u001b[0;32m 597\u001b[0m decode_content\u001b[38;5;241m=\u001b[39m\u001b[38;5;28;01mFalse\u001b[39;00m,\n\u001b[0;32m 598\u001b[0m retries\u001b[38;5;241m=\u001b[39m\u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39mmax_retries,\n\u001b[0;32m 599\u001b[0m timeout\u001b[38;5;241m=\u001b[39mtimeout,\n\u001b[0;32m 600\u001b[0m chunked\u001b[38;5;241m=\u001b[39mchunked,\n\u001b[0;32m 601\u001b[0m )\n\u001b[0;32m 603\u001b[0m \u001b[38;5;28;01mexcept\u001b[39;00m (ProtocolError, \u001b[38;5;167;01mOSError\u001b[39;00m) \u001b[38;5;28;01mas\u001b[39;00m err:\n",
|
||||
"File \u001b[1;32md:\\Anaconda3\\Lib\\site-packages\\urllib3\\connectionpool.py:843\u001b[0m, in \u001b[0;36mHTTPConnectionPool.urlopen\u001b[1;34m(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, preload_content, decode_content, **response_kw)\u001b[0m\n\u001b[0;32m 841\u001b[0m new_e \u001b[38;5;241m=\u001b[39m ProtocolError(\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mConnection aborted.\u001b[39m\u001b[38;5;124m\"\u001b[39m, new_e)\n\u001b[1;32m--> 843\u001b[0m retries \u001b[38;5;241m=\u001b[39m retries\u001b[38;5;241m.\u001b[39mincrement(\n\u001b[0;32m 844\u001b[0m method, url, error\u001b[38;5;241m=\u001b[39mnew_e, _pool\u001b[38;5;241m=\u001b[39m\u001b[38;5;28mself\u001b[39m, _stacktrace\u001b[38;5;241m=\u001b[39msys\u001b[38;5;241m.\u001b[39mexc_info()[\u001b[38;5;241m2\u001b[39m]\n\u001b[0;32m 845\u001b[0m )\n\u001b[0;32m 846\u001b[0m retries\u001b[38;5;241m.\u001b[39msleep()\n",
|
||||
"File \u001b[1;32md:\\Anaconda3\\Lib\\site-packages\\urllib3\\util\\retry.py:519\u001b[0m, in \u001b[0;36mRetry.increment\u001b[1;34m(self, method, url, response, error, _pool, _stacktrace)\u001b[0m\n\u001b[0;32m 518\u001b[0m reason \u001b[38;5;241m=\u001b[39m error \u001b[38;5;129;01mor\u001b[39;00m ResponseError(cause)\n\u001b[1;32m--> 519\u001b[0m \u001b[38;5;28;01mraise\u001b[39;00m MaxRetryError(_pool, url, reason) \u001b[38;5;28;01mfrom\u001b[39;00m \u001b[38;5;21;01mreason\u001b[39;00m \u001b[38;5;66;03m# type: ignore[arg-type]\u001b[39;00m\n\u001b[0;32m 521\u001b[0m log\u001b[38;5;241m.\u001b[39mdebug(\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mIncremented Retry for (url=\u001b[39m\u001b[38;5;124m'\u001b[39m\u001b[38;5;132;01m%s\u001b[39;00m\u001b[38;5;124m'\u001b[39m\u001b[38;5;124m): \u001b[39m\u001b[38;5;132;01m%r\u001b[39;00m\u001b[38;5;124m\"\u001b[39m, url, new_retry)\n",
|
||||
"\u001b[1;31mMaxRetryError\u001b[0m: HTTPConnectionPool(host='192.168.0.205', port=8100): Max retries exceeded with url: /door/accredit/sendNews?access_token=649cb490-214b-45a1-997d-18e84e9348e3 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x0000024767489A60>: Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。'))",
|
||||
"\nDuring handling of the above exception, another exception occurred:\n",
|
||||
"\u001b[1;31mConnectionError\u001b[0m Traceback (most recent call last)",
|
||||
"Cell \u001b[1;32mIn[30], line 1\u001b[0m\n\u001b[1;32m----> 1\u001b[0m post(\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mhttp://192.168.0.205:8100/door/accredit/sendNews?access_token=649cb490-214b-45a1-997d-18e84e9348e3\u001b[39m\u001b[38;5;124m\"\u001b[39m,json\u001b[38;5;241m=\u001b[39m{\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mstartTime\u001b[39m\u001b[38;5;124m\"\u001b[39m:\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124m25091515\u001b[39m\u001b[38;5;124m\"\u001b[39m,\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mendTime\u001b[39m\u001b[38;5;124m\"\u001b[39m:\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124m28061215\u001b[39m\u001b[38;5;124m\"\u001b[39m,\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124madminType\u001b[39m\u001b[38;5;124m\"\u001b[39m:\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124m55\u001b[39m\u001b[38;5;124m\"\u001b[39m,\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mtype\u001b[39m\u001b[38;5;124m\"\u001b[39m:\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124m01\u001b[39m\u001b[38;5;124m\"\u001b[39m,\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mtime\u001b[39m\u001b[38;5;124m\"\u001b[39m:[\u001b[38;5;241m1757919929119\u001b[39m,\u001b[38;5;241m1844406329119\u001b[39m],\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124maccountIp\u001b[39m\u001b[38;5;124m\"\u001b[39m:\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124m192.168.0.111\u001b[39m\u001b[38;5;124m\"\u001b[39m,\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124maccountName\u001b[39m\u001b[38;5;124m\"\u001b[39m:\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mNRSKKLYXDQTXUTJ\u001b[39m\u001b[38;5;124m\"\u001b[39m,\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mlockNo\u001b[39m\u001b[38;5;124m\"\u001b[39m:\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124m8686987\u001b[39m\u001b[38;5;124m\"\u001b[39m,\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mcategory\u001b[39m\u001b[38;5;124m\"\u001b[39m:\u001b[38;5;241m2\u001b[39m,\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mserialNo\u001b[39m\u001b[38;5;124m\"\u001b[39m:\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124m\"\u001b[39m,\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124maddAdminBand\u001b[39m\u001b[38;5;124m\"\u001b[39m:\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124m\"\u001b[39m,\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124maddUserBand\u001b[39m\u001b[38;5;124m\"\u001b[39m:\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124m\"\u001b[39m,\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mremoveBand\u001b[39m\u001b[38;5;124m\"\u001b[39m:\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124m3172414151,31313122222\u001b[39m\u001b[38;5;124m\"\u001b[39m,\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mdoorAccreditIds\u001b[39m\u001b[38;5;124m\"\u001b[39m:\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124m6891,6892\u001b[39m\u001b[38;5;124m\"\u001b[39m})\u001b[38;5;241m.\u001b[39mtext\n",
|
||||
"File \u001b[1;32md:\\Anaconda3\\Lib\\site-packages\\requests\\api.py:115\u001b[0m, in \u001b[0;36mpost\u001b[1;34m(url, data, json, **kwargs)\u001b[0m\n\u001b[0;32m 103\u001b[0m \u001b[38;5;28;01mdef\u001b[39;00m \u001b[38;5;21mpost\u001b[39m(url, data\u001b[38;5;241m=\u001b[39m\u001b[38;5;28;01mNone\u001b[39;00m, json\u001b[38;5;241m=\u001b[39m\u001b[38;5;28;01mNone\u001b[39;00m, \u001b[38;5;241m*\u001b[39m\u001b[38;5;241m*\u001b[39mkwargs):\n\u001b[0;32m 104\u001b[0m \u001b[38;5;250m \u001b[39m\u001b[38;5;124mr\u001b[39m\u001b[38;5;124;03m\"\"\"Sends a POST request.\u001b[39;00m\n\u001b[0;32m 105\u001b[0m \n\u001b[0;32m 106\u001b[0m \u001b[38;5;124;03m :param url: URL for the new :class:`Request` object.\u001b[39;00m\n\u001b[1;32m (...)\u001b[0m\n\u001b[0;32m 112\u001b[0m \u001b[38;5;124;03m :rtype: requests.Response\u001b[39;00m\n\u001b[0;32m 113\u001b[0m \u001b[38;5;124;03m \"\"\"\u001b[39;00m\n\u001b[1;32m--> 115\u001b[0m \u001b[38;5;28;01mreturn\u001b[39;00m request(\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mpost\u001b[39m\u001b[38;5;124m\"\u001b[39m, url, data\u001b[38;5;241m=\u001b[39mdata, json\u001b[38;5;241m=\u001b[39mjson, \u001b[38;5;241m*\u001b[39m\u001b[38;5;241m*\u001b[39mkwargs)\n",
|
||||
"File \u001b[1;32md:\\Anaconda3\\Lib\\site-packages\\requests\\api.py:59\u001b[0m, in \u001b[0;36mrequest\u001b[1;34m(method, url, **kwargs)\u001b[0m\n\u001b[0;32m 55\u001b[0m \u001b[38;5;66;03m# By using the 'with' statement we are sure the session is closed, thus we\u001b[39;00m\n\u001b[0;32m 56\u001b[0m \u001b[38;5;66;03m# avoid leaving sockets open which can trigger a ResourceWarning in some\u001b[39;00m\n\u001b[0;32m 57\u001b[0m \u001b[38;5;66;03m# cases, and look like a memory leak in others.\u001b[39;00m\n\u001b[0;32m 58\u001b[0m \u001b[38;5;28;01mwith\u001b[39;00m sessions\u001b[38;5;241m.\u001b[39mSession() \u001b[38;5;28;01mas\u001b[39;00m session:\n\u001b[1;32m---> 59\u001b[0m \u001b[38;5;28;01mreturn\u001b[39;00m session\u001b[38;5;241m.\u001b[39mrequest(method\u001b[38;5;241m=\u001b[39mmethod, url\u001b[38;5;241m=\u001b[39murl, \u001b[38;5;241m*\u001b[39m\u001b[38;5;241m*\u001b[39mkwargs)\n",
|
||||
"File \u001b[1;32md:\\Anaconda3\\Lib\\site-packages\\requests\\sessions.py:589\u001b[0m, in \u001b[0;36mSession.request\u001b[1;34m(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json)\u001b[0m\n\u001b[0;32m 584\u001b[0m send_kwargs \u001b[38;5;241m=\u001b[39m {\n\u001b[0;32m 585\u001b[0m \u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mtimeout\u001b[39m\u001b[38;5;124m\"\u001b[39m: timeout,\n\u001b[0;32m 586\u001b[0m \u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mallow_redirects\u001b[39m\u001b[38;5;124m\"\u001b[39m: allow_redirects,\n\u001b[0;32m 587\u001b[0m }\n\u001b[0;32m 588\u001b[0m send_kwargs\u001b[38;5;241m.\u001b[39mupdate(settings)\n\u001b[1;32m--> 589\u001b[0m resp \u001b[38;5;241m=\u001b[39m \u001b[38;5;28mself\u001b[39m\u001b[38;5;241m.\u001b[39msend(prep, \u001b[38;5;241m*\u001b[39m\u001b[38;5;241m*\u001b[39msend_kwargs)\n\u001b[0;32m 591\u001b[0m \u001b[38;5;28;01mreturn\u001b[39;00m resp\n",
|
||||
"File \u001b[1;32md:\\Anaconda3\\Lib\\site-packages\\requests\\sessions.py:703\u001b[0m, in \u001b[0;36mSession.send\u001b[1;34m(self, request, **kwargs)\u001b[0m\n\u001b[0;32m 700\u001b[0m start \u001b[38;5;241m=\u001b[39m preferred_clock()\n\u001b[0;32m 702\u001b[0m \u001b[38;5;66;03m# Send the request\u001b[39;00m\n\u001b[1;32m--> 703\u001b[0m r \u001b[38;5;241m=\u001b[39m adapter\u001b[38;5;241m.\u001b[39msend(request, \u001b[38;5;241m*\u001b[39m\u001b[38;5;241m*\u001b[39mkwargs)\n\u001b[0;32m 705\u001b[0m \u001b[38;5;66;03m# Total elapsed time of the request (approximately)\u001b[39;00m\n\u001b[0;32m 706\u001b[0m elapsed \u001b[38;5;241m=\u001b[39m preferred_clock() \u001b[38;5;241m-\u001b[39m start\n",
|
||||
"File \u001b[1;32md:\\Anaconda3\\Lib\\site-packages\\requests\\adapters.py:622\u001b[0m, in \u001b[0;36mHTTPAdapter.send\u001b[1;34m(self, request, stream, timeout, verify, cert, proxies)\u001b[0m\n\u001b[0;32m 618\u001b[0m \u001b[38;5;28;01mif\u001b[39;00m \u001b[38;5;28misinstance\u001b[39m(e\u001b[38;5;241m.\u001b[39mreason, _SSLError):\n\u001b[0;32m 619\u001b[0m \u001b[38;5;66;03m# This branch is for urllib3 v1.22 and later.\u001b[39;00m\n\u001b[0;32m 620\u001b[0m \u001b[38;5;28;01mraise\u001b[39;00m SSLError(e, request\u001b[38;5;241m=\u001b[39mrequest)\n\u001b[1;32m--> 622\u001b[0m \u001b[38;5;28;01mraise\u001b[39;00m \u001b[38;5;167;01mConnectionError\u001b[39;00m(e, request\u001b[38;5;241m=\u001b[39mrequest)\n\u001b[0;32m 624\u001b[0m \u001b[38;5;28;01mexcept\u001b[39;00m ClosedPoolError \u001b[38;5;28;01mas\u001b[39;00m e:\n\u001b[0;32m 625\u001b[0m \u001b[38;5;28;01mraise\u001b[39;00m \u001b[38;5;167;01mConnectionError\u001b[39;00m(e, request\u001b[38;5;241m=\u001b[39mrequest)\n",
|
||||
"\u001b[1;31mConnectionError\u001b[0m: HTTPConnectionPool(host='192.168.0.205', port=8100): Max retries exceeded with url: /door/accredit/sendNews?access_token=649cb490-214b-45a1-997d-18e84e9348e3 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x0000024767489A60>: Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。'))"
|
||||
]
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"post(\"http://192.168.0.205:8100/door/accredit/sendNews?access_token=649cb490-214b-45a1-997d-18e84e9348e3\",json={\"startTime\":\"25091515\",\"endTime\":\"28061215\",\"adminType\":\"55\",\"type\":\"01\",\"time\":[1757919929119,1844406329119],\"accountIp\":\"192.168.0.111\",\"accountName\":\"NRSKKLYXDQTXUTJ\",\"lockNo\":\"8686987\",\"category\":2,\"serialNo\":\"\",\"addAdminBand\":\"\",\"addUserBand\":\"\",\"removeBand\":\"3172414151,31313122222\",\"doorAccreditIds\":\"6891,6892\"}).text"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"\"SELECT *,(SELECT COUNT(1) FROM FRM_DEPARTMENT WHERE A.GLBM = FRM_DEPARTMENT.SJBM) AS XJDWGS FROM (\"\n",
|
||||
"+ \" SELECT * FROM FRM_DEPARTMENT WHERE 1=1 \"\n",
|
||||
"+ \" and SJBM = '\" + sjbm + \"'\"\n",
|
||||
"+ \" ORDER BY GLBM ) AS A \"\n",
|
||||
"+ \" ORDER BY glbm\""
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 15,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"header = {\n",
|
||||
" \"authorization\":'''eyJhbGciOiJIUzUxMiIsInppcCI6IkRFRiJ9.eNo0y9EKgzAMheF3yXUDjWla49tYzIXbmKPtxkB8d-1gdz8f5-xwaytMQJFNbRDMEhnDohl18RFZOI1JdSYScFDfuY-vWmu9qm13e2K18rHScW4wURKWwauwA_u-_kBjh7I9rB_J_ZSYyIeQ4DgBAAD__w.PMebNf9aPLD-mQv784XFRqeiuGD-RbflMKHShWVG_s0nfgmmoogquEvp448uXCjjK_qQamX0eqTnL9-qtnRO6Q'''\n",
|
||||
"}"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 13,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"data = get(\"http://192.168.0.111:9966/account/login?tokenKey=get&appId=1×tamp=0&methodName=login&userKey=FH0DH2&password=RGV2ZWxvcDg4OA%3D%3D\").json()\n",
|
||||
"token = data.get(\"results\", {}).get(\"tokenKey\", \"\")\n",
|
||||
"key = data.get(\"results\", {}).get(\"userKey\", \"\")"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"('z16tcjymrde1c4ry', 'rck19l')"
|
||||
]
|
||||
},
|
||||
"execution_count": 10,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
],
|
||||
"source": []
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 14,
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"'{\"code\":4006,\"message\":\"用户名或者密码错误超过5次数,请10分钟之后重试\",\"success\":false}'"
|
||||
]
|
||||
},
|
||||
"execution_count": 14,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"post(\"http://192.168.0.111:9966/account/login\",json={\"appId\":\"1\",\"methodName\":\"login\",\"password\":token,\"timestamp\":\"Sat, 26 Jul 2025 08:37:17 GMT\",\"userKey\":key}).text"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"INSERT INTO auth_resource(id, code, name, parentid, uri, type, method, icon, status, createtime, updatetime) \n",
|
||||
"VALUES (2, 'rhfxcgindex', '车管业务', null, '', 1, 'GET', NULL, 1, CURRENT_TIMESTAMP, NULL),\n",
|
||||
" (3, 'rhfxcgindex01', '允许访问页面', 2, 'rhfxcgindex', 3, 'GET', NULL, 1, CURRENT_TIMESTAMP, NULL);"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 4,
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"'{\"success\":true,\"code\":200,\"message\":\"成功\",\"results\":[]}'"
|
||||
]
|
||||
},
|
||||
"execution_count": 4,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"get(\"http://192.168.0.111:9966/userrolepermission/judgerole\",headers=header).text"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 18,
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"'java.net.SocketTimeoutException: Read timed out'"
|
||||
]
|
||||
},
|
||||
"execution_count": 18,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"get(\"http://192.168.0.111:9966/addResource/addResource\",headers=header,params={\"prename\":None,\"name\":\"车管业务\",\"filename\":\"rhfxcgindex\"}).text"
|
||||
]
|
||||
}
|
||||
],
|
||||
"metadata": {
|
||||
"kernelspec": {
|
||||
"display_name": "base",
|
||||
"language": "python",
|
||||
"name": "python3"
|
||||
},
|
||||
"language_info": {
|
||||
"codemirror_mode": {
|
||||
"name": "ipython",
|
||||
"version": 3
|
||||
},
|
||||
"file_extension": ".py",
|
||||
"mimetype": "text/x-python",
|
||||
"name": "python",
|
||||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython3",
|
||||
"version": "3.12.4"
|
||||
}
|
||||
},
|
||||
"nbformat": 4,
|
||||
"nbformat_minor": 2
|
||||
}
|
||||
@@ -0,0 +1,183 @@
|
||||
{
|
||||
"cells": [
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 1,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"from requests import get,post\n"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 2,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"from requests import get,post\n",
|
||||
"import time\n",
|
||||
"ip = \"http://band.hxzhxy.cn\"\n",
|
||||
"# ip = \"http://192.168.0.244:8100\"\n",
|
||||
"\n",
|
||||
"param = {\n",
|
||||
" \"username\": \"tangchao\",\n",
|
||||
" \"password\": \"123456a\",\n",
|
||||
" \"client_id\": \"client\",\n",
|
||||
" \"grant_type\": \"password\",\n",
|
||||
" \"client_secret\": \"123456\",\n",
|
||||
"}\n",
|
||||
"data = get(url=f\"http://band.hxzhxy.cn/oauth/token?username=zhongwei&password=123456a&client_id=client&grant_type=password&client_secret=123456\").json()\n",
|
||||
"token = data[\"access_token\"]\n",
|
||||
"header = {\n",
|
||||
" \"content-type\": \"application/json\",\n",
|
||||
" \"authorization\": f\"Bearer {token}\",\n",
|
||||
"}"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 13,
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"{'success': True, 'msg': '操作成功', 'code': 0, 'data': '接收成功'}"
|
||||
]
|
||||
},
|
||||
"execution_count": 13,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"# ip = \"http://band.hxzhxy.cn\"\n",
|
||||
"ip = \"http://192.168.0.205:8090\"\n",
|
||||
"post(f\"{ip}/httpLock/log\",json={'lockId': '8686987', 'notifyType': '1', 'records': '[{\"lockId\":8686987,\"electricQuantity\":100,\"serverDate\":1758100706693,\"recordTypeFromLock\":17,\"recordType\":7,\"success\":1,\"lockMac\":\"FD:15:3A:7E:D1:E2\",\"keyboardPwd\":\"3157220353\",\"lockDate\":1758100692000,\"username\":\"夏天乐带0\"}]', 'admin': 'xtlft@qq.com', 'lockMac': 'FD:15:3A:7E:D1:E2'}).json()"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"import datetime\n",
|
||||
"s = int(datetime.datetime(2025,9,15).timestamp()*1000)\n",
|
||||
"e = int(datetime.datetime(2025,9,19).timestamp()*1000)"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 8,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"data = post(f\"{ip}/lock/log/exportExcelStuCount\",params={\"teamId\":110,\"startTime\":s,\"endTime\":e},headers=header)"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 10,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"with open (\"1.xlsx\",\"wb\") as f:\n",
|
||||
" f.write(data.content)"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 5,
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"<Response [200]>"
|
||||
]
|
||||
},
|
||||
"execution_count": 5,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"get(f\"{ip}/oauth/token\",params=param)"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 3,
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"<html>\n",
|
||||
"<head><title>404 Not Found</title></head>\n",
|
||||
"<body bgcolor=\"white\">\n",
|
||||
"<center><h1>404 Not Found</h1></center>\n",
|
||||
"<hr><center>nginx/1.4.0</center>\n",
|
||||
"</body>\n",
|
||||
"</html>\n",
|
||||
"\n",
|
||||
"<html>\n",
|
||||
"<head><title>404 Not Found</title></head>\n",
|
||||
"<body bgcolor=\"white\">\n",
|
||||
"<center><h1>404 Not Found</h1></center>\n",
|
||||
"<hr><center>nginx/1.4.0</center>\n",
|
||||
"</body>\n",
|
||||
"</html>\n",
|
||||
"\n",
|
||||
"{\"success\":false,\"msg\":\"系统错误\",\"code\":10000,\"data\":null}\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"for i in range(24,27):\n",
|
||||
" print(post(f\"{ip}/classAttendStu/createThisWeek\",headers=header,params={\"planId\":i},timeout=600).text)"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 13,
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"{\"success\":false,\"msg\":\"系统错误\",\"code\":10000,\"data\":null}\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"print(post(f\"{ip}/classAttendStu/createThisWeek\",headers=header,params={\"planId\":31},timeout=600).text)"
|
||||
]
|
||||
}
|
||||
],
|
||||
"metadata": {
|
||||
"kernelspec": {
|
||||
"display_name": "base",
|
||||
"language": "python",
|
||||
"name": "python3"
|
||||
},
|
||||
"language_info": {
|
||||
"codemirror_mode": {
|
||||
"name": "ipython",
|
||||
"version": 3
|
||||
},
|
||||
"file_extension": ".py",
|
||||
"mimetype": "text/x-python",
|
||||
"name": "python",
|
||||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython3",
|
||||
"version": "3.12.4"
|
||||
}
|
||||
},
|
||||
"nbformat": 4,
|
||||
"nbformat_minor": 2
|
||||
}
|
||||
+264
@@ -0,0 +1,264 @@
|
||||
{
|
||||
"cells": [
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 1,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"from requests import get,post"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 7,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"headers = {\n",
|
||||
" \"authorization\":\"Bearer czs_h7L9OSgejkWbzwau7RfDzO35tWFNnXA3URoe1xtz1WYhyvfxDWuUTDhUGHPREjBxn\",\n",
|
||||
" \"content-type\":\"application/json\"\n",
|
||||
"}\n",
|
||||
"ip = \"https://api.coze.cn\""
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 8,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"data = get(f\"{ip}/v1/conversation/message/list?conversation_id=7483161006881980479\",json={\"limit\":20},headers=headers).json()"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 15,
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"event: conversation.chat.created\n",
|
||||
"data: {\"id\":\"7506806634484744230\",\"conversation_id\":\"7506806371942301737\",\"created_at\":1747814621,\"last_error\":{\"code\":0,\"msg\":\"\"},\"status\":\"created\",\"usage\":{\"token_count\":0,\"output_count\":0,\"input_count\":0},\"section_id\":\"7506806371942301737\",\"execute_id\":\"7506806633684779017\",\"inserted_additional_messages\":[{\"id\":\"7506806606261403657\"}]}\n",
|
||||
"event: conversation.chat.in_progress\n",
|
||||
"data: {\"id\":\"7506806634484744230\",\"conversation_id\":\"7506806371942301737\",\"created_at\":1747814621,\"last_error\":{\"code\":0,\"msg\":\"\"},\"status\":\"in_progress\",\"usage\":{\"token_count\":0,\"output_count\":0,\"input_count\":0},\"section_id\":\"7506806371942301737\",\"execute_id\":\"7506806633684779017\",\"inserted_additional_messages\":[{\"id\":\"7506806606261403657\"}]}\n",
|
||||
"event: conversation.message.completed\n",
|
||||
"data: {\"id\":\"7506806654885756938\",\"conversation_id\":\"7506806371942301737\",\"role\":\"assistant\",\"type\":\"answer\",\"content\":\"{\\\"card_type\\\":3,\\\"content_type\\\":50,\\\"data\\\":\\\"{\\\\\\\"elements\\\\\\\":{\\\\\\\"1AsSz8ZKfU\\\\\\\":{\\\\\\\"id\\\\\\\":\\\\\\\"1AsSz8ZKfU\\\\\\\",\\\\\\\"name\\\\\\\":\\\\\\\"FlowpdCiciComponentsColumnLayout\\\\\\\",\\\\\\\"type\\\\\\\":\\\\\\\"@flowpd/cici-components/ColumnLayout\\\\\\\",\\\\\\\"props\\\\\\\":{\\\\\\\"Columns\\\\\\\":[{\\\\\\\"children\\\\\\\":[\\\\\\\"eY8Fbk67Ce\\\\\\\"],\\\\\\\"config\\\\\\\":{\\\\\\\"columnElementGap\\\\\\\":8,\\\\\\\"columnElementPadding\\\\\\\":0,\\\\\\\"vertical\\\\\\\":\\\\\\\"top\\\\\\\",\\\\\\\"weight\\\\\\\":1,\\\\\\\"width\\\\\\\":\\\\\\\"weighted\\\\\\\"},\\\\\\\"type\\\\\\\":\\\\\\\"slot\\\\\\\"}],\\\\\\\"action\\\\\\\":\\\\\\\"enableUrl\\\\\\\",\\\\\\\"backgroundColor\\\\\\\":\\\\\\\"transparent\\\\\\\",\\\\\\\"enableClickEvent\\\\\\\":false,\\\\\\\"layoutColumnGap\\\\\\\":4,\\\\\\\"layoutPaddingGap\\\\\\\":0},\\\\\\\"directives\\\\\\\":{}},\\\\\\\"FtgVj9otIh\\\\\\\":{\\\\\\\"id\\\\\\\":\\\\\\\"FtgVj9otIh\\\\\\\",\\\\\\\"name\\\\\\\":\\\\\\\"FlowpdCiciComponentsText\\\\\\\",\\\\\\\"type\\\\\\\":\\\\\\\"@flowpd/cici-components/Text\\\\\\\",\\\\\\\"props\\\\\\\":{\\\\\\\"action\\\\\\\":\\\\\\\"enableUrl\\\\\\\",\\\\\\\"color\\\\\\\":\\\\\\\"neutral-100\\\\\\\",\\\\\\\"content\\\\\\\":{\\\\\\\"type\\\\\\\":\\\\\\\"expression\\\\\\\",\\\\\\\"value\\\\\\\":\\\\\\\"{{AzTmd88pyB.description}}\\\\\\\"},\\\\\\\"enableClickEvent\\\\\\\":false,\\\\\\\"enableLines\\\\\\\":false,\\\\\\\"enableMaxWidth\\\\\\\":false,\\\\\\\"fixedRowHeightLines\\\\\\\":1,\\\\\\\"fontSize\\\\\\\":\\\\\\\"large\\\\\\\",\\\\\\\"fontWeight\\\\\\\":\\\\\\\"normal\\\\\\\",\\\\\\\"lines\\\\\\\":1,\\\\\\\"maxWidth\\\\\\\":424,\\\\\\\"positionStyle\\\\\\\":{\\\\\\\"type\\\\\\\":\\\\\\\"default\\\\\\\"},\\\\\\\"textAlign\\\\\\\":\\\\\\\"left\\\\\\\"},\\\\\\\"directives\\\\\\\":{}},\\\\\\\"eY8Fbk67Ce\\\\\\\":{\\\\\\\"id\\\\\\\":\\\\\\\"eY8Fbk67Ce\\\\\\\",\\\\\\\"name\\\\\\\":\\\\\\\"FlowpdCiciComponentsButton\\\\\\\",\\\\\\\"type\\\\\\\":\\\\\\\"@flowpd/cici-components/Button\\\\\\\",\\\\\\\"props\\\\\\\":{\\\\\\\"actionType\\\\\\\":\\\\\\\"enableMessage\\\\\\\",\\\\\\\"content\\\\\\\":{\\\\\\\"type\\\\\\\":\\\\\\\"expression\\\\\\\",\\\\\\\"value\\\\\\\":\\\\\\\"{{item.key}}\\\\\\\"},\\\\\\\"enableLines\\\\\\\":true,\\\\\\\"lines\\\\\\\":6,\\\\\\\"message\\\\\\\":{\\\\\\\"type\\\\\\\":\\\\\\\"expression\\\\\\\",\\\\\\\"value\\\\\\\":\\\\\\\"{{item.key}}\\\\\\\"},\\\\\\\"positionStyle\\\\\\\":{\\\\\\\"type\\\\\\\":\\\\\\\"default\\\\\\\"},\\\\\\\"size\\\\\\\":\\\\\\\"small\\\\\\\",\\\\\\\"textAlign\\\\\\\":\\\\\\\"left\\\\\\\",\\\\\\\"type\\\\\\\":\\\\\\\"secondary\\\\\\\",\\\\\\\"width\\\\\\\":\\\\\\\"fill\\\\\\\"},\\\\\\\"directives\\\\\\\":{\\\\\\\"repeat\\\\\\\":{\\\\\\\"replaceMap\\\\\\\":{\\\\\\\"AzTmd88pyB\\\\\\\":\\\\\\\"data\\\\\\\"},\\\\\\\"type\\\\\\\":\\\\\\\"expression\\\\\\\",\\\\\\\"value\\\\\\\":\\\\\\\"{{AzTmd88pyB.list}}\\\\\\\"}}},\\\\\\\"root\\\\\\\":{\\\\\\\"id\\\\\\\":\\\\\\\"root\\\\\\\",\\\\\\\"name\\\\\\\":\\\\\\\"Root\\\\\\\",\\\\\\\"type\\\\\\\":\\\\\\\"@flowpd/cici-components/PageContainer\\\\\\\",\\\\\\\"props\\\\\\\":{\\\\\\\"backgroundColor\\\\\\\":\\\\\\\"grey\\\\\\\",\\\\\\\"containerPadding\\\\\\\":16,\\\\\\\"containerRowGap\\\\\\\":12},\\\\\\\"children\\\\\\\":[\\\\\\\"FtgVj9otIh\\\\\\\",\\\\\\\"1AsSz8ZKfU\\\\\\\"],\\\\\\\"directives\\\\\\\":{}}},\\\\\\\"rootID\\\\\\\":\\\\\\\"root\\\\\\\",\\\\\\\"variables\\\\\\\":{\\\\\\\"AzTmd88pyB\\\\\\\":{\\\\\\\"ID\\\\\\\":\\\\\\\"AzTmd88pyB\\\\\\\",\\\\\\\"name\\\\\\\":\\\\\\\"data\\\\\\\",\\\\\\\"defaultValue\\\\\\\":{\\\\\\\"description\\\\\\\":\\\\\\\"请选择要打开的门锁:\\\\\\\",\\\\\\\"list\\\\\\\":[{\\\\\\\"key\\\\\\\":\\\\\\\"1101前门\\\\\\\"},{\\\\\\\"key\\\\\\\":\\\\\\\"1101后门\\\\\\\"}]}}}}\\\",\\\"response_type\\\":\\\"card\\\",\\\"template_id\\\":7383997384420261899,\\\"template_url\\\":\\\"aweme://lynxview/?need_reload=0&surl=https%3A%2F%2Flf-sourcecdn-tos.bytegecko.com%2Fobj%2Fbyte-gurd-source%2Fcard%2Flynx%2Fruntime%2Fcard_lynx_runtime%2Ftemplate.js\\\",\\\"x_properties\\\":{\\\"question_readonly_afterclick\\\":\\\"true\\\",\\\"workflow_card_info\\\":\\\"{\\\\\\\"card_type\\\\\\\":\\\\\\\"QUESTION\\\\\\\",\\\\\\\"input_card_data\\\\\\\":null,\\\\\\\"question_card_data\\\\\\\":{\\\\\\\"Title\\\\\\\":\\\\\\\"请选择要打开的门锁:\\\\\\\",\\\\\\\"Options\\\\\\\":[{\\\\\\\"name\\\\\\\":\\\\\\\"1101前门\\\\\\\"},{\\\\\\\"name\\\\\\\":\\\\\\\"1101后门\\\\\\\"}]}}\\\"}}\",\"content_type\":\"card\",\"chat_id\":\"7506806634484744230\",\"section_id\":\"7506806371942301737\",\"created_at\":1747814626,\"updated_at\":1747814626}\n",
|
||||
"event: conversation.message.completed\n",
|
||||
"data: {\"id\":\"7506806654885773322\",\"conversation_id\":\"7506806371942301737\",\"role\":\"assistant\",\"type\":\"verbose\",\"content\":\"{\\\"msg_type\\\":\\\"interrupt\\\",\\\"data\\\":\\\"\\\",\\\"from_module\\\":null,\\\"from_unit\\\":null}\",\"content_type\":\"text\",\"chat_id\":\"7506806634484744230\",\"section_id\":\"7506806371942301737\",\"created_at\":1747814626,\"updated_at\":1747814626}\n",
|
||||
"event: conversation.message.completed\n",
|
||||
"data: {\"id\":\"7506806654885806090\",\"conversation_id\":\"7506806371942301737\",\"role\":\"assistant\",\"type\":\"verbose\",\"content\":\"{\\\"msg_type\\\":\\\"generate_answer_finish\\\",\\\"data\\\":\\\"{\\\\\\\"finish_reason\\\\\\\":1,\\\\\\\"FinData\\\\\\\":\\\\\\\"\\\\\\\"}\\\",\\\"from_module\\\":null,\\\"from_unit\\\":null}\",\"content_type\":\"text\",\"chat_id\":\"7506806634484744230\",\"section_id\":\"7506806371942301737\",\"created_at\":1747814626,\"updated_at\":1747814626}\n",
|
||||
"event: conversation.chat.requires_action\n",
|
||||
"data: {\"id\":\"7506806634484744230\",\"conversation_id\":\"7506806371942301737\",\"created_at\":1747814621,\"completed_at\":1747814626,\"last_error\":{\"code\":0,\"msg\":\"\"},\"status\":\"requires_action\",\"usage\":{\"token_count\":0,\"output_count\":0,\"input_count\":0},\"required_action\":{\"type\":\"submit_tool_outputs\",\"submit_tool_outputs\":{\"tool_calls\":[{\"id\":\"\",\"type\":\"reply_message\",\"function\":null,\"require_info\":null}]}},\"section_id\":\"7506806371942301737\",\"execute_id\":\"7506806633684779017\",\"inserted_additional_messages\":[{\"id\":\"7506806606261403657\"}]}\n",
|
||||
"event: done\n",
|
||||
"data: {\"debug_url\":\"https://www.coze.cn/work_flow?execute_id=7506806633684779017&space_id=7402807793096359947&workflow_id=7505969113844613147&execute_mode=2\"}\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"req = post(\n",
|
||||
" f\"{ip}/v1/workflows/chat\",\n",
|
||||
" json={\"additional_messages\":[{\"role\":\"user\",\"content\":\"打开1101门锁\",\"content_type\":\"text\"}],\"connector_id\":\"10000010\",\"conversation_id\":\"7506806371942301737\",\"workflow_id\":\"7505969113844613147\",\"parameters\":{\"token\":\"ce975c9e-6d6a-4d63-b069-79501b1b7038\"},\"execute_mode\":\"DEBUG\",\"bot_id\":\"7484071067645198387\",\"ext\":{\"_caller\":\"CANVAS\",\"user_id\":\"288532740445212\"},\"suggest_reply_info\":{}},\n",
|
||||
" headers=headers,\n",
|
||||
" stream=True,\n",
|
||||
")\n",
|
||||
"try:\n",
|
||||
" for line in req.iter_lines():\n",
|
||||
" if line:\n",
|
||||
" print(line.decode(\"utf-8\")) # 处理每一行数据\n",
|
||||
"finally:\n",
|
||||
" req.close()"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 20,
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"event: conversation.chat.created\n",
|
||||
"data: {\"id\":\"7506807717307203647\",\"conversation_id\":\"7506807701910077479\",\"created_at\":1747814873,\"last_error\":{\"code\":0,\"msg\":\"\"},\"status\":\"created\",\"usage\":{\"token_count\":0,\"output_count\":0,\"input_count\":0},\"section_id\":\"7506807701910077479\",\"execute_id\":\"7506807711906005033\",\"inserted_additional_messages\":[{\"id\":\"7506807711254724647\"}]}\n",
|
||||
"event: conversation.chat.in_progress\n",
|
||||
"data: {\"id\":\"7506807717307203647\",\"conversation_id\":\"7506807701910077479\",\"created_at\":1747814873,\"last_error\":{\"code\":0,\"msg\":\"\"},\"status\":\"in_progress\",\"usage\":{\"token_count\":0,\"output_count\":0,\"input_count\":0},\"section_id\":\"7506807701910077479\",\"execute_id\":\"7506807711906005033\",\"inserted_additional_messages\":[{\"id\":\"7506807711254724647\"}]}\n",
|
||||
"event: conversation.message.delta\n",
|
||||
"data: {\"id\":\"7506807736336662591\",\"conversation_id\":\"7506807701910077479\",\"role\":\"assistant\",\"type\":\"answer\",\"content\":\"请选择要打开的门锁:\\n- 1101前门\\n- 1101后门\\n\",\"content_type\":\"text\",\"chat_id\":\"7506807717307203647\",\"section_id\":\"7506807701910077479\",\"created_at\":1747814877}\n",
|
||||
"event: conversation.message.completed\n",
|
||||
"data: {\"id\":\"7506807736336662591\",\"conversation_id\":\"7506807701910077479\",\"role\":\"assistant\",\"type\":\"answer\",\"content\":\"请选择要打开的门锁:\\n- 1101前门\\n- 1101后门\\n\",\"content_type\":\"text\",\"chat_id\":\"7506807717307203647\",\"section_id\":\"7506807701910077479\",\"created_at\":1747814877}\n",
|
||||
"event: conversation.message.completed\n",
|
||||
"data: {\"id\":\"7506807736336678975\",\"conversation_id\":\"7506807701910077479\",\"role\":\"assistant\",\"type\":\"verbose\",\"content\":\"{\\\"msg_type\\\":\\\"interrupt\\\",\\\"data\\\":\\\"\\\",\\\"from_module\\\":null,\\\"from_unit\\\":null}\",\"content_type\":\"text\",\"chat_id\":\"7506807717307203647\",\"section_id\":\"7506807701910077479\",\"created_at\":1747814877,\"updated_at\":1747814877}\n",
|
||||
"event: conversation.message.completed\n",
|
||||
"data: {\"id\":\"7506807736336711743\",\"conversation_id\":\"7506807701910077479\",\"role\":\"assistant\",\"type\":\"verbose\",\"content\":\"{\\\"msg_type\\\":\\\"generate_answer_finish\\\",\\\"data\\\":\\\"{\\\\\\\"finish_reason\\\\\\\":1,\\\\\\\"FinData\\\\\\\":\\\\\\\"\\\\\\\"}\\\",\\\"from_module\\\":null,\\\"from_unit\\\":null}\",\"content_type\":\"text\",\"chat_id\":\"7506807717307203647\",\"section_id\":\"7506807701910077479\",\"created_at\":1747814877,\"updated_at\":1747814877}\n",
|
||||
"event: conversation.chat.requires_action\n",
|
||||
"data: {\"id\":\"7506807717307203647\",\"conversation_id\":\"7506807701910077479\",\"created_at\":1747814873,\"completed_at\":1747814877,\"last_error\":{\"code\":0,\"msg\":\"\"},\"status\":\"requires_action\",\"usage\":{\"token_count\":0,\"output_count\":0,\"input_count\":0},\"required_action\":{\"type\":\"submit_tool_outputs\",\"submit_tool_outputs\":{\"tool_calls\":[{\"id\":\"\",\"type\":\"reply_message\",\"function\":null,\"require_info\":null}]}},\"section_id\":\"7506807701910077479\",\"execute_id\":\"7506807711906005033\",\"inserted_additional_messages\":[{\"id\":\"7506807711254724647\"}]}\n",
|
||||
"event: done\n",
|
||||
"data: {\"debug_url\":\"https://www.coze.cn/work_flow?execute_id=7506807711906005033&space_id=7402807793096359947&workflow_id=7506108197824987190&execute_mode=2\"}\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"req = post(\n",
|
||||
" f\"{ip}/v1/workflows/chat\",\n",
|
||||
" json={\n",
|
||||
" \"additional_messages\": [\n",
|
||||
" {\"role\": \"user\", \"content\": \"打开1101门锁\", \"content_type\": \"text\"}\n",
|
||||
" ],\n",
|
||||
" \"workflow_id\": \"7506108197824987190\",\n",
|
||||
" \"execute_mode\":\"DEBUG\",\n",
|
||||
" \"parameters\": {\"token\": \"ebd37b76-a2f7-4657-895e-a1170d5a86cf\"},\n",
|
||||
" \"bot_id\": \"7484071067645460531\",\n",
|
||||
" \"ext\":{\"_caller\":\"CANVAS\",\"user_id\":\"288532740445212\"}\n",
|
||||
" },\n",
|
||||
" headers=headers,\n",
|
||||
" stream=True,\n",
|
||||
")\n",
|
||||
"try:\n",
|
||||
" for line in req.iter_lines():\n",
|
||||
" if line:\n",
|
||||
" print(line.decode(\"utf-8\")) # 处理每一行数据\n",
|
||||
"finally:\n",
|
||||
" req.close()"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 10,
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"event:conversation.chat.created\n",
|
||||
"data:{\"id\":\"7506803685134172194\",\"conversation_id\":\"7506803685134155810\",\"bot_id\":\"7484071067645198387\",\"created_at\":1747813934,\"last_error\":{\"code\":0,\"msg\":\"\"},\"status\":\"created\",\"usage\":{\"token_count\":0,\"output_count\":0,\"input_count\":0},\"section_id\":\"7506803685134155810\"}\n",
|
||||
"event:conversation.chat.in_progress\n",
|
||||
"data:{\"id\":\"7506803685134172194\",\"conversation_id\":\"7506803685134155810\",\"bot_id\":\"7484071067645198387\",\"created_at\":1747813934,\"last_error\":{\"code\":0,\"msg\":\"\"},\"status\":\"in_progress\",\"usage\":{\"token_count\":0,\"output_count\":0,\"input_count\":0},\"section_id\":\"7506803685134155810\"}\n",
|
||||
"event:conversation.message.delta\n",
|
||||
"data:{\"id\":\"7506803791748923392\",\"conversation_id\":\"7506803685134155810\",\"bot_id\":\"7484071067645198387\",\"role\":\"assistant\",\"type\":\"answer\",\"content\":\"请选择要打开的门锁:\\n- 1101前门\\n- 1101后门\\n\",\"content_type\":\"text\",\"chat_id\":\"7506803685134172194\",\"section_id\":\"7506803685134155810\",\"created_at\":1747813959}\n",
|
||||
"event:conversation.message.completed\n",
|
||||
"data:{\"id\":\"7506803791748923392\",\"conversation_id\":\"7506803685134155810\",\"bot_id\":\"7484071067645198387\",\"role\":\"assistant\",\"type\":\"answer\",\"content\":\"请选择要打开的门锁:\\n- 1101前门\\n- 1101后门\\n\",\"content_type\":\"text\",\"chat_id\":\"7506803685134172194\",\"section_id\":\"7506803685134155810\",\"created_at\":1747813959}\n",
|
||||
"event:conversation.message.completed\n",
|
||||
"data:{\"id\":\"7506803791748972544\",\"conversation_id\":\"7506803685134155810\",\"bot_id\":\"7484071067645198387\",\"role\":\"assistant\",\"type\":\"verbose\",\"content\":\"{\\\"msg_type\\\":\\\"interrupt\\\",\\\"data\\\":\\\"\\\",\\\"from_module\\\":null,\\\"from_unit\\\":null}\",\"content_type\":\"text\",\"chat_id\":\"7506803685134172194\",\"section_id\":\"7506803685134155810\",\"created_at\":1747813959,\"updated_at\":1747813959}\n",
|
||||
"event:conversation.message.completed\n",
|
||||
"data:{\"id\":\"7506803791748988928\",\"conversation_id\":\"7506803685134155810\",\"bot_id\":\"7484071067645198387\",\"role\":\"assistant\",\"type\":\"verbose\",\"content\":\"{\\\"msg_type\\\":\\\"generate_answer_finish\\\",\\\"data\\\":\\\"{\\\\\\\"finish_reason\\\\\\\":1,\\\\\\\"FinData\\\\\\\":\\\\\\\"\\\\\\\"}\\\",\\\"from_module\\\":null,\\\"from_unit\\\":null}\",\"content_type\":\"text\",\"chat_id\":\"7506803685134172194\",\"section_id\":\"7506803685134155810\",\"created_at\":1747813959,\"updated_at\":1747813959}\n",
|
||||
"event:conversation.chat.requires_action\n",
|
||||
"data:{\"id\":\"7506803685134172194\",\"conversation_id\":\"7506803685134155810\",\"bot_id\":\"7484071067645198387\",\"created_at\":1747813934,\"completed_at\":1747813959,\"last_error\":{\"code\":0,\"msg\":\"\"},\"status\":\"requires_action\",\"usage\":{\"token_count\":0,\"output_count\":0,\"input_count\":0},\"required_action\":{\"type\":\"submit_tool_outputs\",\"submit_tool_outputs\":{\"tool_calls\":[{\"id\":\"\",\"type\":\"reply_message\",\"function\":null,\"require_info\":null}]}},\"section_id\":\"7506803685134155810\"}\n",
|
||||
"event:done\n",
|
||||
"data:\"[DONE]\"\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"req = post(\n",
|
||||
" f\"{ip}/v3/chat\",\n",
|
||||
" json={\"bot_id\":\"7484071067645198387\",\"user_id\":\"邱宇航\",\"stream\":True,\"additional_messages\":[{\"content\":\"打开1101门锁\",\"content_type\":\"text\",\"role\":\"user\",\"type\":\"question\"}],\"parameters\":{\"role\":\"教师\",\"userId\":537,\"token\":\"ebd37b76-a2f7-4657-895e-a1170d5a86cf\",\"teamId\":0}},\n",
|
||||
" headers=headers,\n",
|
||||
" stream=True,\n",
|
||||
")\n",
|
||||
"try:\n",
|
||||
" for line in req.iter_lines():\n",
|
||||
" if line:\n",
|
||||
" print(line.decode(\"utf-8\")) # 处理每一行数据\n",
|
||||
"finally:\n",
|
||||
" req.close()"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"import json"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"json.loads(data[\"data\"][0][\"content\"])"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"\n",
|
||||
"import base64\n",
|
||||
" \n",
|
||||
"def encode_file_to_base64(file_path):\n",
|
||||
" with open(file_path, \"rb\") as file:\n",
|
||||
" encoded_bytes = base64.b64encode(file.read())\n",
|
||||
" encoded_string = encoded_bytes.decode(\"utf-8\")\n",
|
||||
" return encoded_string"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"data = post(\n",
|
||||
" \"https://api.coze.cn/open_api/knowledge/document/create\",\n",
|
||||
" headers=headers,\n",
|
||||
" data={\n",
|
||||
" \"document_bases\": [\n",
|
||||
" {\n",
|
||||
" \"source_info\": {\n",
|
||||
" \"file_base64\": \"5rWL6K+V5LiA5LiL5ZOm\",\n",
|
||||
" \"document_source\": 0,\n",
|
||||
" \"file_type\": \"pdf\",\n",
|
||||
" \"source_file_id\": 7491624184251531000\n",
|
||||
" },\n",
|
||||
" \"name\": \"Coze.pdf\",\n",
|
||||
" \"update_rule\": {\n",
|
||||
" \"update_type\": 0\n",
|
||||
" }\n",
|
||||
" }\n",
|
||||
" ],\n",
|
||||
" \"chunk_strategy\": {\n",
|
||||
" \"caption_type\": 0,\n",
|
||||
" \"chunk_type\": 0,\n",
|
||||
" \"max_tokens\": 1000,\n",
|
||||
" \"remove_extra_spaces\": True,\n",
|
||||
" \"remove_urls_emails\": False\n",
|
||||
" },\n",
|
||||
" \"dataset_id\": \"7491611456598114316\",\n",
|
||||
" \"format_type\": 0\n",
|
||||
"},\n",
|
||||
")\n",
|
||||
"print(data.text)"
|
||||
]
|
||||
}
|
||||
],
|
||||
"metadata": {
|
||||
"kernelspec": {
|
||||
"display_name": "base",
|
||||
"language": "python",
|
||||
"name": "python3"
|
||||
},
|
||||
"language_info": {
|
||||
"codemirror_mode": {
|
||||
"name": "ipython",
|
||||
"version": 3
|
||||
},
|
||||
"file_extension": ".py",
|
||||
"mimetype": "text/x-python",
|
||||
"name": "python",
|
||||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython3",
|
||||
"version": "3.12.4"
|
||||
}
|
||||
},
|
||||
"nbformat": 4,
|
||||
"nbformat_minor": 2
|
||||
}
|
||||
@@ -0,0 +1,131 @@
|
||||
{
|
||||
"cells": [
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 1,
|
||||
"id": "cc3ee99d",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"from requests import * "
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 42,
|
||||
"id": "5af4df03",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"for i in [\"233157541\",\"233157542\",\"233157544\",\"233157545\",\"233157546\"]:\n",
|
||||
" get(f\"http://139.159.182.121:8092/card/getTime?controllerSN={i}\")"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 13,
|
||||
"id": "8d2a2506",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"data={\"name\":\"测试\",\"endDate\":1759161600000,\"content\":None,\"userType\":1,\"dateState\":\"0\",\"userIds\":[130,163,195,196,198,197,161,446,226,507,535,162,106,176,206,105,116,204,222,510,508,509,523,200,135,513,208,164,210,512,207,527,447,521,212,118,450,139,437,177,179,514,515,107,102,219,530,108,187,147,126,189,110,458,462,457,528,143,124,217,448,525,526,550,517,113,534,541,320,150,456,540,524,522,529,186,105,140,151,689,166,151,521,520,805,130],\"status\":0,\"type\":6,\"userName\":\"钟伟\",\"userId\":473,\"teamId\":19}"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 10,
|
||||
"id": "e69ccb4b",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"with open(\"demo1.docx\",\"rb\") as f:\n",
|
||||
" file = f.read()"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"id": "1c7bc78e",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"'{\"success\":false,\"msg\":\"文件太大\",\"code\":10004,\"data\":null}'"
|
||||
]
|
||||
},
|
||||
"execution_count": 13,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
},
|
||||
{
|
||||
"ename": "",
|
||||
"evalue": "",
|
||||
"output_type": "error",
|
||||
"traceback": [
|
||||
"\u001b[1;31m在当前单元格或上一个单元格中执行代码时 Kernel 崩溃。\n",
|
||||
"\u001b[1;31m请查看单元格中的代码,以确定故障的可能原因。\n",
|
||||
"\u001b[1;31m单击<a href='https://aka.ms/vscodeJupyterKernelCrash'>此处</a>了解详细信息。\n",
|
||||
"\u001b[1;31m有关更多详细信息,请查看 Jupyter <a href='command:jupyter.viewOutput'>log</a>。"
|
||||
]
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"post(f\"{ip}/word/process/convert\",files={\"file\":(\n",
|
||||
" \"demo1.docx\",\n",
|
||||
" file, 'application/octet-stream'\n",
|
||||
")},headers=header).text"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 11,
|
||||
"id": "eeed45e5",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"'{\"success\":false,\"msg\":\"Transaction was marked for rollback only; cannot commit; nested exception is org.hibernate.TransactionException: Transaction was marked for rollback only; cannot commit\",\"code\":10000,\"data\":null}'"
|
||||
]
|
||||
},
|
||||
"execution_count": 11,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"post(f\"{ip}/applicatonTitle/add\",json=data,headers=header).text"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"id": "20286e94",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": []
|
||||
}
|
||||
],
|
||||
"metadata": {
|
||||
"kernelspec": {
|
||||
"display_name": "base",
|
||||
"language": "python",
|
||||
"name": "python3"
|
||||
},
|
||||
"language_info": {
|
||||
"codemirror_mode": {
|
||||
"name": "ipython",
|
||||
"version": 3
|
||||
},
|
||||
"file_extension": ".py",
|
||||
"mimetype": "text/x-python",
|
||||
"name": "python",
|
||||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython3",
|
||||
"version": "3.12.4"
|
||||
}
|
||||
},
|
||||
"nbformat": 4,
|
||||
"nbformat_minor": 5
|
||||
}
|
||||
Binary file not shown.
@@ -0,0 +1,18 @@
|
||||
from requests import get, post
|
||||
|
||||
ip = "http://192.168.0.209:8100"
|
||||
param = {
|
||||
"username": "tangchao",
|
||||
"password": "123456a",
|
||||
"client_id": "client",
|
||||
"grant_type": "password",
|
||||
"client_secret": "123456",
|
||||
}
|
||||
data = get(
|
||||
url=f"{ip}/oauth/token?username=zhongwei&password=123456a&client_id=client&grant_type=password&client_secret=123456"
|
||||
).json()
|
||||
token = data["access_token"]
|
||||
header = {
|
||||
"content-type": "application/json",
|
||||
"authorization": f"Bearer {token}",
|
||||
}
|
||||
@@ -0,0 +1,68 @@
|
||||
{
|
||||
"cells": [
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 1,
|
||||
"id": "bc441afe",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"import pandas as pd\n",
|
||||
"df = pd.read_excel('重新分班模板 (3).xlsx')"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 3,
|
||||
"id": "bd93b7eb",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"df.sort_values(by='新班级',inplace=True)"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"id": "83d3f4d5",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"ename": "",
|
||||
"evalue": "",
|
||||
"output_type": "error",
|
||||
"traceback": [
|
||||
"\u001b[1;31m在当前单元格或上一个单元格中执行代码时 Kernel 崩溃。\n",
|
||||
"\u001b[1;31m请查看单元格中的代码,以确定故障的可能原因。\n",
|
||||
"\u001b[1;31m单击<a href='https://aka.ms/vscodeJupyterKernelCrash'>此处</a>了解详细信息。\n",
|
||||
"\u001b[1;31m有关更多详细信息,请查看 Jupyter <a href='command:jupyter.viewOutput'>log</a>。"
|
||||
]
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"df.to_excel('重新分班模板 (4).xlsx',index=False)"
|
||||
]
|
||||
}
|
||||
],
|
||||
"metadata": {
|
||||
"kernelspec": {
|
||||
"display_name": "base",
|
||||
"language": "python",
|
||||
"name": "python3"
|
||||
},
|
||||
"language_info": {
|
||||
"codemirror_mode": {
|
||||
"name": "ipython",
|
||||
"version": 3
|
||||
},
|
||||
"file_extension": ".py",
|
||||
"mimetype": "text/x-python",
|
||||
"name": "python",
|
||||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython3",
|
||||
"version": "3.12.4"
|
||||
}
|
||||
},
|
||||
"nbformat": 4,
|
||||
"nbformat_minor": 5
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
+17619
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,206 @@
|
||||
{
|
||||
"cells": [
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 1,
|
||||
"id": "d99d999d",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"import pandas as pd"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 3,
|
||||
"id": "955684bc",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"df = pd.read_excel(\"./2025级需要选课775+7.xlsx\", usecols=['学号', '姓名', '性别'])"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"id": "bc5324c0",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": []
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 4,
|
||||
"id": "6a622610",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"row_strings = set()\n",
|
||||
"for _, row in df.iterrows():\n",
|
||||
" row_str = f\"{row['学号']}{row['姓名']}{row['性别']}\"\n",
|
||||
" row_strings.add(row_str)"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 5,
|
||||
"id": "c2b0ab79",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"(782, 3)"
|
||||
]
|
||||
},
|
||||
"execution_count": 5,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"df.shape"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 6,
|
||||
"id": "e5f90213",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"782"
|
||||
]
|
||||
},
|
||||
"execution_count": 6,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"len(row_strings)"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 9,
|
||||
"id": "0ec9fe0a",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"df1 = pd.read_excel(\"./本部简易手环学生信息 .xls\", usecols=['学号', '姓名', '性别'],skiprows=1)\n",
|
||||
"row_strings1 = set()\n",
|
||||
"for _, row in df.iterrows():\n",
|
||||
" row_str = f\"{row['学号']}{row['姓名']}{row['性别']}\"\n",
|
||||
" row_strings1.add(row_str)"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 10,
|
||||
"id": "75d2483a",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"df1 = pd.read_excel(\"./本部蓝牙手环学生信息.xls\", usecols=['学号', '姓名', '性别'],skiprows=1)\n",
|
||||
"for _, row in df.iterrows():\n",
|
||||
" row_str = f\"{row['学号']}{row['姓名']}{row['性别']}\"\n",
|
||||
" row_strings1.add(row_str)"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 11,
|
||||
"id": "e5180f79",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"set()"
|
||||
]
|
||||
},
|
||||
"execution_count": 11,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"row_strings - row_strings1 "
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 12,
|
||||
"id": "e87426b4",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"set()"
|
||||
]
|
||||
},
|
||||
"execution_count": 12,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"row_strings1 -row_strings "
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 13,
|
||||
"id": "8cdc458f",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"782"
|
||||
]
|
||||
},
|
||||
"execution_count": 13,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"len(row_strings1)"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"id": "95b416db",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": []
|
||||
}
|
||||
],
|
||||
"metadata": {
|
||||
"kernelspec": {
|
||||
"display_name": "base",
|
||||
"language": "python",
|
||||
"name": "python3"
|
||||
},
|
||||
"language_info": {
|
||||
"codemirror_mode": {
|
||||
"name": "ipython",
|
||||
"version": 3
|
||||
},
|
||||
"file_extension": ".py",
|
||||
"mimetype": "text/x-python",
|
||||
"name": "python",
|
||||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython3",
|
||||
"version": "3.12.4"
|
||||
}
|
||||
},
|
||||
"nbformat": 4,
|
||||
"nbformat_minor": 5
|
||||
}
|
||||
@@ -0,0 +1,451 @@
|
||||
{
|
||||
"cells": [
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 1,
|
||||
"id": "9ec6ebc2",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"import pandas as pd"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 2,
|
||||
"id": "413b2f9f",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"df = pd.read_excel('学生信息.xlsx',skiprows=1)"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"id": "31be9769",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": []
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 7,
|
||||
"id": "dd627675",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"data": {
|
||||
"text/html": [
|
||||
"<div>\n",
|
||||
"<style scoped>\n",
|
||||
" .dataframe tbody tr th:only-of-type {\n",
|
||||
" vertical-align: middle;\n",
|
||||
" }\n",
|
||||
"\n",
|
||||
" .dataframe tbody tr th {\n",
|
||||
" vertical-align: top;\n",
|
||||
" }\n",
|
||||
"\n",
|
||||
" .dataframe thead th {\n",
|
||||
" text-align: right;\n",
|
||||
" }\n",
|
||||
"</style>\n",
|
||||
"<table border=\"1\" class=\"dataframe\">\n",
|
||||
" <thead>\n",
|
||||
" <tr style=\"text-align: right;\">\n",
|
||||
" <th></th>\n",
|
||||
" <th>学号</th>\n",
|
||||
" <th>姓名</th>\n",
|
||||
" <th>性别</th>\n",
|
||||
" <th>年级</th>\n",
|
||||
" <th>班级</th>\n",
|
||||
" <th>账户名</th>\n",
|
||||
" <th>手环号</th>\n",
|
||||
" <th>通/住校</th>\n",
|
||||
" </tr>\n",
|
||||
" </thead>\n",
|
||||
" <tbody>\n",
|
||||
" <tr>\n",
|
||||
" <th>0</th>\n",
|
||||
" <td>847613</td>\n",
|
||||
" <td>曾笙</td>\n",
|
||||
" <td>男</td>\n",
|
||||
" <td>2025级</td>\n",
|
||||
" <td>临时班</td>\n",
|
||||
" <td>847613CDSPTSZX</td>\n",
|
||||
" <td>3722606215</td>\n",
|
||||
" <td>通校</td>\n",
|
||||
" </tr>\n",
|
||||
" <tr>\n",
|
||||
" <th>1</th>\n",
|
||||
" <td>205240217</td>\n",
|
||||
" <td>郭靖</td>\n",
|
||||
" <td>男</td>\n",
|
||||
" <td>2025级</td>\n",
|
||||
" <td>0班</td>\n",
|
||||
" <td>205240217CDSPTSZX</td>\n",
|
||||
" <td>22802380</td>\n",
|
||||
" <td>通校</td>\n",
|
||||
" </tr>\n",
|
||||
" <tr>\n",
|
||||
" <th>2</th>\n",
|
||||
" <td>2024240217</td>\n",
|
||||
" <td>黄蓉</td>\n",
|
||||
" <td>男</td>\n",
|
||||
" <td>2025级</td>\n",
|
||||
" <td>临时班</td>\n",
|
||||
" <td>2024240217CDSPTSZX</td>\n",
|
||||
" <td>3108630769</td>\n",
|
||||
" <td>通校</td>\n",
|
||||
" </tr>\n",
|
||||
" <tr>\n",
|
||||
" <th>3</th>\n",
|
||||
" <td>20250011</td>\n",
|
||||
" <td>曾曦蕊</td>\n",
|
||||
" <td>女</td>\n",
|
||||
" <td>2025级</td>\n",
|
||||
" <td>临时班</td>\n",
|
||||
" <td>20250011CDSPTSZX</td>\n",
|
||||
" <td>22830060</td>\n",
|
||||
" <td>通校</td>\n",
|
||||
" </tr>\n",
|
||||
" <tr>\n",
|
||||
" <th>4</th>\n",
|
||||
" <td>20250012</td>\n",
|
||||
" <td>曾星睿</td>\n",
|
||||
" <td>男</td>\n",
|
||||
" <td>2025级</td>\n",
|
||||
" <td>临时班</td>\n",
|
||||
" <td>20250012CDSPTSZX</td>\n",
|
||||
" <td>3108363489</td>\n",
|
||||
" <td>通校</td>\n",
|
||||
" </tr>\n",
|
||||
" <tr>\n",
|
||||
" <th>...</th>\n",
|
||||
" <td>...</td>\n",
|
||||
" <td>...</td>\n",
|
||||
" <td>...</td>\n",
|
||||
" <td>...</td>\n",
|
||||
" <td>...</td>\n",
|
||||
" <td>...</td>\n",
|
||||
" <td>...</td>\n",
|
||||
" <td>...</td>\n",
|
||||
" </tr>\n",
|
||||
" <tr>\n",
|
||||
" <th>780</th>\n",
|
||||
" <td>20250783</td>\n",
|
||||
" <td>彭彦晰</td>\n",
|
||||
" <td>男</td>\n",
|
||||
" <td>2025级</td>\n",
|
||||
" <td>临时班</td>\n",
|
||||
" <td>20250783CDSPTSZX</td>\n",
|
||||
" <td>1620701492</td>\n",
|
||||
" <td>通校</td>\n",
|
||||
" </tr>\n",
|
||||
" <tr>\n",
|
||||
" <th>781</th>\n",
|
||||
" <td>20250802</td>\n",
|
||||
" <td>魏腾一</td>\n",
|
||||
" <td>女</td>\n",
|
||||
" <td>2025级</td>\n",
|
||||
" <td>临时班</td>\n",
|
||||
" <td>20250802CDSPTSZX</td>\n",
|
||||
" <td>1618071076</td>\n",
|
||||
" <td>通校</td>\n",
|
||||
" </tr>\n",
|
||||
" <tr>\n",
|
||||
" <th>782</th>\n",
|
||||
" <td>20250805</td>\n",
|
||||
" <td>任梓玮</td>\n",
|
||||
" <td>男</td>\n",
|
||||
" <td>2025级</td>\n",
|
||||
" <td>临时班</td>\n",
|
||||
" <td>20250805CDSPTSZX</td>\n",
|
||||
" <td>1619575092</td>\n",
|
||||
" <td>通校</td>\n",
|
||||
" </tr>\n",
|
||||
" <tr>\n",
|
||||
" <th>783</th>\n",
|
||||
" <td>20250866</td>\n",
|
||||
" <td>张羽菲</td>\n",
|
||||
" <td>女</td>\n",
|
||||
" <td>2025级</td>\n",
|
||||
" <td>临时班</td>\n",
|
||||
" <td>20250866CDSPTSZX</td>\n",
|
||||
" <td>1620005620</td>\n",
|
||||
" <td>通校</td>\n",
|
||||
" </tr>\n",
|
||||
" <tr>\n",
|
||||
" <th>784</th>\n",
|
||||
" <td>20250617</td>\n",
|
||||
" <td>杨光墨辰</td>\n",
|
||||
" <td>男</td>\n",
|
||||
" <td>2025级</td>\n",
|
||||
" <td>临时班</td>\n",
|
||||
" <td>20250617CDSPTSZX</td>\n",
|
||||
" <td>3108648785</td>\n",
|
||||
" <td>通校</td>\n",
|
||||
" </tr>\n",
|
||||
" </tbody>\n",
|
||||
"</table>\n",
|
||||
"<p>785 rows × 8 columns</p>\n",
|
||||
"</div>"
|
||||
],
|
||||
"text/plain": [
|
||||
" 学号 姓名 性别 年级 班级 账户名 手环号 通/住校\n",
|
||||
"0 847613 曾笙 男 2025级 临时班 847613CDSPTSZX 3722606215 通校\n",
|
||||
"1 205240217 郭靖 男 2025级 0班 205240217CDSPTSZX 22802380 通校\n",
|
||||
"2 2024240217 黄蓉 男 2025级 临时班 2024240217CDSPTSZX 3108630769 通校\n",
|
||||
"3 20250011 曾曦蕊 女 2025级 临时班 20250011CDSPTSZX 22830060 通校\n",
|
||||
"4 20250012 曾星睿 男 2025级 临时班 20250012CDSPTSZX 3108363489 通校\n",
|
||||
".. ... ... .. ... ... ... ... ...\n",
|
||||
"780 20250783 彭彦晰 男 2025级 临时班 20250783CDSPTSZX 1620701492 通校\n",
|
||||
"781 20250802 魏腾一 女 2025级 临时班 20250802CDSPTSZX 1618071076 通校\n",
|
||||
"782 20250805 任梓玮 男 2025级 临时班 20250805CDSPTSZX 1619575092 通校\n",
|
||||
"783 20250866 张羽菲 女 2025级 临时班 20250866CDSPTSZX 1620005620 通校\n",
|
||||
"784 20250617 杨光墨辰 男 2025级 临时班 20250617CDSPTSZX 3108648785 通校\n",
|
||||
"\n",
|
||||
"[785 rows x 8 columns]"
|
||||
]
|
||||
},
|
||||
"execution_count": 7,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"df"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 12,
|
||||
"id": "ef0a8145",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"'1'"
|
||||
]
|
||||
},
|
||||
"execution_count": 12,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"\" 1\".strip()"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"id": "60a3e782",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": []
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 24,
|
||||
"id": "4cb9da33",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"df = pd.read_excel('学生信息.xlsx',skiprows=1,dtype=str)\n",
|
||||
"df2 = pd.read_excel('2025级学生班级_子1.xlsx',dtype=str)\n",
|
||||
"\n",
|
||||
"学号字典 = dict(zip(df2['学号'], df2['班级'].astype(\"str\")))\n",
|
||||
"\n",
|
||||
"# 直接通过map函数添加班级列,不存在的学号用'未找到'填充\n",
|
||||
"df['班级'] = df['学号'].map(学号字典).fillna('未找到')"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 31,
|
||||
"id": "947a671a",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"df中有但df2中没有的记录:\n",
|
||||
" 学号 姓名 性别 年级 班级 账户名 手环号 通/住校\n",
|
||||
"0 847613 曾笙 男 2025级 临时班 847613CDSPTSZX 3722606215 通校\n",
|
||||
"1 205240217 郭靖 男 2025级 0班 205240217CDSPTSZX 0022802380 通校\n",
|
||||
"2 2024240217 黄蓉 男 2025级 临时班 2024240217CDSPTSZX 3108630769 通校\n",
|
||||
"17 20250041 陈奕瑾 女 2025级 临时班 20250041CDSPTSZX 3108586721 通校\n",
|
||||
"31 20250080 杜雨欣 女 2025级 临时班 20250080CDSPTSZX 3108567745 通校\n",
|
||||
"38 20250098 冯雅琳 女 2025级 临时班 20250098CDSPTSZX 3108398001 通校\n",
|
||||
"48 20250123 郭明萱 女 2025级 临时班 20250123CDSPTSZX 3108359601 通校\n",
|
||||
"96 20250290 刘瑞泽 男 2025级 临时班 20250290CDSPTSZX 3108417121 通校\n",
|
||||
"130 20250402 苏子洛 男 2025级 临时班 20250402CDSPTSZX 3108648977 通校\n",
|
||||
"143 20250448 王晟骁 男 2025级 临时班 20250448CDSPTSZX 3108604769 通校\n",
|
||||
"153 20250475 王雅萱 女 2025级 临时班 20250475CDSPTSZX 3108626049 通校\n",
|
||||
"157 20250502 吴睿灿 男 2025级 临时班 20250502CDSPTSZX 3108654369 通校\n",
|
||||
"172 20250567 徐周塬 男 2025级 临时班 20250567CDSPTSZX 3107628913 通校\n",
|
||||
"233 20250772 李怡辰 女 2025级 临时班 20250772CDSPTSZX 3108433745 通校\n",
|
||||
"260 20258671 弋珂 女 2025级 临时班 20258671CDSPTSZX 0022681516 通校\n",
|
||||
"261 20258673 马艺诚 男 2025级 临时班 20258673CDSPTSZX 3108571633 通校\n",
|
||||
"276 20250021 陈佳逸 女 2025级 临时班 20250021CDSPTSZX 1619715284 通校\n",
|
||||
"369 20250169 黄心仪 女 2025级 临时班 20250169CDSPTSZX 1617731892 通校\n",
|
||||
"389 20250199 乐思彤 女 2025级 临时班 20250199CDSPTSZX 1619850820 通校\n",
|
||||
"419 20250246 李屹然 男 2025级 临时班 20250246CDSPTSZX 1619431076 通校\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"import pandas as pd\n",
|
||||
"\n",
|
||||
"# 读取Excel文件,确保所有列都是字符串类型\n",
|
||||
"df = pd.read_excel('学生信息.xlsx', skiprows=1, dtype=str)\n",
|
||||
"df2 = pd.read_excel('2025级学生班级_子1.xlsx', dtype=str)\n",
|
||||
"\n",
|
||||
"# 为两个DataFrame添加唯一标识列(姓名+性别+学号)\n",
|
||||
"# 使用分隔符避免不同字段值拼接后产生歧义(例如\"张三四\"+\"男\" vs \"张三\"+\"四男\")\n",
|
||||
"df['唯一标识'] = df['姓名'] + '|' + df['性别'] + '|' + df['学号']\n",
|
||||
"df2['唯一标识'] = df2['学生姓名'] + '|' + df2['性别'] + '|' + df2['学号']\n",
|
||||
"\n",
|
||||
"# 找出df中有但df2中没有的唯一标识\n",
|
||||
"df独有标识 = df[~df['唯一标识'].isin(df2['唯一标识'])]['唯一标识']\n",
|
||||
"\n",
|
||||
"# 根据独有标识筛选出完整记录\n",
|
||||
"结果 = df[df['唯一标识'].isin(df独有标识)]\n",
|
||||
"\n",
|
||||
"# 输出结果(可以根据需要选择保留或删除'唯一标识'列)\n",
|
||||
"print(\"df中有但df2中没有的记录:\")\n",
|
||||
"print(结果.drop(columns=['唯一标识'])) # 删除临时的唯一标识列再显示"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 37,
|
||||
"id": "a383efe9",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"import pandas as pd\n",
|
||||
"\n",
|
||||
"# 读取Excel文件,确保所有列都是字符串类型\n",
|
||||
"df = pd.read_excel('学生信息.xlsx',usecols=['姓名','性别','学号'], skiprows=1, dtype=str)\n",
|
||||
"df2 = pd.read_excel('2025级学生班级_子1.xlsx',usecols=['学生姓名','性别','学号'], dtype=str)\n",
|
||||
"\n",
|
||||
"# # 为两个DataFrame添加唯一标识列(姓名+性别+学号)\n",
|
||||
"# df['唯一标识'] = df['姓名'] + '|' + df['性别'] + '|' + df['学号']\n",
|
||||
"# df2['唯一标识'] = df2['学生姓名'] + '|' + df2['性别'] + '|' + df2['学号']\n",
|
||||
"\n",
|
||||
"# # 找出df2中有但df中没有的唯一标识\n",
|
||||
"# df2独有标识 = df2[~df2['唯一标识'].isin(df['唯一标识'])]['唯一标识']\n",
|
||||
"\n",
|
||||
"# # 根据独有标识筛选出完整记录\n",
|
||||
"# 结果 = df2[df2['唯一标识'].isin(df2独有标识)]\n",
|
||||
"\n",
|
||||
"# # 输出结果\n",
|
||||
"# print(\"df2中有但df中没有的记录:\")\n",
|
||||
"# print(结果.drop(columns=['唯一标识'])) # 删除临时的唯一标识列\n",
|
||||
"row_strings= set()\n",
|
||||
"for _,row in df.iterrows():\n",
|
||||
" row_strings.add(f\"{row['姓名']}{row['性别']}{row['学号']}\")\n",
|
||||
"row_strings1 = set()\n",
|
||||
"for _,row in df2.iterrows():\n",
|
||||
" row_strings1.add(f\"{row['学生姓名']}{row['性别']}{row['学号']}\")"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 38,
|
||||
"id": "56250fbc",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"{'彭睦雅男20250832', '李沛珊女20250831', '杨槟源男20250830', '杨颜尊女20250833'}"
|
||||
]
|
||||
},
|
||||
"execution_count": 38,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"row_strings1 - row_strings"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 35,
|
||||
"id": "34dae11a",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"(769, 4)"
|
||||
]
|
||||
},
|
||||
"execution_count": 35,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"df2.shape"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 36,
|
||||
"id": "b8ed5e95",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"(785, 4)"
|
||||
]
|
||||
},
|
||||
"execution_count": 36,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"df.shape"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"id": "5a58f936",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": []
|
||||
}
|
||||
],
|
||||
"metadata": {
|
||||
"kernelspec": {
|
||||
"display_name": "base",
|
||||
"language": "python",
|
||||
"name": "python3"
|
||||
},
|
||||
"language_info": {
|
||||
"codemirror_mode": {
|
||||
"name": "ipython",
|
||||
"version": 3
|
||||
},
|
||||
"file_extension": ".py",
|
||||
"mimetype": "text/x-python",
|
||||
"name": "python",
|
||||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython3",
|
||||
"version": "3.12.4"
|
||||
}
|
||||
},
|
||||
"nbformat": 4,
|
||||
"nbformat_minor": 5
|
||||
}
|
||||
@@ -0,0 +1,137 @@
|
||||
{
|
||||
"cells": [
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 1,
|
||||
"id": "87b031d3",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"from requests import get,post\n",
|
||||
"import time\n",
|
||||
"ip = \"http://band.hxzhxy.cn\"\n",
|
||||
"param = {\n",
|
||||
" \"username\": \"zhongwei\",\n",
|
||||
" \"password\": \"123456a\",\n",
|
||||
" \"client_id\": \"client\",\n",
|
||||
" \"grant_type\": \"password\",\n",
|
||||
" \"client_secret\": \"123456\",\n",
|
||||
"}\n",
|
||||
"data = get(url=f\"http://band.hxzhxy.cn/oauth/token?username=zhongwei&password=123456a&client_id=client&grant_type=password&client_secret=123456\").json()\n",
|
||||
"token = data[\"access_token\"]\n",
|
||||
"header = {\n",
|
||||
" \"content-type\": \"application/json\",\n",
|
||||
" \"authorization\": f\"Bearer {token}\",\n",
|
||||
"}"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 2,
|
||||
"id": "e8d05784",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"for i in range(1,19):\n",
|
||||
" post(f\"https://band.hxzhxy.cn/uc/class/add?access_token={token}\",json={\"gradeId\":124,\"teamId\":19,\"className\":f\"导师{i}班\",\"enabled\":True})"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 3,
|
||||
"id": "4e2bc4f9",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"区域1 = [4465-4433,4432-4400,4612-4464,4372-4352,4400-4372]\n",
|
||||
"区域中间 = [4352-4304]\n",
|
||||
"区域右上 = [4260-4236,4268-4260,4236-4216,4216-4196,4276-4268,4196-4180,4180-4172,4304-4276,4172-4156,4776-4664]\n",
|
||||
"区域右下 = [4048-4000,4664-4612,4120-4048,4156-4120]"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 4,
|
||||
"id": "3218ab3e",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"[32, 32, 148, 20, 28] [48] [24, 8, 20, 20, 8, 16, 8, 28, 16, 112] [48, 52, 72, 36]\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"print(区域1,区域中间,区域右上,区域右下)"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 6,
|
||||
"id": "a6ac5331",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"260\n",
|
||||
"48\n",
|
||||
"260\n",
|
||||
"208\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"print(sum(区域1))\n",
|
||||
"print(sum(区域中间))\n",
|
||||
"print(sum(区域右上))\n",
|
||||
"print(sum(区域右下))"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 8,
|
||||
"id": "13a25604",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"776"
|
||||
]
|
||||
},
|
||||
"execution_count": 8,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"sum(区域1)+sum(区域中间)+sum(区域右上)+sum(区域右下)"
|
||||
]
|
||||
}
|
||||
],
|
||||
"metadata": {
|
||||
"kernelspec": {
|
||||
"display_name": "base",
|
||||
"language": "python",
|
||||
"name": "python3"
|
||||
},
|
||||
"language_info": {
|
||||
"codemirror_mode": {
|
||||
"name": "ipython",
|
||||
"version": 3
|
||||
},
|
||||
"file_extension": ".py",
|
||||
"mimetype": "text/x-python",
|
||||
"name": "python",
|
||||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython3",
|
||||
"version": "3.12.4"
|
||||
}
|
||||
},
|
||||
"nbformat": 4,
|
||||
"nbformat_minor": 5
|
||||
}
|
||||
+22824
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,102 @@
|
||||
{
|
||||
"cells": [
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 1,
|
||||
"id": "318e7588",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"from requests import get,post\n",
|
||||
"import time\n",
|
||||
"ip = \"http://band.hxzhxy.cn\"\n",
|
||||
"# ip = \"http://192.168.0.244:8100\"\n",
|
||||
"\n",
|
||||
"param = {\n",
|
||||
" \"username\": \"tangchao\",\n",
|
||||
" \"password\": \"123456a\",\n",
|
||||
" \"client_id\": \"client\",\n",
|
||||
" \"grant_type\": \"password\",\n",
|
||||
" \"client_secret\": \"123456\",\n",
|
||||
"}\n",
|
||||
"data = get(url=f\"http://band.hxzhxy.cn/oauth/token?username=zhongwei&password=123456a&client_id=client&grant_type=password&client_secret=123456\").json()\n",
|
||||
"token = data[\"access_token\"]\n",
|
||||
"header = {\n",
|
||||
" \"content-type\": \"application/json\",\n",
|
||||
" \"authorization\": f\"Bearer {token}\",\n",
|
||||
"}"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 2,
|
||||
"id": "3c046d8d",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"<html>\n",
|
||||
"<head><title>404 Not Found</title></head>\n",
|
||||
"<body bgcolor=\"white\">\n",
|
||||
"<center><h1>404 Not Found</h1></center>\n",
|
||||
"<hr><center>nginx/1.4.0</center>\n",
|
||||
"</body>\n",
|
||||
"</html>\n",
|
||||
"\n",
|
||||
"<html>\n",
|
||||
"<head><title>404 Not Found</title></head>\n",
|
||||
"<body bgcolor=\"white\">\n",
|
||||
"<center><h1>404 Not Found</h1></center>\n",
|
||||
"<hr><center>nginx/1.4.0</center>\n",
|
||||
"</body>\n",
|
||||
"</html>\n",
|
||||
"\n",
|
||||
"<html>\n",
|
||||
"<head><title>404 Not Found</title></head>\n",
|
||||
"<body bgcolor=\"white\">\n",
|
||||
"<center><h1>404 Not Found</h1></center>\n",
|
||||
"<hr><center>nginx/1.4.0</center>\n",
|
||||
"</body>\n",
|
||||
"</html>\n",
|
||||
"\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"for i in range(24,27):\n",
|
||||
" print(post(f\"{ip}/classAttendStu/createThisWeek\",headers=header,params={\"planId\":i},timeout=600).text)"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"id": "343a9e44",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": []
|
||||
}
|
||||
],
|
||||
"metadata": {
|
||||
"kernelspec": {
|
||||
"display_name": "base",
|
||||
"language": "python",
|
||||
"name": "python3"
|
||||
},
|
||||
"language_info": {
|
||||
"codemirror_mode": {
|
||||
"name": "ipython",
|
||||
"version": 3
|
||||
},
|
||||
"file_extension": ".py",
|
||||
"mimetype": "text/x-python",
|
||||
"name": "python",
|
||||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython3",
|
||||
"version": "3.12.4"
|
||||
}
|
||||
},
|
||||
"nbformat": 4,
|
||||
"nbformat_minor": 5
|
||||
}
|
||||
+82793
File diff suppressed because it is too large
Load Diff
+211
File diff suppressed because one or more lines are too long
@@ -0,0 +1,669 @@
|
||||
{
|
||||
"cells": [
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 1,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"from paho.mqtt import client as mqtt\n",
|
||||
"import json\n",
|
||||
"import time\n",
|
||||
"from requests import get,post,delete"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 2,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"broker = '100.68.18.111'\n",
|
||||
"# broker = '192.168.0.111'\n",
|
||||
"ip = \"http://100.68.18.111:9008\"\n",
|
||||
"port = 1883\n",
|
||||
"topic = \"/python/mqtt\"\n",
|
||||
"client_id = f'python-mqtt-demo'"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 3,
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"0"
|
||||
]
|
||||
},
|
||||
"execution_count": 3,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"# MQTT客户端的回调函数\n",
|
||||
"def on_connect(client, userdata, flags, rc):\n",
|
||||
" print(\"Connected with result code \"+str(rc))\n",
|
||||
" # 连接成功后订阅主题\n",
|
||||
" # client.subscribe(\"#\")\n",
|
||||
"\n",
|
||||
"def on_message(client, userdata, msg):\n",
|
||||
" print(msg.topic+\" \"+str(msg.payload))\n",
|
||||
"\n",
|
||||
"# 创建MQTT客户端实例\n",
|
||||
"client = mqtt.Client(client_id=client_id)\n",
|
||||
"\n",
|
||||
"# 绑定回调函数\n",
|
||||
"client.on_connect = on_connect\n",
|
||||
"client.on_message = on_message\n",
|
||||
"\n",
|
||||
"# 连接到MQTT代理\n",
|
||||
"client.connect(broker, port, 60)"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 5,
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"<paho.mqtt.client.MQTTMessageInfo at 0x2208bc58860>"
|
||||
]
|
||||
},
|
||||
"execution_count": 5,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"client.publish(\"demo/python\", \"Hello World!\")"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 6,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"token = post(f\"{ip}/login\",json={\"username\":\"admin\",\"password\":\"admin123\"}).json()[\"token\"]"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 7,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"headers = {\"Authorization\":f\"Bearer {token}\"}"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 8,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"records = get(f\"{ip}/school/devices/listPage?temaId=19&groupId=0&pageNum=1&pageSize=40\",headers=headers).json()[\"data\"][\"records\"]"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 9,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"macs =[]\n",
|
||||
"for item in records:\n",
|
||||
" macs.append(item.get(\"machineCode\", \"\"))"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 10,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"#在线\n",
|
||||
"onlines = []\n",
|
||||
"offlines=[]\n",
|
||||
"for item in records:\n",
|
||||
" if item.get(\"online\",0)==1:\n",
|
||||
" onlines.append(item['machineCode'])\n",
|
||||
" else:\n",
|
||||
" offlines.append(item['machineCode'])"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 11,
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"19"
|
||||
]
|
||||
},
|
||||
"execution_count": 11,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"len(onlines)"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 12,
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"15"
|
||||
]
|
||||
},
|
||||
"execution_count": 12,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"len(offlines)"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"metadata": {},
|
||||
"source": [
|
||||
"# 升级"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"<paho.mqtt.client.MQTTMessageInfo at 0x1b5acdeda90>"
|
||||
]
|
||||
},
|
||||
"execution_count": 6,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"topic = \"common/publicizeTelevision/00e066fd87b1/ota/upgrade\"\n",
|
||||
"client.publish(topic,\"1\")"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"for item in macs:\n",
|
||||
" topic = f\"common/publicizeTelevision/{item}/ota/upgrade\"\n",
|
||||
" client.publish(topic,\"1\")"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"metadata": {},
|
||||
"source": [
|
||||
"# 看门狗"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 12,
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"0 00e066fd898e\n",
|
||||
"1 000000000001\n",
|
||||
"2 00e0b413c78b\n",
|
||||
"3 00e066fd86c5\n",
|
||||
"4 000000000000\n",
|
||||
"5 00e066fd8711\n",
|
||||
"6 00e066fd8782\n",
|
||||
"7 00e066fd87b1\n",
|
||||
"8 00e066fd898d\n",
|
||||
"9 00e066fd8710\n",
|
||||
"10 00e066fd87ad\n",
|
||||
"11 00e066fd890b\n",
|
||||
"12 00e066fd882d\n",
|
||||
"13 00e066fd61fc\n",
|
||||
"14 00e066fd8927\n",
|
||||
"15 00e066fd898c\n",
|
||||
"16 00e066fd890c\n",
|
||||
"17 00e066fd86c4\n",
|
||||
"18 00e066fd8981\n",
|
||||
"19 00e066fd87af\n",
|
||||
"20 00e066fd891f\n",
|
||||
"21 000ec6431230\n",
|
||||
"22 00e066fd8988\n",
|
||||
"23 00e066fd8832\n",
|
||||
"24 00e066fd870d\n",
|
||||
"25 00e066fd8990\n",
|
||||
"26 00e066fd883a\n",
|
||||
"27 00e066fd882f\n",
|
||||
"28 00e066fd87b4\n",
|
||||
"29 00e066fd8989\n",
|
||||
"30 00e066fd8986\n",
|
||||
"31 00e066fd8797\n",
|
||||
"32 00e066fd898b\n",
|
||||
"33 00e066fd8931\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"for item,index in enumerate(macs):\n",
|
||||
" print(item,index)\n",
|
||||
" "
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"# netsh interface ipv4 set address name=\"以太网\" source=static address=192.168.0.110 mask=255.255.255.0 gateway=192.168.0.1"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 14,
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"'00E066FD8782'"
|
||||
]
|
||||
},
|
||||
"execution_count": 14,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"'00e066fd8782'.upper()"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 45,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"for index,item in enumerate(macs):\n",
|
||||
" time.sleep(1)\n",
|
||||
" topic = f\"cmd/publicizeTelevision/{item}/dog\"\n",
|
||||
" message = {\"name\":\"watchDog.exe\",\"url\":\"http://schoolserver.com:9008/common/download/app/watchDog.exe\",\"type\":\"down\"}\n",
|
||||
" client.publish(topic,json.dumps(message,ensure_ascii=False))"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 30,
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"<paho.mqtt.client.MQTTMessageInfo at 0x2015292bfb0>"
|
||||
]
|
||||
},
|
||||
"execution_count": 30,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"topic = f\"cmd/publicizeTelevision/000c290a0fcb/dog\"\n",
|
||||
"message = {\"name\":\"watchDog.exe\",\"url\":\"http://schoolserver.com:9008/common/download/app/watchDog.exe\",\"type\":\"down\"}\n",
|
||||
"client.publish(topic,json.dumps(message,ensure_ascii=False))"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 77,
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stderr",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"<>:3: SyntaxWarning: invalid escape sequence '\\S'\n",
|
||||
"<>:3: SyntaxWarning: invalid escape sequence '\\S'\n",
|
||||
"C:\\Users\\Administrator\\AppData\\Local\\Temp\\ipykernel_8436\\3533498662.py:3: SyntaxWarning: invalid escape sequence '\\S'\n",
|
||||
" message = '''reg query \"HKLM\\SOFTWARE\\WOW6432Node\\Microsoft\\Windows\\CurrentVersion\\Run\"'''\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"for item in macs:\n",
|
||||
" topic = f\"cmd/publicizeTelevision/{item}/cmd\"\n",
|
||||
" message = '''reg query \"HKLM\\SOFTWARE\\WOW6432Node\\Microsoft\\Windows\\CurrentVersion\\Run\"'''\n",
|
||||
"\n",
|
||||
" client.publish(topic,message)"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 20,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"for item in macs:\n",
|
||||
" topic = f\"cmd/publicizeTelevision/{item}/cmd\"\n",
|
||||
" message = '''systeminfo'''\n",
|
||||
" client.publish(topic,message)"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"metadata": {},
|
||||
"source": [
|
||||
"# cmd"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 13,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"for item in macs:\n",
|
||||
" topic = f\"cmd/televisionDog/{item.upper()}/ask\"\n",
|
||||
" client.publish(topic,\"1\")"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": []
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 16,
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"'00E066FD8832'"
|
||||
]
|
||||
},
|
||||
"execution_count": 16,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"'00e066fd8832'.upper()"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 17,
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"<paho.mqtt.client.MQTTMessageInfo at 0x20d4b920e00>"
|
||||
]
|
||||
},
|
||||
"execution_count": 17,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"topic = f\"cmd/televisionDog/00E066FD8832/ask\"\n",
|
||||
"client.publish(topic,\"1\")"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 24,
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"<paho.mqtt.client.MQTTMessageInfo at 0x21087171c60>"
|
||||
]
|
||||
},
|
||||
"execution_count": 24,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"# netsh interface ipv4 set address name=\"以太网\" source=static address=13.1.1.125 mask=255.255.255.0 gateway=13.1.1.1\n",
|
||||
"# message = {\n",
|
||||
"# \"common\":['netsh interface ipv4 set address name=\"以太网\" source=static address=13.1.1.119 mask=255.255.255.0 gateway=13.1.1.1','ping 13.1.1.1','shutdown /r /t 00']\n",
|
||||
"# }\n",
|
||||
"message = {\n",
|
||||
" \"common\":['netsh interface ipv4 set address name=\"以太网\" source=static address=13.1.1.115 mask=255.255.255.0 gateway=13.1.1.1 & ping 13.1.1.1 & shutdown /r /t 00']\n",
|
||||
"}\n",
|
||||
"client.publish(\"cmd/televisionDog/00E066FD882D/common\",json.dumps(message, ensure_ascii=False))"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 19,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"for item in macs:\n",
|
||||
" topic = f\"cmd/televisionDog/{item.upper()}/common\"\n",
|
||||
" message = {\n",
|
||||
" \"common\":['''slmgr /skms 10.19.64.158 & slmgr /ato''']\n",
|
||||
"}\n",
|
||||
" client.publish(topic,json.dumps(message, ensure_ascii=False))"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 85,
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stderr",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"<>:4: SyntaxWarning: invalid escape sequence '\\S'\n",
|
||||
"<>:4: SyntaxWarning: invalid escape sequence '\\S'\n",
|
||||
"C:\\Users\\Administrator\\AppData\\Local\\Temp\\ipykernel_8436\\2368358595.py:4: SyntaxWarning: invalid escape sequence '\\S'\n",
|
||||
" \"common\":['''reg query \"HKLM\\SOFTWARE\\WOW6432Node\\Microsoft\\Windows\\CurrentVersion\\Run\"''']\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"for item in macs:\n",
|
||||
" topic = f\"cmd/televisionDog/{item.upper()}/common\"\n",
|
||||
" message = {\n",
|
||||
" \"common\":['''reg query \"HKLM\\SOFTWARE\\WOW6432Node\\Microsoft\\Windows\\CurrentVersion\\Run\"''']\n",
|
||||
"}\n",
|
||||
" client.publish(topic,json.dumps(message, ensure_ascii=False))"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 90,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"\n",
|
||||
"for item in macs:\n",
|
||||
" topic = f\"cmd/televisionDog/{item.upper()}/common\"\n",
|
||||
" message = {\n",
|
||||
" \"common\":[\"tasklist | findstr \\\"校宣机程序\\\"\"]\n",
|
||||
"}\n",
|
||||
" client.publish(topic,json.dumps(message, ensure_ascii=False))"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 15,
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"<paho.mqtt.client.MQTTMessageInfo at 0x201c062b510>"
|
||||
]
|
||||
},
|
||||
"execution_count": 15,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"message = {\n",
|
||||
" \"common\":[\"ping 13.1.1.124\"]\n",
|
||||
"}\n",
|
||||
"\n",
|
||||
"client.publish(\"cmd/televisionDog/00E066FD898E/common\",json.dumps(message, ensure_ascii=False))"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": []
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"metadata": {},
|
||||
"source": []
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"macs =['00e066fd883a']"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 15,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"data = {\"macs\":[\"00e0b413c78b\",\"00e066fd86c5\",\"00e066fd8711\",\"00e066fd8782\",\"00e066fd87b1\",\"00e066fd898d\",\"00e066fd8710\",\"00e066fd87ad\",\"00e066fd890b\",\"00e066fd882d\",\"00e066fd61fc\",\"00e066fd8927\",\"00e066fd898c\",\"00e066fd890c\",\"00e066fd86c4\",\"00e066fd8981\",\"00e066fd87af\",\"00e066fd891f\",\"000ec6431230\",\"00e066fd8988\",\"00e066fd8832\",\"00e066fd870d\",\"00e066fd8990\",\"00e066fd883a\",\"00e066fd882f\",\"00e066fd87b4\",\"00e066fd8989\",\"00e066fd8986\",\"00e066fd8797\",\"00e066fd898b\",\"00e066fd8931\"],\"ips\":[\"13.1.1.120\",\"13.1.1.119\",\"13.1.1.125\",\"13.1.1.124\",\"13.1.1.126\",\"13.1.1.131\",\"13.1.1.127\",\"13.1.1.129\",\"13.1.1.117\",\"13.1.1.180\",\"13.1.1.114\",\"13.1.1.116\",\"13.1.1.118\",\"13.1.1.104\",\"13.1.1.113\",\"13.1.1.139\",\"13.1.1.136\",\"13.1.1.111\",\"13.1.1.102\",\"13.1.1.108\",\"13.1.1.110\",\"13.1.1.132\",\"13.1.1.130\",\"13.1.1.122\",\"13.1.1.123\",\"13.1.1.112\",\"13.1.1.107\",\"13.1.1.109\",\"13.1.1.115\",\"13.1.1.105\",\"13.1.1.135\"]}"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 18,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"tem = []\n",
|
||||
"for index,item in enumerate(data[\"macs\"]):\n",
|
||||
" tem.append({\"mac\":item,\"ip\":data[\"ips\"][index]})"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 19,
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"[{'mac': '00e0b413c78b', 'ip': '13.1.1.120'},\n",
|
||||
" {'mac': '00e066fd86c5', 'ip': '13.1.1.119'},\n",
|
||||
" {'mac': '00e066fd8711', 'ip': '13.1.1.125'},\n",
|
||||
" {'mac': '00e066fd8782', 'ip': '13.1.1.124'},\n",
|
||||
" {'mac': '00e066fd87b1', 'ip': '13.1.1.126'},\n",
|
||||
" {'mac': '00e066fd898d', 'ip': '13.1.1.131'},\n",
|
||||
" {'mac': '00e066fd8710', 'ip': '13.1.1.127'},\n",
|
||||
" {'mac': '00e066fd87ad', 'ip': '13.1.1.129'},\n",
|
||||
" {'mac': '00e066fd890b', 'ip': '13.1.1.117'},\n",
|
||||
" {'mac': '00e066fd882d', 'ip': '13.1.1.180'},\n",
|
||||
" {'mac': '00e066fd61fc', 'ip': '13.1.1.114'},\n",
|
||||
" {'mac': '00e066fd8927', 'ip': '13.1.1.116'},\n",
|
||||
" {'mac': '00e066fd898c', 'ip': '13.1.1.118'},\n",
|
||||
" {'mac': '00e066fd890c', 'ip': '13.1.1.104'},\n",
|
||||
" {'mac': '00e066fd86c4', 'ip': '13.1.1.113'},\n",
|
||||
" {'mac': '00e066fd8981', 'ip': '13.1.1.139'},\n",
|
||||
" {'mac': '00e066fd87af', 'ip': '13.1.1.136'},\n",
|
||||
" {'mac': '00e066fd891f', 'ip': '13.1.1.111'},\n",
|
||||
" {'mac': '000ec6431230', 'ip': '13.1.1.102'},\n",
|
||||
" {'mac': '00e066fd8988', 'ip': '13.1.1.108'},\n",
|
||||
" {'mac': '00e066fd8832', 'ip': '13.1.1.110'},\n",
|
||||
" {'mac': '00e066fd870d', 'ip': '13.1.1.132'},\n",
|
||||
" {'mac': '00e066fd8990', 'ip': '13.1.1.130'},\n",
|
||||
" {'mac': '00e066fd883a', 'ip': '13.1.1.122'},\n",
|
||||
" {'mac': '00e066fd882f', 'ip': '13.1.1.123'},\n",
|
||||
" {'mac': '00e066fd87b4', 'ip': '13.1.1.112'},\n",
|
||||
" {'mac': '00e066fd8989', 'ip': '13.1.1.107'},\n",
|
||||
" {'mac': '00e066fd8986', 'ip': '13.1.1.109'},\n",
|
||||
" {'mac': '00e066fd8797', 'ip': '13.1.1.115'},\n",
|
||||
" {'mac': '00e066fd898b', 'ip': '13.1.1.105'},\n",
|
||||
" {'mac': '00e066fd8931', 'ip': '13.1.1.135'}]"
|
||||
]
|
||||
},
|
||||
"execution_count": 19,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"tem"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": []
|
||||
}
|
||||
],
|
||||
"metadata": {
|
||||
"kernelspec": {
|
||||
"display_name": "base",
|
||||
"language": "python",
|
||||
"name": "python3"
|
||||
},
|
||||
"language_info": {
|
||||
"codemirror_mode": {
|
||||
"name": "ipython",
|
||||
"version": 3
|
||||
},
|
||||
"file_extension": ".py",
|
||||
"mimetype": "text/x-python",
|
||||
"name": "python",
|
||||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython3",
|
||||
"version": "3.12.4"
|
||||
}
|
||||
},
|
||||
"nbformat": 4,
|
||||
"nbformat_minor": 2
|
||||
}
|
||||
@@ -0,0 +1,143 @@
|
||||
{
|
||||
"cells": [
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 1,
|
||||
"id": "6619c94e",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"from requests import get,post\n",
|
||||
"import time\n",
|
||||
"ip = \"http://band.hxzhxy.cn\"\n",
|
||||
"param = {\n",
|
||||
" \"username\": \"tangchao\",\n",
|
||||
" \"password\": \"123456a\",\n",
|
||||
" \"client_id\": \"client\",\n",
|
||||
" \"grant_type\": \"password\",\n",
|
||||
" \"client_secret\": \"123456\",\n",
|
||||
"}\n",
|
||||
"data = get(url=f\"http://band.hxzhxy.cn/oauth/token?username=zhongwei&password=123456a&client_id=client&grant_type=password&client_secret=123456\").json()\n",
|
||||
"token = data[\"access_token\"]\n",
|
||||
"header = {\n",
|
||||
" \"content-type\": \"application/json\",\n",
|
||||
" \"authorization\": f\"Bearer {token}\",\n",
|
||||
"}\n",
|
||||
"teamId=110"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"id": "87b0a73c",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"{'success': True,\n",
|
||||
" 'msg': '操作成功',\n",
|
||||
" 'code': 0,\n",
|
||||
" 'data': {'id': 10914,\n",
|
||||
" 'stuNo': '25040057',\n",
|
||||
" 'stuName': '冯梓骏',\n",
|
||||
" 'sex': 1,\n",
|
||||
" 'classId': 499,\n",
|
||||
" 'gradeId': 129,\n",
|
||||
" 'seralNo': '3108683745',\n",
|
||||
" 'score': 'A',\n",
|
||||
" 'moralEducation': 'A',\n",
|
||||
" 'userName': '25040057CDSPTSZXBRFX',\n",
|
||||
" 'teamId': 110,\n",
|
||||
" 'pid': None,\n",
|
||||
" 'phone': None,\n",
|
||||
" 'imgUrl': None,\n",
|
||||
" 'openid': None,\n",
|
||||
" 'boarder': 2,\n",
|
||||
" 'wxPhone': '13540808459',\n",
|
||||
" 'trust': 0,\n",
|
||||
" 'userId': None,\n",
|
||||
" 'stature': None,\n",
|
||||
" 'weight': None,\n",
|
||||
" 'wxPhones': None,\n",
|
||||
" 'userIdse': None,\n",
|
||||
" 'payUserId': '25082816140601002478',\n",
|
||||
" 'payState': 3,\n",
|
||||
" 'teaChild': 0,\n",
|
||||
" 'openids': None,\n",
|
||||
" 'casId': None,\n",
|
||||
" 'board': 1,\n",
|
||||
" 'chatOpenId': None,\n",
|
||||
" 'chatOpenIds': None,\n",
|
||||
" 'teamName': None,\n",
|
||||
" 'gradeName': '2025级',\n",
|
||||
" 'className': '导师11班',\n",
|
||||
" 'sexName': None,\n",
|
||||
" 'battery': None,\n",
|
||||
" 'steps': None,\n",
|
||||
" 'rank': None,\n",
|
||||
" 'roleName': None,\n",
|
||||
" 'sleepStart': None,\n",
|
||||
" 'sleepEnd': None,\n",
|
||||
" 'type': None,\n",
|
||||
" 'setTime': None,\n",
|
||||
" 'status': None,\n",
|
||||
" 'userType': None,\n",
|
||||
" 'sumLocation': None,\n",
|
||||
" 'arkName': None}}"
|
||||
]
|
||||
},
|
||||
"execution_count": 3,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
},
|
||||
{
|
||||
"ename": "",
|
||||
"evalue": "",
|
||||
"output_type": "error",
|
||||
"traceback": [
|
||||
"\u001b[1;31m在当前单元格或上一个单元格中执行代码时 Kernel 崩溃。\n",
|
||||
"\u001b[1;31m请查看单元格中的代码,以确定故障的可能原因。\n",
|
||||
"\u001b[1;31m单击<a href='https://aka.ms/vscodeJupyterKernelCrash'>此处</a>了解详细信息。\n",
|
||||
"\u001b[1;31m有关更多详细信息,请查看 Jupyter <a href='command:jupyter.viewOutput'>log</a>。"
|
||||
]
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"get(f\"{ip}/uc/student/findBySerialNo\",params={\n",
|
||||
" \"teamId\":teamId,\n",
|
||||
" \"param\":\"3108683745\"\n",
|
||||
"},headers=header).json()"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"id": "96366a8b",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": []
|
||||
}
|
||||
],
|
||||
"metadata": {
|
||||
"kernelspec": {
|
||||
"display_name": "base",
|
||||
"language": "python",
|
||||
"name": "python3"
|
||||
},
|
||||
"language_info": {
|
||||
"codemirror_mode": {
|
||||
"name": "ipython",
|
||||
"version": 3
|
||||
},
|
||||
"file_extension": ".py",
|
||||
"mimetype": "text/x-python",
|
||||
"name": "python",
|
||||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython3",
|
||||
"version": "3.12.4"
|
||||
}
|
||||
},
|
||||
"nbformat": 4,
|
||||
"nbformat_minor": 5
|
||||
}
|
||||
+6409
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,45 @@
|
||||
{
|
||||
"cells": [
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 1,
|
||||
"id": "76a05aea",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"import pandas as pd"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"id": "3bd0bd1d",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"{\"202501\":\"导师\"}"
|
||||
]
|
||||
}
|
||||
],
|
||||
"metadata": {
|
||||
"kernelspec": {
|
||||
"display_name": "base",
|
||||
"language": "python",
|
||||
"name": "python3"
|
||||
},
|
||||
"language_info": {
|
||||
"codemirror_mode": {
|
||||
"name": "ipython",
|
||||
"version": 3
|
||||
},
|
||||
"file_extension": ".py",
|
||||
"mimetype": "text/x-python",
|
||||
"name": "python",
|
||||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython3",
|
||||
"version": "3.12.4"
|
||||
}
|
||||
},
|
||||
"nbformat": 4,
|
||||
"nbformat_minor": 5
|
||||
}
|
||||
@@ -0,0 +1,73 @@
|
||||
{
|
||||
"cells": [
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 1,
|
||||
"id": "87b031d3",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"from requests import get,post\n",
|
||||
"import time\n",
|
||||
"ip = \"http://band.hxzhxy.cn\"\n",
|
||||
"param = {\n",
|
||||
" \"username\": \"zhongwei\",\n",
|
||||
" \"password\": \"123456a\",\n",
|
||||
" \"client_id\": \"client\",\n",
|
||||
" \"grant_type\": \"password\",\n",
|
||||
" \"client_secret\": \"123456\",\n",
|
||||
"}\n",
|
||||
"data = get(url=f\"http://band.hxzhxy.cn/oauth/token?username=zhongwei&password=123456a&client_id=client&grant_type=password&client_secret=123456\").json()\n",
|
||||
"token = data[\"access_token\"]\n",
|
||||
"header = {\n",
|
||||
" \"content-type\": \"application/json\",\n",
|
||||
" \"authorization\": f\"Bearer {token}\",\n",
|
||||
"}"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"id": "e8d05784",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"ename": "",
|
||||
"evalue": "",
|
||||
"output_type": "error",
|
||||
"traceback": [
|
||||
"\u001b[1;31m在当前单元格或上一个单元格中执行代码时 Kernel 崩溃。\n",
|
||||
"\u001b[1;31m请查看单元格中的代码,以确定故障的可能原因。\n",
|
||||
"\u001b[1;31m单击<a href='https://aka.ms/vscodeJupyterKernelCrash'>此处</a>了解详细信息。\n",
|
||||
"\u001b[1;31m有关更多详细信息,请查看 Jupyter <a href='command:jupyter.viewOutput'>log</a>。"
|
||||
]
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"for i in range(1,13):\n",
|
||||
" post(f\"https://band.hxzhxy.cn/uc/class/add?access_token={token}\",json={\"gradeId\":129,\"teamId\":110,\"className\":f\"导师{i}班\",\"enabled\":True})"
|
||||
]
|
||||
}
|
||||
],
|
||||
"metadata": {
|
||||
"kernelspec": {
|
||||
"display_name": "base",
|
||||
"language": "python",
|
||||
"name": "python3"
|
||||
},
|
||||
"language_info": {
|
||||
"codemirror_mode": {
|
||||
"name": "ipython",
|
||||
"version": 3
|
||||
},
|
||||
"file_extension": ".py",
|
||||
"mimetype": "text/x-python",
|
||||
"name": "python",
|
||||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython3",
|
||||
"version": "3.12.4"
|
||||
}
|
||||
},
|
||||
"nbformat": 4,
|
||||
"nbformat_minor": 5
|
||||
}
|
||||
+27635
File diff suppressed because one or more lines are too long
@@ -0,0 +1,247 @@
|
||||
{
|
||||
"cells": [
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 1,
|
||||
"id": "df73a2c8",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"from requests import get,post\n",
|
||||
"import time\n",
|
||||
"ip = \"http://band.hxzhxy.cn\"\n",
|
||||
"param = {\n",
|
||||
" \"username\": \"zhongwei\",\n",
|
||||
" \"password\": \"123456a\",\n",
|
||||
" \"client_id\": \"client\",\n",
|
||||
" \"grant_type\": \"password\",\n",
|
||||
" \"client_secret\": \"123456\",\n",
|
||||
"}\n",
|
||||
"data = get(url=f\"http://band.hxzhxy.cn/oauth/token?username=zhongwei&password=123456a&client_id=client&grant_type=password&client_secret=123456\").json()\n",
|
||||
"token = data[\"access_token\"]\n",
|
||||
"header = {\n",
|
||||
" \"content-type\": \"application/json\",\n",
|
||||
" \"authorization\": f\"Bearer {token}\",\n",
|
||||
"}"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 15,
|
||||
"id": "d6bf26e0",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"data = get(f\"https://band.hxzhxy.cn/lock/ark/listPages?areaId=15&dongId=22&tierId=47&arkName=&teamId=110&binding=&bindStu=&accredit=&screen=0&pageSize=500&pageNumber=0&orderDirection=asc&access_token={token}\").json()"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 16,
|
||||
"id": "f2ea16c1",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"待解绑柜子 = []\n",
|
||||
"for item in data[\"data\"][\"content\"]:\n",
|
||||
" 柜号 = int(item[\"arkName\"])\n",
|
||||
" if 柜号 >= 4361:\n",
|
||||
" 待解绑柜子.append(item)"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 18,
|
||||
"id": "de7086a0",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"{'lockNo': '1240740069', 'binding': 1, 'stuName': '段安泰', 'dongName': '教学楼', 'regionName': '北区', 'regionId': 59, 'teamName': '成都市泡桐树中学百仁分校', 'stuId': 10807, 'serialNo': '3108435649', 'className': '导师7班', 'teamId': 110, 'tierId': 47, 'accredit': 0, 'dongId': 22, 'gradeId': 129, 'arkRemark': None, 'arkName': '4361', 'gradeName': '2025级', 'areaName': '百仁校区', 'id': 4961, 'bindStu': 1, 'areaId': 15, 'stuNo': '25040050', 'tierName': '四楼', 'classId': 495}\n",
|
||||
"{'binding': 1, 'dongName': '教学楼', 'regionName': '北区', 'regionId': 59, 'lockNo': '1240740818', 'teamName': '成都市泡桐树中学百仁分校', 'serialNo': '3108363937', 'className': '导师7班', 'teamId': 110, 'accredit': 1, 'tierId': 47, 'stuId': 10808, 'dongId': 22, 'stuName': '冉昊洋', 'gradeId': 129, 'arkRemark': None, 'arkName': '4362', 'gradeName': '2025级', 'stuNo': '25040216', 'areaName': '百仁校区', 'id': 4962, 'bindStu': 1, 'areaId': 15, 'tierName': '四楼', 'classId': 495}\n",
|
||||
"{'lockNo': '1240740004', 'binding': 1, 'dongName': '教学楼', 'regionName': '北区', 'regionId': 59, 'teamName': '成都市泡桐树中学百仁分校', 'serialNo': '1617635220', 'className': '导师7班', 'teamId': 110, 'accredit': 1, 'tierId': 47, 'dongId': 22, 'stuId': 10809, 'gradeId': 129, 'arkRemark': None, 'stuName': '王正豪', 'arkName': '4363', 'gradeName': '2025级', 'stuNo': '25040278', 'id': 4963, 'areaName': '百仁校区', 'bindStu': 1, 'areaId': 15, 'tierName': '四楼', 'classId': 495}\n",
|
||||
"{'binding': 1, 'dongName': '教学楼', 'regionName': '北区', 'regionId': 59, 'teamName': '成都市泡桐树中学百仁分校', 'stuName': '侯瑜浩言', 'className': '导师7班', 'teamId': 110, 'accredit': 1, 'tierId': 47, 'dongId': 22, 'stuId': 10810, 'lockNo': '1240740099', 'gradeId': 129, 'arkRemark': None, 'arkName': '4364', 'gradeName': '2025级', 'serialNo': '1618323268', 'areaName': '百仁校区', 'bindStu': 1, 'areaId': 15, 'tierName': '四楼', 'classId': 495, 'stuNo': '25040092', 'id': 4964}\n",
|
||||
"{'lockNo': '1240740643', 'binding': 1, 'dongName': '教学楼', 'regionName': '北区', 'regionId': 59, 'teamName': '成都市泡桐树中学百仁分校', 'stuNo': '25040104', 'className': '导师7班', 'teamId': 110, 'accredit': 1, 'tierId': 47, 'dongId': 22, 'stuName': '纪欣', 'stuId': 10811, 'gradeId': 129, 'arkRemark': None, 'serialNo': '1620281172', 'arkName': '4365', 'gradeName': '2025级', 'areaName': '百仁校区', 'bindStu': 1, 'areaId': 15, 'tierName': '四楼', 'classId': 495, 'id': 4965}\n",
|
||||
"{'binding': 1, 'dongName': '教学楼', 'regionName': '北区', 'regionId': 59, 'teamName': '成都市泡桐树中学百仁分校', 'stuNo': '25040301', 'stuId': 10812, 'className': '导师7班', 'teamId': 110, 'accredit': 1, 'tierId': 47, 'stuName': '向依凡', 'dongId': 22, 'gradeId': 129, 'arkRemark': None, 'serialNo': '1620684196', 'arkName': '4366', 'gradeName': '2025级', 'areaName': '百仁校区', 'bindStu': 1, 'lockNo': '1240740669', 'areaId': 15, 'id': 4966, 'tierName': '四楼', 'classId': 495}\n",
|
||||
"{'binding': 1, 'dongName': '教学楼', 'stuName': '曾子骁', 'regionName': '北区', 'regionId': 59, 'stuNo': '25040009', 'serialNo': '1617727796', 'arkName': '4367', 'teamName': '成都市泡桐树中学百仁分校', 'className': '导师7班', 'teamId': 110, 'stuId': 10813, 'accredit': 1, 'tierId': 47, 'dongId': 22, 'lockNo': '1240740493', 'gradeId': 129, 'arkRemark': None, 'gradeName': '2025级', 'areaName': '百仁校区', 'bindStu': 1, 'id': 4967, 'areaId': 15, 'tierName': '四楼', 'classId': 495}\n",
|
||||
"{'serialNo': '3108360881', 'binding': 1, 'dongName': '教学楼', 'regionName': '北区', 'regionId': 59, 'arkName': '4368', 'lockNo': '1240740719', 'teamName': '成都市泡桐树中学百仁分校', 'className': '导师7班', 'teamId': 110, 'stuId': 10814, 'accredit': 1, 'tierId': 47, 'dongId': 22, 'stuNo': '25040161', 'gradeId': 129, 'stuName': '廖家一', 'arkRemark': None, 'gradeName': '2025级', 'id': 4968, 'areaName': '百仁校区', 'bindStu': 1, 'areaId': 15, 'tierName': '四楼', 'classId': 495}\n",
|
||||
"{'binding': 1, 'dongName': '教学楼', 'regionName': '北区', 'regionId': 59, 'teamName': '成都市泡桐树中学百仁分校', 'arkName': '4369', 'className': '导师7班', 'teamId': 110, 'accredit': 1, 'tierId': 47, 'stuId': 10815, 'dongId': 22, 'gradeId': 129, 'arkRemark': None, 'lockNo': '1240740433', 'serialNo': '0022802396', 'gradeName': '2025级', 'stuName': '宋炎桁', 'id': 4969, 'areaName': '百仁校区', 'stuNo': '25040231', 'bindStu': 1, 'areaId': 15, 'tierName': '四楼', 'classId': 495}\n",
|
||||
"{'lockNo': '1240740384', 'arkName': '4370', 'binding': 1, 'dongName': '教学楼', 'regionName': '北区', 'regionId': 59, 'teamName': '成都市泡桐树中学百仁分校', 'stuNo': '25040320', 'className': '导师7班', 'teamId': 110, 'accredit': 1, 'tierId': 47, 'stuName': '徐子昂', 'dongId': 22, 'serialNo': '0022818812', 'gradeId': 129, 'stuId': 10816, 'arkRemark': None, 'gradeName': '2025级', 'id': 4970, 'areaName': '百仁校区', 'bindStu': 1, 'areaId': 15, 'tierName': '四楼', 'classId': 495}\n",
|
||||
"{'binding': 1, 'dongName': '教学楼', 'arkName': '4371', 'regionName': '北区', 'regionId': 59, 'lockNo': '1240740162', 'teamName': '成都市泡桐树中学百仁分校', 'stuNo': '25040047', 'className': '导师7班', 'teamId': 110, 'accredit': 1, 'tierId': 47, 'dongId': 22, 'gradeId': 129, 'serialNo': '1620137620', 'arkRemark': None, 'stuId': 10817, 'id': 4971, 'gradeName': '2025级', 'areaName': '百仁校区', 'bindStu': 1, 'areaId': 15, 'tierName': '四楼', 'classId': 495, 'stuName': '董玥希'}\n",
|
||||
"{'binding': 1, 'dongName': '教学楼', 'arkName': '4372', 'regionName': '北区', 'regionId': 59, 'teamName': '成都市泡桐树中学百仁分校', 'className': '导师7班', 'teamId': 110, 'accredit': 1, 'tierId': 47, 'dongId': 22, 'stuName': '程姿涵', 'serialNo': '1620136612', 'gradeId': 129, 'arkRemark': None, 'stuId': 10818, 'gradeName': '2025级', 'stuNo': '25040038', 'id': 4972, 'areaName': '百仁校区', 'lockNo': '1240740545', 'bindStu': 1, 'areaId': 15, 'tierName': '四楼', 'classId': 495}\n",
|
||||
"{'binding': 1, 'dongName': '教学楼', 'arkName': '4373', 'regionName': '北区', 'regionId': 59, 'teamName': '成都市泡桐树中学百仁分校', 'lockNo': '1240740710', 'className': '导师7班', 'teamId': 110, 'accredit': 1, 'tierId': 47, 'dongId': 22, 'gradeId': 129, 'arkRemark': None, 'stuId': 10819, 'serialNo': '1618718660', 'gradeName': '2025级', 'stuNo': '25040059', 'id': 4973, 'areaName': '百仁校区', 'bindStu': 1, 'areaId': 15, 'tierName': '四楼', 'classId': 495, 'stuName': '高马玺娆'}\n",
|
||||
"{'binding': 1, 'dongName': '教学楼', 'arkName': '4374', 'regionName': '北区', 'regionId': 59, 'stuNo': '25040206', 'teamName': '成都市泡桐树中学百仁分校', 'serialNo': '3108598785', 'className': '导师7班', 'teamId': 110, 'accredit': 1, 'tierId': 47, 'dongId': 22, 'stuId': 10820, 'lockNo': '1240740890', 'gradeId': 129, 'arkRemark': None, 'gradeName': '2025级', 'stuName': '聂文博', 'id': 4974, 'areaName': '百仁校区', 'bindStu': 1, 'areaId': 15, 'tierName': '四楼', 'classId': 495}\n",
|
||||
"{'teamName': None, 'lockNo': '1240740126', 'binding': 1, 'dongName': '教学楼', 'className': None, 'arkName': '4375', 'regionName': '北区', 'regionId': 59, 'classId': None, 'teamId': 110, 'tierId': 47, 'accredit': 0, 'dongId': 22, 'stuNo': None, 'gradeName': None, 'gradeId': None, 'stuId': None, 'arkRemark': None, 'stuName': None, 'serialNo': None, 'id': 4975, 'areaName': '百仁校区', 'bindStu': 0, 'areaId': 15, 'tierName': '四楼'}\n",
|
||||
"{'teamName': None, 'binding': 1, 'dongName': '教学楼', 'className': None, 'regionName': '北区', 'regionId': 59, 'arkName': '4376', 'classId': None, 'teamId': 110, 'lockNo': '1240740854', 'tierId': 47, 'accredit': 0, 'dongId': 22, 'stuNo': None, 'gradeName': None, 'gradeId': None, 'stuId': None, 'arkRemark': None, 'id': 4976, 'stuName': None, 'serialNo': None, 'areaName': '百仁校区', 'bindStu': 0, 'areaId': 15, 'tierName': '四楼'}\n",
|
||||
"{'binding': 1, 'dongName': '教学楼', 'regionName': '北区', 'regionId': 59, 'arkName': '4377', 'teamName': '成都市泡桐树中学百仁分校', 'stuNo': '25040224', 'teamId': 110, 'accredit': 1, 'tierId': 47, 'dongId': 22, 'serialNo': '1618188644', 'stuId': 10821, 'classId': 496, 'gradeId': 129, 'arkRemark': None, 'id': 4977, 'stuName': '沈佳萱', 'lockNo': '1240740492', 'gradeName': '2025级', 'areaName': '百仁校区', 'className': '导师8班', 'bindStu': 1, 'areaId': 15, 'tierName': '四楼'}\n",
|
||||
"{'serialNo': '1620000804', 'binding': 1, 'dongName': '教学楼', 'regionName': '北区', 'regionId': 59, 'teamName': '成都市泡桐树中学百仁分校', 'teamId': 110, 'stuName': '程启恩', 'accredit': 1, 'tierId': 47, 'dongId': 22, 'lockNo': '1240740837', 'stuId': 10822, 'classId': 496, 'gradeId': 129, 'arkRemark': None, 'id': 4978, 'gradeName': '2025级', 'arkName': '4378', 'stuNo': '25040037', 'areaName': '百仁校区', 'className': '导师8班', 'bindStu': 1, 'areaId': 15, 'tierName': '四楼'}\n",
|
||||
"{'lockNo': '1240740445', 'binding': 1, 'dongName': '教学楼', 'stuName': '赵辰睿', 'regionName': '北区', 'regionId': 59, 'teamName': '成都市泡桐树中学百仁分校', 'teamId': 110, 'stuNo': '25040383', 'accredit': 1, 'tierId': 47, 'dongId': 22, 'classId': 496, 'stuId': 10823, 'gradeId': 129, 'arkRemark': None, 'id': 4979, 'serialNo': '3108682065', 'gradeName': '2025级', 'arkName': '4379', 'areaName': '百仁校区', 'className': '导师8班', 'bindStu': 1, 'areaId': 15, 'tierName': '四楼'}\n",
|
||||
"{'binding': 1, 'dongName': '教学楼', 'regionName': '北区', 'regionId': 59, 'teamName': '成都市泡桐树中学百仁分校', 'teamId': 110, 'lockNo': '1240740734', 'accredit': 1, 'tierId': 47, 'dongId': 22, 'stuNo': '25040082', 'classId': 496, 'gradeId': 129, 'serialNo': '1619003428', 'arkRemark': None, 'arkName': '4380', 'stuId': 10824, 'id': 4980, 'gradeName': '2025级', 'stuName': '何瑞航', 'areaName': '百仁校区', 'className': '导师8班', 'bindStu': 1, 'areaId': 15, 'tierName': '四楼'}\n",
|
||||
"{'binding': 1, 'dongName': '教学楼', 'regionName': '北区', 'regionId': 59, 'teamName': '成都市泡桐树中学百仁分校', 'stuName': '高一尘', 'teamId': 110, 'serialNo': '1618577636', 'stuNo': '25040063', 'accredit': 1, 'tierId': 47, 'dongId': 22, 'lockNo': '1240740275', 'classId': 496, 'gradeId': 129, 'arkRemark': None, 'arkName': '4381', 'stuId': 10825, 'id': 4981, 'gradeName': '2025级', 'areaName': '百仁校区', 'className': '导师8班', 'bindStu': 1, 'areaId': 15, 'tierName': '四楼'}\n",
|
||||
"{'binding': 1, 'dongName': '教学楼', 'regionName': '北区', 'regionId': 59, 'teamName': '成都市泡桐树中学百仁分校', 'teamId': 110, 'accredit': 1, 'tierId': 47, 'lockNo': '1240740714', 'dongId': 22, 'stuName': '王虹毅', 'serialNo': '1620959348', 'classId': 496, 'gradeId': 129, 'arkRemark': None, 'arkName': '4382', 'id': 4982, 'stuId': 10826, 'gradeName': '2025级', 'stuNo': '25040256', 'areaName': '百仁校区', 'className': '导师8班', 'bindStu': 1, 'areaId': 15, 'tierName': '四楼'}\n",
|
||||
"{'lockNo': '1240740885', 'binding': 1, 'dongName': '教学楼', 'regionName': '北区', 'regionId': 59, 'teamName': '成都市泡桐树中学百仁分校', 'serialNo': '3108599633', 'teamId': 110, 'stuName': '陈虹宇', 'accredit': 1, 'tierId': 47, 'dongId': 22, 'classId': 496, 'gradeId': 129, 'arkRemark': None, 'arkName': '4383', 'id': 4983, 'stuId': 10827, 'gradeName': '2025级', 'stuNo': '25040014', 'areaName': '百仁校区', 'className': '导师8班', 'bindStu': 1, 'areaId': 15, 'tierName': '四楼'}\n",
|
||||
"{'binding': 1, 'dongName': '教学楼', 'regionName': '北区', 'regionId': 59, 'teamName': '成都市泡桐树中学百仁分校', 'teamId': 110, 'accredit': 1, 'tierId': 47, 'dongId': 22, 'classId': 496, 'id': 4984, 'gradeId': 129, 'stuName': '宋雯岩', 'arkRemark': None, 'serialNo': '1618594084', 'lockNo': '1240740258', 'stuId': 10828, 'arkName': '4384', 'gradeName': '2025级', 'areaName': '百仁校区', 'stuNo': '25040230', 'className': '导师8班', 'bindStu': 1, 'areaId': 15, 'tierName': '四楼'}\n",
|
||||
"{'lockNo': '1240740442', 'binding': 1, 'dongName': '教学楼', 'regionName': '北区', 'regionId': 59, 'stuName': '黄嘉晟', 'teamName': '成都市泡桐树中学百仁分校', 'stuNo': '25040100', 'teamId': 110, 'accredit': 1, 'tierId': 47, 'dongId': 22, 'id': 4985, 'classId': 496, 'serialNo': '3108609585', 'gradeId': 129, 'arkRemark': None, 'stuId': 10829, 'arkName': '4385', 'gradeName': '2025级', 'areaName': '百仁校区', 'className': '导师8班', 'bindStu': 1, 'areaId': 15, 'tierName': '四楼'}\n",
|
||||
"{'binding': 1, 'dongName': '教学楼', 'regionName': '北区', 'regionId': 59, 'teamName': '成都市泡桐树中学百仁分校', 'teamId': 110, 'serialNo': '1620004132', 'accredit': 1, 'tierId': 47, 'dongId': 22, 'stuNo': '25040062', 'id': 4986, 'classId': 496, 'gradeId': 129, 'arkRemark': None, 'stuId': 10830, 'stuName': '高兴航', 'arkName': '4386', 'gradeName': '2025级', 'areaName': '百仁校区', 'className': '导师8班', 'bindStu': 1, 'lockNo': '1240740548', 'areaId': 15, 'tierName': '四楼'}\n",
|
||||
"{'binding': 1, 'dongName': '教学楼', 'regionName': '北区', 'regionId': 59, 'stuName': '朱梓铭', 'teamName': '成都市泡桐树中学百仁分校', 'stuNo': '25040402', 'teamId': 110, 'accredit': 1, 'tierId': 47, 'dongId': 22, 'id': 4987, 'classId': 496, 'gradeId': 129, 'arkRemark': None, 'lockNo': '1240740036', 'stuId': 10831, 'arkName': '4387', 'gradeName': '2025级', 'serialNo': '3108396305', 'areaName': '百仁校区', 'className': '导师8班', 'bindStu': 1, 'areaId': 15, 'tierName': '四楼'}\n",
|
||||
"{'binding': 1, 'dongName': '教学楼', 'regionName': '北区', 'regionId': 59, 'teamName': '成都市泡桐树中学百仁分校', 'serialNo': '1617481892', 'stuNo': '25040046', 'teamId': 110, 'accredit': 1, 'tierId': 47, 'dongId': 22, 'classId': 496, 'gradeId': 129, 'arkRemark': None, 'id': 4988, 'stuName': '丁柳月', 'arkName': '4388', 'gradeName': '2025级', 'stuId': 10832, 'areaName': '百仁校区', 'className': '导师8班', 'bindStu': 1, 'lockNo': '1240740306', 'areaId': 15, 'tierName': '四楼'}\n",
|
||||
"{'binding': 1, 'dongName': '教学楼', 'regionName': '北区', 'regionId': 59, 'arkName': '4389', 'teamName': '成都市泡桐树中学百仁分校', 'stuNo': '25040346', 'teamId': 110, 'accredit': 1, 'tierId': 47, 'dongId': 22, 'classId': 496, 'gradeId': 129, 'arkRemark': None, 'id': 4989, 'lockNo': '1240740158', 'gradeName': '2025级', 'stuName': '易冉', 'serialNo': '0022683532', 'stuId': 10833, 'areaName': '百仁校区', 'className': '导师8班', 'bindStu': 1, 'areaId': 15, 'tierName': '四楼'}\n",
|
||||
"{'arkName': '4390', 'binding': 1, 'dongName': '教学楼', 'regionName': '北区', 'regionId': 59, 'stuNo': '25040129', 'teamName': '成都市泡桐树中学百仁分校', 'teamId': 110, 'accredit': 1, 'tierId': 47, 'dongId': 22, 'classId': 496, 'gradeId': 129, 'serialNo': '0022800236', 'arkRemark': None, 'id': 4990, 'lockNo': '1240740313', 'stuName': '李皓然', 'gradeName': '2025级', 'stuId': 10834, 'areaName': '百仁校区', 'className': '导师8班', 'bindStu': 1, 'areaId': 15, 'tierName': '四楼'}\n",
|
||||
"{'arkName': '4391', 'binding': 1, 'dongName': '教学楼', 'serialNo': '1620010708', 'regionName': '北区', 'regionId': 59, 'teamName': '成都市泡桐树中学百仁分校', 'teamId': 110, 'accredit': 1, 'tierId': 47, 'dongId': 22, 'stuNo': '25040280', 'stuName': '王籽淇', 'lockNo': '1240740032', 'classId': 496, 'gradeId': 129, 'id': 4991, 'arkRemark': None, 'gradeName': '2025级', 'stuId': 10835, 'areaName': '百仁校区', 'className': '导师8班', 'bindStu': 1, 'areaId': 15, 'tierName': '四楼'}\n",
|
||||
"{'arkName': '4392', 'binding': 1, 'dongName': '教学楼', 'regionName': '北区', 'regionId': 59, 'teamName': '成都市泡桐树中学百仁分校', 'stuName': '魏梓桐', 'teamId': 110, 'stuNo': '25040285', 'accredit': 1, 'id': 4992, 'tierId': 47, 'dongId': 22, 'serialNo': '1618999364', 'classId': 496, 'gradeId': 129, 'arkRemark': None, 'gradeName': '2025级', 'stuId': 10836, 'areaName': '百仁校区', 'className': '导师8班', 'bindStu': 1, 'lockNo': '1240740823', 'areaId': 15, 'tierName': '四楼'}\n",
|
||||
"{'binding': 1, 'dongName': '教学楼', 'arkName': '4393', 'stuNo': '25040408', 'regionName': '北区', 'regionId': 59, 'teamName': '成都市泡桐树中学百仁分校', 'teamId': 110, 'id': 4993, 'accredit': 1, 'tierId': 47, 'dongId': 22, 'classId': 496, 'gradeId': 129, 'arkRemark': None, 'serialNo': '1619574580', 'gradeName': '2025级', 'lockNo': '1240740509', 'stuId': 10837, 'areaName': '百仁校区', 'stuName': '李宸宇', 'className': '导师8班', 'bindStu': 1, 'areaId': 15, 'tierName': '四楼'}\n",
|
||||
"{'stuName': '卿朝梦', 'binding': 1, 'dongName': '教学楼', 'arkName': '4394', 'regionName': '北区', 'regionId': 59, 'teamName': '成都市泡桐树中学百仁分校', 'id': 4994, 'teamId': 110, 'accredit': 1, 'tierId': 47, 'dongId': 22, 'classId': 496, 'gradeId': 129, 'arkRemark': None, 'serialNo': '3108390209', 'gradeName': '2025级', 'stuId': 10838, 'stuNo': '25040215', 'areaName': '百仁校区', 'className': '导师8班', 'bindStu': 1, 'areaId': 15, 'tierName': '四楼', 'lockNo': '1240740804'}\n",
|
||||
"{'binding': 1, 'dongName': '教学楼', 'arkName': '4395', 'regionName': '北区', 'regionId': 59, 'teamName': '成都市泡桐树中学百仁分校', 'id': 4995, 'teamId': 110, 'accredit': 1, 'tierId': 47, 'lockNo': '1240740779', 'dongId': 22, 'serialNo': '3108413777', 'stuName': '房凌羽', 'classId': 496, 'gradeId': 129, 'arkRemark': None, 'gradeName': '2025级', 'stuId': 10839, 'areaName': '百仁校区', 'stuNo': '25040054', 'className': '导师8班', 'bindStu': 1, 'areaId': 15, 'tierName': '四楼'}\n",
|
||||
"{'binding': 1, 'dongName': '教学楼', 'arkName': '4396', 'stuName': '秦晞晨', 'regionName': '北区', 'regionId': 59, 'teamName': '成都市泡桐树中学百仁分校', 'teamId': 110, 'accredit': 1, 'tierId': 47, 'dongId': 22, 'id': 4996, 'classId': 496, 'gradeId': 129, 'arkRemark': None, 'gradeName': '2025级', 'stuNo': '25040213', 'serialNo': '3108466433', 'areaName': '百仁校区', 'className': '导师8班', 'lockNo': '1240740701', 'bindStu': 1, 'areaId': 15, 'stuId': 10840, 'tierName': '四楼'}\n",
|
||||
"{'stuName': '孙瑜汐', 'binding': 1, 'serialNo': '0022678380', 'dongName': '教学楼', 'arkName': '4397', 'regionName': '北区', 'regionId': 59, 'teamName': '成都市泡桐树中学百仁分校', 'teamId': 110, 'accredit': 1, 'tierId': 47, 'dongId': 22, 'id': 4997, 'classId': 496, 'gradeId': 129, 'arkRemark': None, 'lockNo': '1240740410', 'gradeName': '2025级', 'stuNo': '25040236', 'areaName': '百仁校区', 'className': '导师8班', 'bindStu': 1, 'areaId': 15, 'tierName': '四楼', 'stuId': 10841}\n",
|
||||
"{'stuNo': '25040190', 'lockNo': '1240740465', 'binding': 1, 'dongName': '教学楼', 'regionName': '北区', 'regionId': 59, 'arkName': '4398', 'serialNo': '1617656244', 'teamName': '成都市泡桐树中学百仁分校', 'teamId': 110, 'accredit': 1, 'tierId': 47, 'id': 4998, 'dongId': 22, 'classId': 496, 'gradeId': 129, 'arkRemark': None, 'stuName': '罗偲毅', 'gradeName': '2025级', 'areaName': '百仁校区', 'className': '导师8班', 'bindStu': 1, 'areaId': 15, 'tierName': '四楼', 'stuId': 10842}\n",
|
||||
"{'lockNo': '1240740366', 'binding': 1, 'serialNo': '1620560164', 'dongName': '教学楼', 'regionName': '北区', 'regionId': 59, 'arkName': '4399', 'teamName': '成都市泡桐树中学百仁分校', 'stuNo': '25040201', 'teamId': 110, 'accredit': 1, 'tierId': 47, 'id': 4999, 'dongId': 22, 'classId': 496, 'gradeId': 129, 'arkRemark': None, 'gradeName': '2025级', 'areaName': '百仁校区', 'className': '导师8班', 'bindStu': 1, 'areaId': 15, 'stuName': '吕奕辰', 'tierName': '四楼', 'stuId': 10843}\n",
|
||||
"{'binding': 1, 'dongName': '教学楼', 'serialNo': '1617658292', 'regionName': '北区', 'regionId': 59, 'arkName': '4400', 'teamName': '成都市泡桐树中学百仁分校', 'id': 5000, 'teamId': 110, 'accredit': 1, 'tierId': 47, 'dongId': 22, 'lockNo': '1240740154', 'classId': 496, 'gradeId': 129, 'arkRemark': None, 'gradeName': '2025级', 'stuNo': '25040331', 'stuName': '杨晨希', 'areaName': '百仁校区', 'stuId': 10844, 'className': '导师8班', 'bindStu': 1, 'areaId': 15, 'tierName': '四楼'}\n",
|
||||
"{'binding': 1, 'dongName': '教学楼', 'stuName': '代一辰', 'regionName': '北区', 'regionId': 59, 'arkName': '4401', 'id': 5001, 'teamName': '成都市泡桐树中学百仁分校', 'teamId': 110, 'stuNo': '25040041', 'accredit': 1, 'tierId': 47, 'dongId': 22, 'classId': 496, 'gradeId': 129, 'arkRemark': None, 'serialNo': '3108583025', 'lockNo': '1240740270', 'gradeName': '2025级', 'areaName': '百仁校区', 'stuId': 10845, 'className': '导师8班', 'bindStu': 1, 'areaId': 15, 'tierName': '四楼'}\n",
|
||||
"{'binding': 1, 'dongName': '教学楼', 'regionName': '北区', 'regionId': 59, 'id': 5002, 'teamName': '成都市泡桐树中学百仁分校', 'arkName': '4402', 'stuNo': '25040144', 'lockNo': '1240740017', 'teamId': 110, 'serialNo': '1618097188', 'accredit': 1, 'tierId': 47, 'dongId': 22, 'classId': 496, 'gradeId': 129, 'arkRemark': None, 'stuName': '李欣益', 'gradeName': '2025级', 'areaName': '百仁校区', 'className': '导师8班', 'stuId': 10846, 'bindStu': 1, 'areaId': 15, 'tierName': '四楼'}\n",
|
||||
"{'lockNo': '1240740483', 'binding': 1, 'dongName': '教学楼', 'regionName': '北区', 'regionId': 59, 'id': 5003, 'teamName': '成都市泡桐树中学百仁分校', 'arkName': '4403', 'stuName': '王路宁', 'teamId': 110, 'accredit': 1, 'tierId': 47, 'stuNo': '25040260', 'dongId': 22, 'classId': 496, 'gradeId': 129, 'arkRemark': None, 'gradeName': '2025级', 'areaName': '百仁校区', 'serialNo': '1618191700', 'className': '导师8班', 'bindStu': 1, 'stuId': 10847, 'areaId': 15, 'tierName': '四楼'}\n",
|
||||
"{'stuId': 10848, 'binding': 1, 'dongName': '教学楼', 'stuName': '孙歆辰', 'regionName': '北区', 'regionId': 59, 'teamName': '成都市泡桐树中学百仁分校', 'arkName': '4404', 'id': 5004, 'teamId': 110, 'serialNo': '3108567985', 'accredit': 1, 'tierId': 47, 'lockNo': '1240740317', 'dongId': 22, 'classId': 496, 'gradeId': 129, 'arkRemark': None, 'gradeName': '2025级', 'stuNo': '25040235', 'areaName': '百仁校区', 'className': '导师8班', 'bindStu': 1, 'areaId': 15, 'tierName': '四楼'}\n",
|
||||
"{'lockNo': '1240740861', 'stuId': 10849, 'binding': 1, 'dongName': '教学楼', 'regionName': '北区', 'regionId': 59, 'teamName': '成都市泡桐树中学百仁分校', 'arkName': '4405', 'id': 5005, 'teamId': 110, 'accredit': 1, 'tierId': 47, 'dongId': 22, 'serialNo': '1619001396', 'classId': 496, 'gradeId': 129, 'arkRemark': None, 'gradeName': '2025级', 'stuName': '王玥熙', 'stuNo': '25040276', 'areaName': '百仁校区', 'className': '导师8班', 'bindStu': 1, 'areaId': 15, 'tierName': '四楼'}\n",
|
||||
"{'lockNo': '1240740003', 'stuName': '张文锦', 'stuId': 10850, 'binding': 1, 'dongName': '教学楼', 'regionName': '北区', 'regionId': 59, 'teamName': '成都市泡桐树中学百仁分校', 'id': 5006, 'arkName': '4406', 'serialNo': '1620818532', 'teamId': 110, 'accredit': 1, 'tierId': 47, 'dongId': 22, 'classId': 496, 'gradeId': 129, 'arkRemark': None, 'gradeName': '2025级', 'stuNo': '25040375', 'areaName': '百仁校区', 'className': '导师8班', 'bindStu': 1, 'areaId': 15, 'tierName': '四楼'}\n",
|
||||
"{'stuId': 10851, 'binding': 1, 'dongName': '教学楼', 'regionName': '北区', 'regionId': 59, 'teamName': '成都市泡桐树中学百仁分校', 'id': 5007, 'arkName': '4407', 'teamId': 110, 'lockNo': '1240740579', 'stuNo': '25040165', 'accredit': 1, 'tierId': 47, 'dongId': 22, 'stuName': '林琦涵', 'classId': 496, 'gradeId': 129, 'arkRemark': None, 'gradeName': '2025级', 'serialNo': '1618733876', 'areaName': '百仁校区', 'className': '导师8班', 'bindStu': 1, 'areaId': 15, 'tierName': '四楼'}\n",
|
||||
"{'stuId': 10852, 'serialNo': '3108582385', 'binding': 1, 'stuName': '李文斌', 'dongName': '教学楼', 'id': 5008, 'regionName': '北区', 'regionId': 59, 'lockNo': '1240740939', 'teamName': '成都市泡桐树中学百仁分校', 'arkName': '4408', 'teamId': 110, 'stuNo': '25040140', 'accredit': 1, 'tierId': 47, 'dongId': 22, 'classId': 496, 'gradeId': 129, 'arkRemark': None, 'gradeName': '2025级', 'areaName': '百仁校区', 'className': '导师8班', 'bindStu': 1, 'areaId': 15, 'tierName': '四楼'}\n",
|
||||
"{'teamName': None, 'binding': 1, 'dongName': '教学楼', 'id': 5009, 'className': None, 'regionName': '北区', 'regionId': 59, 'classId': None, 'teamId': 110, 'arkName': '4409', 'tierId': 47, 'accredit': 0, 'dongId': 22, 'stuNo': None, 'gradeName': None, 'gradeId': None, 'lockNo': '1240740034', 'stuId': None, 'arkRemark': None, 'stuName': None, 'serialNo': None, 'areaName': '百仁校区', 'bindStu': 0, 'areaId': 15, 'tierName': '四楼'}\n",
|
||||
"{'teamName': None, 'lockNo': '1240740021', 'binding': 1, 'id': 5010, 'dongName': '教学楼', 'className': None, 'regionName': '北区', 'regionId': 59, 'arkName': '4410', 'classId': None, 'teamId': 110, 'tierId': 47, 'accredit': 0, 'dongId': 22, 'stuNo': None, 'gradeName': None, 'gradeId': None, 'stuId': None, 'arkRemark': None, 'stuName': None, 'serialNo': None, 'areaName': '百仁校区', 'bindStu': 0, 'areaId': 15, 'tierName': '四楼'}\n",
|
||||
"{'teamName': None, 'id': 5011, 'binding': 1, 'dongName': '教学楼', 'className': None, 'regionName': '北区', 'regionId': 59, 'classId': None, 'teamId': 110, 'tierId': 47, 'accredit': 0, 'dongId': 22, 'stuNo': None, 'gradeName': None, 'gradeId': None, 'stuId': None, 'arkRemark': None, 'stuName': None, 'lockNo': '1240740250', 'serialNo': None, 'arkName': '4411', 'areaName': '百仁校区', 'bindStu': 0, 'areaId': 15, 'tierName': '四楼'}\n",
|
||||
"{'teamName': None, 'binding': 1, 'dongName': '教学楼', 'className': None, 'regionName': '北区', 'regionId': 59, 'id': 5012, 'classId': None, 'teamId': 110, 'lockNo': '1240740458', 'tierId': 47, 'accredit': 0, 'dongId': 22, 'stuNo': None, 'gradeName': None, 'gradeId': None, 'stuId': None, 'arkRemark': None, 'stuName': None, 'serialNo': None, 'arkName': '4412', 'areaName': '百仁校区', 'bindStu': 0, 'areaId': 15, 'tierName': '四楼'}\n",
|
||||
"{'teamName': None, 'binding': 1, 'dongName': '教学楼', 'className': None, 'id': 5013, 'regionName': '北区', 'regionId': 59, 'classId': None, 'teamId': 110, 'tierId': 47, 'accredit': 0, 'dongId': 22, 'stuNo': None, 'gradeName': None, 'gradeId': None, 'stuId': None, 'arkRemark': None, 'stuName': None, 'lockNo': '1240740195', 'serialNo': None, 'arkName': '4413', 'areaName': '百仁校区', 'bindStu': 0, 'areaId': 15, 'tierName': '四楼'}\n",
|
||||
"{'teamName': None, 'binding': 1, 'dongName': '教学楼', 'className': None, 'id': 5014, 'regionName': '北区', 'regionId': 59, 'classId': None, 'teamId': 110, 'tierId': 47, 'accredit': 0, 'dongId': 22, 'stuNo': None, 'gradeName': None, 'gradeId': None, 'stuId': None, 'arkRemark': None, 'stuName': None, 'serialNo': None, 'arkName': '4414', 'areaName': '百仁校区', 'bindStu': 0, 'areaId': 15, 'tierName': '四楼', 'lockNo': '1240740706'}\n",
|
||||
"{'teamName': None, 'lockNo': '1240740761', 'binding': 1, 'dongName': '教学楼', 'className': None, 'id': 5015, 'regionName': '北区', 'regionId': 59, 'classId': None, 'teamId': 110, 'tierId': 47, 'accredit': 0, 'dongId': 22, 'stuNo': None, 'gradeName': None, 'gradeId': None, 'stuId': None, 'arkRemark': None, 'stuName': None, 'serialNo': None, 'arkName': '4415', 'areaName': '百仁校区', 'bindStu': 0, 'areaId': 15, 'tierName': '四楼'}\n",
|
||||
"{'teamName': None, 'id': 5016, 'binding': 1, 'dongName': '教学楼', 'className': None, 'regionName': '北区', 'regionId': 59, 'classId': None, 'teamId': 110, 'tierId': 47, 'accredit': 0, 'dongId': 22, 'stuNo': None, 'gradeName': None, 'gradeId': None, 'stuId': None, 'arkRemark': None, 'lockNo': '1240740454', 'stuName': None, 'serialNo': None, 'arkName': '4416', 'areaName': '百仁校区', 'bindStu': 0, 'areaId': 15, 'tierName': '四楼'}\n",
|
||||
"{'id': 5017, 'lockNo': '1240740225', 'binding': 1, 'dongName': '教学楼', 'serialNo': '3108614129', 'regionName': '北区', 'regionId': 59, 'stuName': '胡彬', 'teamName': '成都市泡桐树中学百仁分校', 'className': '导师1班', 'teamId': 110, 'accredit': 1, 'tierId': 47, 'dongId': 22, 'gradeId': 129, 'stuId': 10624, 'arkRemark': None, 'gradeName': '2025级', 'arkName': '4417', 'areaName': '百仁校区', 'bindStu': 1, 'classId': 489, 'areaId': 15, 'stuNo': '25040094', 'tierName': '四楼'}\n",
|
||||
"{'id': 5018, 'lockNo': '1240740122', 'binding': 1, 'dongName': '教学楼', 'regionName': '北区', 'regionId': 59, 'teamName': '成都市泡桐树中学百仁分校', 'stuNo': '25040005', 'className': '导师1班', 'teamId': 110, 'accredit': 1, 'tierId': 47, 'dongId': 22, 'gradeId': 129, 'arkRemark': None, 'stuId': 10625, 'gradeName': '2025级', 'serialNo': '1620424724', 'stuName': '毕馨洋', 'arkName': '4418', 'areaName': '百仁校区', 'bindStu': 1, 'classId': 489, 'areaId': 15, 'tierName': '四楼'}\n",
|
||||
"{'id': 5019, 'stuName': '唐艺城', 'binding': 1, 'dongName': '教学楼', 'regionName': '北区', 'regionId': 59, 'teamName': '成都市泡桐树中学百仁分校', 'className': '导师1班', 'stuNo': '25040246', 'teamId': 110, 'accredit': 1, 'tierId': 47, 'dongId': 22, 'lockNo': '1240740111', 'gradeId': 129, 'serialNo': '0022752988', 'arkRemark': None, 'stuId': 10626, 'gradeName': '2025级', 'areaName': '百仁校区', 'arkName': '4419', 'bindStu': 1, 'classId': 489, 'areaId': 15, 'tierName': '四楼'}\n",
|
||||
"{'lockNo': '1240740167', 'serialNo': '1617759268', 'id': 5020, 'binding': 1, 'dongName': '教学楼', 'regionName': '北区', 'regionId': 59, 'stuName': '何梓豪', 'teamName': '成都市泡桐树中学百仁分校', 'className': '导师1班', 'teamId': 110, 'stuNo': '25040088', 'accredit': 1, 'tierId': 47, 'dongId': 22, 'gradeId': 129, 'arkRemark': None, 'stuId': 10627, 'arkName': '4420', 'gradeName': '2025级', 'areaName': '百仁校区', 'bindStu': 1, 'classId': 489, 'areaId': 15, 'tierName': '四楼'}\n",
|
||||
"{'teamName': None, 'id': 5021, 'binding': 1, 'dongName': '教学楼', 'className': None, 'lockNo': '1240740080', 'regionName': '北区', 'regionId': 59, 'classId': None, 'teamId': 110, 'tierId': 47, 'accredit': 0, 'dongId': 22, 'stuNo': None, 'gradeName': None, 'gradeId': None, 'stuId': None, 'arkRemark': None, 'stuName': None, 'arkName': '4421', 'serialNo': None, 'areaName': '百仁校区', 'bindStu': 0, 'areaId': 15, 'tierName': '四楼'}\n",
|
||||
"{'teamName': None, 'id': 5022, 'binding': 1, 'dongName': '教学楼', 'className': None, 'regionName': '北区', 'regionId': 59, 'arkName': '4422', 'classId': None, 'teamId': 110, 'tierId': 47, 'accredit': 0, 'dongId': 22, 'stuNo': None, 'gradeName': None, 'gradeId': None, 'stuId': None, 'arkRemark': None, 'lockNo': '1240740214', 'stuName': None, 'serialNo': None, 'areaName': '百仁校区', 'bindStu': 0, 'areaId': 15, 'tierName': '四楼'}\n",
|
||||
"{'teamName': None, 'id': 5023, 'binding': 1, 'dongName': '教学楼', 'className': None, 'regionName': '北区', 'regionId': 59, 'arkName': '4423', 'classId': None, 'teamId': 110, 'tierId': 47, 'accredit': 0, 'dongId': 22, 'stuNo': None, 'gradeName': None, 'gradeId': None, 'stuId': None, 'arkRemark': None, 'stuName': None, 'serialNo': None, 'areaName': '百仁校区', 'bindStu': 0, 'areaId': 15, 'lockNo': '1240740725', 'tierName': '四楼'}\n",
|
||||
"{'teamName': None, 'binding': 1, 'dongName': '教学楼', 'className': None, 'regionName': '北区', 'regionId': 59, 'arkName': '4424', 'classId': None, 'teamId': 110, 'tierId': 47, 'accredit': 0, 'dongId': 22, 'stuNo': None, 'gradeName': None, 'gradeId': None, 'stuId': None, 'arkRemark': None, 'stuName': None, 'serialNo': None, 'areaName': '百仁校区', 'lockNo': '1240740305', 'id': 5024, 'bindStu': 0, 'areaId': 15, 'tierName': '四楼'}\n",
|
||||
"{'teamName': None, 'binding': 1, 'dongName': '教学楼', 'className': None, 'regionName': '北区', 'regionId': 59, 'classId': None, 'arkName': '4425', 'teamId': 110, 'tierId': 47, 'accredit': 0, 'dongId': 22, 'stuNo': None, 'gradeName': None, 'gradeId': None, 'lockNo': '1240740177', 'stuId': None, 'arkRemark': None, 'stuName': None, 'serialNo': None, 'areaName': '百仁校区', 'id': 5025, 'bindStu': 0, 'areaId': 15, 'tierName': '四楼'}\n",
|
||||
"{'teamName': None, 'lockNo': '1240740862', 'binding': 1, 'dongName': '教学楼', 'className': None, 'regionName': '北区', 'regionId': 59, 'classId': None, 'arkName': '4426', 'teamId': 110, 'tierId': 47, 'accredit': 0, 'dongId': 22, 'stuNo': None, 'gradeName': None, 'gradeId': None, 'stuId': None, 'arkRemark': None, 'stuName': None, 'serialNo': None, 'areaName': '百仁校区', 'id': 5026, 'bindStu': 0, 'areaId': 15, 'tierName': '四楼'}\n",
|
||||
"{'teamName': None, 'binding': 1, 'dongName': '教学楼', 'className': None, 'regionName': '北区', 'regionId': 59, 'classId': None, 'arkName': '4427', 'teamId': 110, 'tierId': 47, 'accredit': 0, 'dongId': 22, 'stuNo': None, 'gradeName': None, 'gradeId': None, 'stuId': None, 'arkRemark': None, 'stuName': None, 'serialNo': None, 'id': 5027, 'areaName': '百仁校区', 'lockNo': '1240740788', 'bindStu': 0, 'areaId': 15, 'tierName': '四楼'}\n",
|
||||
"{'teamName': None, 'lockNo': '1240740386', 'binding': 1, 'dongName': '教学楼', 'className': None, 'regionName': '北区', 'regionId': 59, 'classId': None, 'arkName': '4428', 'teamId': 110, 'tierId': 47, 'accredit': 0, 'dongId': 22, 'stuNo': None, 'gradeName': None, 'gradeId': None, 'stuId': None, 'arkRemark': None, 'stuName': None, 'serialNo': None, 'areaName': '百仁校区', 'bindStu': 0, 'areaId': 15, 'tierName': '四楼', 'id': 5028}\n",
|
||||
"{'binding': 1, 'dongName': '教学楼', 'stuName': '杨紫烔', 'regionName': '北区', 'regionId': 59, 'teamName': '成都市泡桐树中学百仁分校', 'className': '导师1班', 'arkName': '4429', 'stuNo': '25040341', 'teamId': 110, 'tierId': 47, 'accredit': 0, 'dongId': 22, 'stuId': 10628, 'gradeId': 129, 'arkRemark': None, 'gradeName': '2025级', 'areaName': '百仁校区', 'lockNo': '1240740402', 'bindStu': 1, 'classId': 489, 'serialNo': '3107628577', 'areaId': 15, 'tierName': '四楼', 'id': 5029}\n",
|
||||
"{'stuName': '唐欣垚', 'binding': 1, 'dongName': '教学楼', 'arkName': '4430', 'regionName': '北区', 'regionId': 59, 'lockNo': '1240740260', 'teamName': '成都市泡桐树中学百仁分校', 'className': '导师1班', 'stuNo': '25040244', 'teamId': 110, 'tierId': 47, 'accredit': 0, 'dongId': 22, 'stuId': 10629, 'gradeId': 129, 'arkRemark': None, 'serialNo': '0022718652', 'gradeName': '2025级', 'areaName': '百仁校区', 'bindStu': 1, 'classId': 489, 'areaId': 15, 'id': 5030, 'tierName': '四楼'}\n",
|
||||
"{'stuName': '罗钰涵', 'binding': 1, 'dongName': '教学楼', 'regionName': '北区', 'regionId': 59, 'arkName': '4431', 'teamName': '成都市泡桐树中学百仁分校', 'className': '导师1班', 'teamId': 110, 'tierId': 47, 'accredit': 0, 'dongId': 22, 'stuId': 10630, 'gradeId': 129, 'arkRemark': None, 'gradeName': '2025级', 'serialNo': '1618860740', 'areaName': '百仁校区', 'stuNo': '25040197', 'lockNo': '1240740249', 'bindStu': 1, 'classId': 489, 'id': 5031, 'areaId': 15, 'tierName': '四楼'}\n",
|
||||
"{'serialNo': '1620283940', 'binding': 1, 'dongName': '教学楼', 'regionName': '北区', 'regionId': 59, 'arkName': '4432', 'teamName': '成都市泡桐树中学百仁分校', 'className': '导师1班', 'teamId': 110, 'tierId': 47, 'accredit': 0, 'dongId': 22, 'stuName': '张雨嘉', 'stuId': 10631, 'gradeId': 129, 'arkRemark': None, 'gradeName': '2025级', 'id': 5032, 'stuNo': '25040379', 'areaName': '百仁校区', 'bindStu': 1, 'classId': 489, 'areaId': 15, 'tierName': '四楼', 'lockNo': '1240740605'}\n",
|
||||
"{'stuNo': '25040091', 'lockNo': '1240740187', 'stuName': '侯妤霏', 'binding': 1, 'dongName': '教学楼', 'regionName': '北区', 'regionId': 59, 'teamName': '成都市泡桐树中学百仁分校', 'className': '导师1班', 'teamId': 110, 'tierId': 47, 'accredit': 0, 'dongId': 22, 'serialNo': '3108598705', 'gradeId': 129, 'arkRemark': None, 'stuId': 10632, 'gradeName': '2025级', 'arkName': '4433', 'id': 5033, 'areaName': '百仁校区', 'bindStu': 1, 'classId': 489, 'areaId': 15, 'tierName': '四楼'}\n",
|
||||
"{'binding': 1, 'dongName': '教学楼', 'serialNo': '1618725668', 'regionName': '北区', 'regionId': 59, 'teamName': '成都市泡桐树中学百仁分校', 'className': '导师1班', 'teamId': 110, 'stuName': '魏佳禧', 'tierId': 47, 'accredit': 0, 'stuNo': '25040282', 'dongId': 22, 'gradeId': 129, 'arkRemark': None, 'stuId': 10633, 'gradeName': '2025级', 'id': 5034, 'arkName': '4434', 'areaName': '百仁校区', 'lockNo': '1240740325', 'bindStu': 1, 'classId': 489, 'areaId': 15, 'tierName': '四楼'}\n",
|
||||
"{'lockNo': '1240740186', 'stuName': '陈芯钰', 'binding': 1, 'dongName': '教学楼', 'regionName': '北区', 'regionId': 59, 'teamName': '成都市泡桐树中学百仁分校', 'className': '导师1班', 'stuNo': '25040026', 'serialNo': '1620157252', 'teamId': 110, 'accredit': 1, 'tierId': 47, 'dongId': 22, 'gradeId': 129, 'arkRemark': None, 'stuId': 10634, 'id': 5035, 'gradeName': '2025级', 'arkName': '4435', 'areaName': '百仁校区', 'bindStu': 1, 'classId': 489, 'areaId': 15, 'tierName': '四楼'}\n",
|
||||
"{'binding': 1, 'dongName': '教学楼', 'regionName': '北区', 'regionId': 59, 'teamName': '成都市泡桐树中学百仁分校', 'className': '导师1班', 'serialNo': '0022832364', 'teamId': 110, 'accredit': 1, 'tierId': 47, 'stuNo': '25040064', 'dongId': 22, 'gradeId': 129, 'stuName': '高雨晨', 'arkRemark': None, 'stuId': 10635, 'gradeName': '2025级', 'arkName': '4436', 'id': 5036, 'areaName': '百仁校区', 'lockNo': '1240740348', 'bindStu': 1, 'classId': 489, 'areaId': 15, 'tierName': '四楼'}\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"for item in 待解绑柜子:\n",
|
||||
" print(item)\n",
|
||||
" # if item[\"stuName\"]:\n",
|
||||
" # print(item[\"arkName\"])"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 12,
|
||||
"id": "cac55b38",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"76"
|
||||
]
|
||||
},
|
||||
"execution_count": 12,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"len(待解绑柜子)"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"id": "db21277a",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stderr",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"100%|██████████| 76/76 [00:56<00:00, 1.35it/s]\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"import tqdm\n",
|
||||
"with tqdm.tqdm(total=len(待解绑柜子)) as pbar:\n",
|
||||
" for item in 待解绑柜子:\n",
|
||||
" post(f\"https://band.hxzhxy.cn/lock/stu/remove?lockNo={item['lockNo']}&access_token={token}\",verify=False,proxies={\n",
|
||||
" \"http\": \"http://127.0.0.1:8080\",\n",
|
||||
" \"https\": \"http://127.0.0.1:8080\",\n",
|
||||
" })\n",
|
||||
" pbar.update(1)\n",
|
||||
" time.sleep(0.5)"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 13,
|
||||
"id": "1b0ecca4",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"{\"success\":true,\"msg\":\"操作成功\",\"code\":0,\"data\":\"授权成功\"}\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"for item in 待解绑柜子[:1]:\n",
|
||||
" tem = post(f\"https://band.hxzhxy.cn/lock/stu/remove?lockNo={item['lockNo']}&access_token={token}\").text\n",
|
||||
" print(tem)"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"id": "154e6fb2",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"\"\""
|
||||
]
|
||||
}
|
||||
],
|
||||
"metadata": {
|
||||
"kernelspec": {
|
||||
"display_name": "base",
|
||||
"language": "python",
|
||||
"name": "python3"
|
||||
},
|
||||
"language_info": {
|
||||
"codemirror_mode": {
|
||||
"name": "ipython",
|
||||
"version": 3
|
||||
},
|
||||
"file_extension": ".py",
|
||||
"mimetype": "text/x-python",
|
||||
"name": "python",
|
||||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython3",
|
||||
"version": "3.12.4"
|
||||
}
|
||||
},
|
||||
"nbformat": 4,
|
||||
"nbformat_minor": 5
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,55 @@
|
||||
{
|
||||
"cells": [
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 2,
|
||||
"id": "f48a87ec",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"from requests import get,post\n",
|
||||
"param = {\n",
|
||||
" \"username\": \"zhongwei\",\n",
|
||||
" \"password\": \"123456a\",\n",
|
||||
" \"client_id\": \"client\",\n",
|
||||
" \"grant_type\": \"password\",\n",
|
||||
" \"client_secret\": \"123456\",\n",
|
||||
"}\n",
|
||||
"# ip = \"http://192.168.0.244:8100\"\n",
|
||||
"ip = \"https://band.hxzhxy.cn\"\n",
|
||||
"data = get(url=f\"{ip}/oauth/token\", params=param).json()\n",
|
||||
"token = data[\"access_token\"]\n",
|
||||
"header = {\"Authorization\": f\"Bearer {token}\"}"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"id": "99143515",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": []
|
||||
}
|
||||
],
|
||||
"metadata": {
|
||||
"kernelspec": {
|
||||
"display_name": "base",
|
||||
"language": "python",
|
||||
"name": "python3"
|
||||
},
|
||||
"language_info": {
|
||||
"codemirror_mode": {
|
||||
"name": "ipython",
|
||||
"version": 3
|
||||
},
|
||||
"file_extension": ".py",
|
||||
"mimetype": "text/x-python",
|
||||
"name": "python",
|
||||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython3",
|
||||
"version": "3.12.4"
|
||||
}
|
||||
},
|
||||
"nbformat": 4,
|
||||
"nbformat_minor": 5
|
||||
}
|
||||
+4861
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,302 @@
|
||||
{
|
||||
"cells": [
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 14,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"import requests\n",
|
||||
"res = requests.get('https://api.weixin.qq.com/cgi-bin/token',params={'grant_type':'client_credential','appid':'wx7273bd391daeaa5e','secret':'3a29254970ea6734667c8dd9f89e03e2'})\n",
|
||||
"token = res.json()['access_token']"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 15,
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"{'access_token': '90_YsZlhxbTpcJlnuJpXIekDsYN93KqznAu-uyYjA9nS7JOd14qTV8HzYD2w8U6GXl1tL81_zU7oi6XqMdskDaDVfhZLR2t8wBLJRmgiHFU0GG8QiO4qUvEFKg9kbcYGHjACACKL',\n",
|
||||
" 'expires_in': 7200}"
|
||||
]
|
||||
},
|
||||
"execution_count": 15,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"res.json()"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 11,
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"'90_kxhA5L3rPQdG4OxzT8Oq2W-vNnjxUv8Xafaqxcl7l0oGpqMaczFA-CXkwskQaTfOyWVw9nXmR90ouKmGYAIWG80EgTSO7fFnnh57UfdUfiO1UKgG8z28YNkRtksDFOgAJAJLU'"
|
||||
]
|
||||
},
|
||||
"execution_count": 11,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"token"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 3,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"# requests.post(f\"https://api.weixin.qq.com/wxa/business/group/createid?access_token={token}\",json={\n",
|
||||
"# \"model_id\":\"mF-Q0Xm2du_uZtkVqdgo8A\",\n",
|
||||
"# \"group_name\":\"泡中\".encode('utf-8').hex()\n",
|
||||
"# }).json()"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 4,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"res = requests.post(f\"https://api.weixin.qq.com/wxa/getsnticket?access_token={token}\",json={\n",
|
||||
" \"sn\":\"20241121003\",\n",
|
||||
" \"model_id\":\"mF-Q0Xm2du_uZtkVqdgo8A\"\n",
|
||||
" }).json()\n",
|
||||
"snTicket = res[\"sn_ticket\"]"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 5,
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"'883d090a8523334f268b8a008d9d76e7'"
|
||||
]
|
||||
},
|
||||
"execution_count": 5,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"snTicket"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 3,
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"{'errcode': 0,\n",
|
||||
" 'errmsg': 'ok',\n",
|
||||
" 'device_list': [{'model_id': 'mF-Q0Xm2du_uZtkVqdgo8A',\n",
|
||||
" 'sn': '20241121018',\n",
|
||||
" 'errcode': 0},\n",
|
||||
" {'model_id': 'mF-Q0Xm2du_uZtkVqdgo8A', 'sn': '20241121019', 'errcode': 0},\n",
|
||||
" {'model_id': 'mF-Q0Xm2du_uZtkVqdgo8A', 'sn': '20241121020', 'errcode': 0}]}"
|
||||
]
|
||||
},
|
||||
"execution_count": 3,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"requests.post(f\"https://api.weixin.qq.com/wxa/business/group/adddevice?access_token={token}\",json={\n",
|
||||
" \"group_id\":'gs4PzpoaibE6XsOCEqhU14w',\n",
|
||||
" \"device_list\":[ \n",
|
||||
" {\n",
|
||||
" \"model_id\": \"mF-Q0Xm2du_uZtkVqdgo8A\",\n",
|
||||
" \"sn\": \"20241121018\",\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"model_id\": \"mF-Q0Xm2du_uZtkVqdgo8A\",\n",
|
||||
" \"sn\": \"20241121019\",\n",
|
||||
" },\n",
|
||||
" {\n",
|
||||
" \"model_id\": \"mF-Q0Xm2du_uZtkVqdgo8A\",\n",
|
||||
" \"sn\": \"20241121020\",\n",
|
||||
" }\n",
|
||||
" ],\n",
|
||||
"}).json()"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"{'errcode': 0,\n",
|
||||
" 'errmsg': 'ok',\n",
|
||||
" 'group_name': '泡中',\n",
|
||||
" 'device_list': [{'model_id': 'mF-Q0Xm2du_uZtkVqdgo8A', 'sn': '1813523'},\n",
|
||||
" {'model_id': 'mF-Q0Xm2du_uZtkVqdgo8A', 'sn': '20241121001'},\n",
|
||||
" {'model_id': 'mF-Q0Xm2du_uZtkVqdgo8A', 'sn': '20241121002'},\n",
|
||||
" {'model_id': 'mF-Q0Xm2du_uZtkVqdgo8A', 'sn': '20241121003'},\n",
|
||||
" {'model_id': 'mF-Q0Xm2du_uZtkVqdgo8A', 'sn': '20241121004'},\n",
|
||||
" {'model_id': 'mF-Q0Xm2du_uZtkVqdgo8A', 'sn': '20241121005'},\n",
|
||||
" {'model_id': 'mF-Q0Xm2du_uZtkVqdgo8A', 'sn': '20241121006'},\n",
|
||||
" {'model_id': 'mF-Q0Xm2du_uZtkVqdgo8A', 'sn': '20241121007'},\n",
|
||||
" {'model_id': 'mF-Q0Xm2du_uZtkVqdgo8A', 'sn': '20241121008'},\n",
|
||||
" {'model_id': 'mF-Q0Xm2du_uZtkVqdgo8A', 'sn': '20241121009'},\n",
|
||||
" {'model_id': 'mF-Q0Xm2du_uZtkVqdgo8A', 'sn': '20241121010'},\n",
|
||||
" {'model_id': 'mF-Q0Xm2du_uZtkVqdgo8A', 'sn': '20241121011'},\n",
|
||||
" {'model_id': 'mF-Q0Xm2du_uZtkVqdgo8A', 'sn': '20241121012'},\n",
|
||||
" {'model_id': 'mF-Q0Xm2du_uZtkVqdgo8A', 'sn': '20241121013'},\n",
|
||||
" {'model_id': 'mF-Q0Xm2du_uZtkVqdgo8A', 'sn': '20241121014'},\n",
|
||||
" {'model_id': 'mF-Q0Xm2du_uZtkVqdgo8A', 'sn': '20241121015'},\n",
|
||||
" {'model_id': 'mF-Q0Xm2du_uZtkVqdgo8A', 'sn': '20241121016'},\n",
|
||||
" {'model_id': 'mF-Q0Xm2du_uZtkVqdgo8A', 'sn': '20241121017'},\n",
|
||||
" {'model_id': 'mF-Q0Xm2du_uZtkVqdgo8A', 'sn': '20241121018'},\n",
|
||||
" {'model_id': 'mF-Q0Xm2du_uZtkVqdgo8A', 'sn': '20241121019'},\n",
|
||||
" {'model_id': 'mF-Q0Xm2du_uZtkVqdgo8A', 'sn': '20241121020'}],\n",
|
||||
" 'model_id': 'mF-Q0Xm2du_uZtkVqdgo8A',\n",
|
||||
" 'model_type': '校园电话',\n",
|
||||
" 'max_device_count': 50}"
|
||||
]
|
||||
},
|
||||
"execution_count": 20,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"requests.post(f\"https://api.weixin.qq.com/wxa/business/group/getinfo?access_token={token}\",json={\n",
|
||||
" \"group_id\":'gs4PzpoaibE6XsOCEqhU14w',\n",
|
||||
"}).json()"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 17,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"import requests\n",
|
||||
"res = requests.get('https://api.weixin.qq.com/cgi-bin/token',params={'grant_type':'client_credential','appid':'wx9a2bab77ffb917d6','secret':'106eaa4c37dd4b7fe8fde7da3fb35be5'})\n",
|
||||
"token = res.json()['access_token']"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 19,
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"{'errcode': 0, 'errmsg': 'ok'}\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"#设备注册\n",
|
||||
"res = requests.post(f\"https://api.weixin.qq.com/wxa/business/runtime/adddevice?access_token={token}\",json={\n",
|
||||
" \"product_id\":7344,\n",
|
||||
" \"device_id_list\":['20241121001','20241121002','20241121003','20241121004','20241121005','20241121006','20241121007','20241121008','20241121009','20241121010','20241121011','20241121012','20241121013','20241121014','20241121015','20241121016','20241121017','20241121018','20241121019','20241121020'],\n",
|
||||
" \"model_name\":'SP033-KC-WB-TR5-G'\n",
|
||||
"}).json()\n",
|
||||
"print(res)"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 13,
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"{'errcode': 48001, 'errmsg': 'api unauthorized rid: 67cabfeb-54d3be5f-005627d1'}\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"print(res)"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"ename": "",
|
||||
"evalue": "",
|
||||
"output_type": "error",
|
||||
"traceback": [
|
||||
"\u001b[1;31m在当前单元格或上一个单元格中执行代码时 Kernel 崩溃。\n",
|
||||
"\u001b[1;31m请查看单元格中的代码,以确定故障的可能原因。\n",
|
||||
"\u001b[1;31m单击<a href='https://aka.ms/vscodeJupyterKernelCrash'>此处</a>了解详细信息。\n",
|
||||
"\u001b[1;31m有关更多详细信息,请查看 Jupyter <a href='command:jupyter.viewOutput'>log</a>。"
|
||||
]
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"with open(\"./tt005.png\",\"rb\") as f:\n",
|
||||
" data = f.read()"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"requests.post(f\"{ip}/\")"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": []
|
||||
}
|
||||
],
|
||||
"metadata": {
|
||||
"kernelspec": {
|
||||
"display_name": "base",
|
||||
"language": "python",
|
||||
"name": "python3"
|
||||
},
|
||||
"language_info": {
|
||||
"codemirror_mode": {
|
||||
"name": "ipython",
|
||||
"version": 3
|
||||
},
|
||||
"file_extension": ".py",
|
||||
"mimetype": "text/x-python",
|
||||
"name": "python",
|
||||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython3",
|
||||
"version": "3.12.4"
|
||||
},
|
||||
"orig_nbformat": 4
|
||||
},
|
||||
"nbformat": 4,
|
||||
"nbformat_minor": 2
|
||||
}
|
||||
Reference in New Issue
Block a user