nonebot-plugin-l4d2-server 0.5.1__py3-none-any.whl → 0.5.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- LICENSE +674 -674
- README.md +373 -359
- nonebot_plugin_l4d2_server/__init__.py +13 -13
- nonebot_plugin_l4d2_server/command.py +232 -232
- nonebot_plugin_l4d2_server/config.py +209 -210
- nonebot_plugin_l4d2_server/data/L4D2/image/template/anne.html +60 -60
- nonebot_plugin_l4d2_server/data/L4D2/image/template/fingerprint.svg +15 -15
- nonebot_plugin_l4d2_server/data/L4D2/image/template/help.html +233 -233
- nonebot_plugin_l4d2_server/data/L4D2/image/template/help_dack.html +231 -231
- nonebot_plugin_l4d2_server/data/L4D2/image/template/ip.html +48 -48
- nonebot_plugin_l4d2_server/data/L4D2/image/template/l.svg +9 -9
- nonebot_plugin_l4d2_server/l4d2_anne/__init__.py +251 -251
- nonebot_plugin_l4d2_server/l4d2_anne/analysis.py +51 -51
- nonebot_plugin_l4d2_server/l4d2_anne/anne_telecom.py +75 -75
- nonebot_plugin_l4d2_server/l4d2_anne/server.py +65 -65
- nonebot_plugin_l4d2_server/l4d2_anne/startand.py +17 -17
- nonebot_plugin_l4d2_server/l4d2_data/__init__.py +91 -91
- nonebot_plugin_l4d2_server/l4d2_data/config.py +17 -17
- nonebot_plugin_l4d2_server/l4d2_data/database.py +0 -0
- nonebot_plugin_l4d2_server/l4d2_data/players.py +87 -87
- nonebot_plugin_l4d2_server/l4d2_data/serverip.py +32 -32
- nonebot_plugin_l4d2_server/l4d2_file/__init__.py +122 -122
- nonebot_plugin_l4d2_server/l4d2_file/ayromote.py +56 -56
- nonebot_plugin_l4d2_server/l4d2_file/remote.py +63 -63
- nonebot_plugin_l4d2_server/l4d2_image/__init__.py +103 -103
- nonebot_plugin_l4d2_server/l4d2_image/download.py +101 -101
- nonebot_plugin_l4d2_server/l4d2_image/htmlimg.py +32 -32
- nonebot_plugin_l4d2_server/l4d2_image/image.py +292 -0
- nonebot_plugin_l4d2_server/l4d2_image/send_image_tool.py +32 -32
- nonebot_plugin_l4d2_server/l4d2_image/steam.py +83 -83
- nonebot_plugin_l4d2_server/l4d2_image/vtfs.py +40 -40
- nonebot_plugin_l4d2_server/l4d2_queries/__init__.py +114 -114
- nonebot_plugin_l4d2_server/l4d2_queries/api.py +43 -43
- nonebot_plugin_l4d2_server/l4d2_queries/ohter.py +35 -35
- nonebot_plugin_l4d2_server/l4d2_queries/qqgroup.py +288 -288
- nonebot_plugin_l4d2_server/l4d2_server/__init__.py +61 -61
- nonebot_plugin_l4d2_server/l4d2_server/index.py +0 -0
- nonebot_plugin_l4d2_server/l4d2_server/rcon.py +28 -28
- nonebot_plugin_l4d2_server/l4d2_server/workshop.py +50 -50
- nonebot_plugin_l4d2_server/l4d2_update/__init__.py +143 -0
- nonebot_plugin_l4d2_server/l4d2_update/draw_update_log.py +41 -0
- nonebot_plugin_l4d2_server/l4d2_update/restart.py +67 -0
- nonebot_plugin_l4d2_server/l4d2_update/texture2d/art.png +0 -0
- nonebot_plugin_l4d2_server/l4d2_update/texture2d/bento.png +0 -0
- nonebot_plugin_l4d2_server/l4d2_update/texture2d/bug.png +0 -0
- nonebot_plugin_l4d2_server/l4d2_update/texture2d/feat.png +0 -0
- nonebot_plugin_l4d2_server/l4d2_update/texture2d/log_title.png +0 -0
- nonebot_plugin_l4d2_server/l4d2_update/texture2d/other.png +0 -0
- nonebot_plugin_l4d2_server/l4d2_update/texture2d/zap.png +0 -0
- nonebot_plugin_l4d2_server/l4d2_update/update.py +65 -0
- nonebot_plugin_l4d2_server/l4d2_web/web.py +234 -252
- nonebot_plugin_l4d2_server/l4d2_web/webUI.py +241 -245
- nonebot_plugin_l4d2_server/message.py +58 -58
- nonebot_plugin_l4d2_server/rule.py +15 -0
- nonebot_plugin_l4d2_server/seach.py +33 -33
- nonebot_plugin_l4d2_server/txt_to_img.py +64 -64
- nonebot_plugin_l4d2_server/utils.py +297 -272
- {nonebot_plugin_l4d2_server-0.5.1.dist-info → nonebot_plugin_l4d2_server-0.5.3.dist-info}/LICENSE +674 -674
- {nonebot_plugin_l4d2_server-0.5.1.dist-info → nonebot_plugin_l4d2_server-0.5.3.dist-info}/METADATA +19 -4
- nonebot_plugin_l4d2_server-0.5.3.dist-info/RECORD +68 -0
- {nonebot_plugin_l4d2_server-0.5.1.dist-info → nonebot_plugin_l4d2_server-0.5.3.dist-info}/WHEEL +1 -1
- nonebot_plugin_l4d2_server/chrome.py +0 -45
- nonebot_plugin_l4d2_server-0.5.1.dist-info/RECORD +0 -54
{nonebot_plugin_l4d2_server-0.5.1.dist-info → nonebot_plugin_l4d2_server-0.5.3.dist-info}/METADATA
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: nonebot-plugin-l4d2-server
|
3
|
-
Version: 0.5.
|
3
|
+
Version: 0.5.3
|
4
4
|
Summary: L4D2 server related operations plugin for NoneBot2
|
5
5
|
Home-page: https://github.com/Agnes4m/nonebot_plugin_l4d2_server
|
6
6
|
License: GPLv3
|
@@ -24,7 +24,8 @@ Requires-Dist: aiohttp (>=3.8.3,<4.0.0)
|
|
24
24
|
Requires-Dist: amis-python (>=1.0.6,<2.0.0)
|
25
25
|
Requires-Dist: asyncio (>=3.4.3)
|
26
26
|
Requires-Dist: beautifulsoup4 (>=4.8.0)
|
27
|
-
Requires-Dist:
|
27
|
+
Requires-Dist: gitpython (>=3.1.27)
|
28
|
+
Requires-Dist: h11 (>0.11.0)
|
28
29
|
Requires-Dist: httpx (>=0.23.3,<0.24.0)
|
29
30
|
Requires-Dist: jieba (>=0.42.1,<0.43.0)
|
30
31
|
Requires-Dist: jinja2 (>=3.0.0)
|
@@ -82,13 +83,20 @@ _✨Nonebot & Left 4 Dead 2 server操作✨_
|
|
82
83
|
|
83
84
|
</div>
|
84
85
|
|
86
|
+
## 顶置公告
|
85
87
|
|
88
|
+
0.5.0破坏式更新,不再使用env配置,采用web控制台管理
|
89
|
+
|
90
|
+
同时不再支持远程查询,改为只允许本地查询
|
91
|
+
|
92
|
+
文档暂时没时间更新ozr
|
86
93
|
|
87
94
|
## 主要功能
|
88
95
|
|
89
96
|
- 求生服务器-本地多路径操作(传地图)
|
90
97
|
- 批量查询指定ip服务器状态和玩家
|
91
98
|
- 创意工坊下载和喷漆制作
|
99
|
+
- web控制台
|
92
100
|
- [求生电信服anne](https://github.com/fantasylidong/CompetitiveWithAnne)[查询~](https://sb.trygek.com/l4d_stats/ranking/index.php)
|
93
101
|
|
94
102
|
|
@@ -157,7 +165,14 @@ bot所在文件夹下
|
|
157
165
|
<details>
|
158
166
|
<summary>展开/收起</summary>
|
159
167
|
|
160
|
-
|
168
|
+
|
169
|
+
### 0.5.3--2022.5.07
|
170
|
+
|
171
|
+
- 新增`l4更新`和`l4重启`
|
172
|
+
- 注释无效项(三方图查询)
|
173
|
+
- 可以通过git clone 直接加载插件
|
174
|
+
|
175
|
+
### 0.5.2--2022.5.01
|
161
176
|
|
162
177
|
- 解决了main和dev分支的一个严重bug(也许没解决
|
163
178
|
- 本地化,更好的添加,删除远程分支
|
@@ -403,6 +418,6 @@ bot所在文件夹下
|
|
403
418
|
- [可爱小Q](https://github.com/MeetWq/mybot)- 服务器图片参考
|
404
419
|
- [群聊学习](https://github.com/CMHopeSunshine/nonebot-plugin-learning-chat)- web控制台参考
|
405
420
|
- [日向麻麻](https://github.com/Special-Week)- 代码优化参考
|
406
|
-
- [gsuid](https://github.com/KimigaiiWuyi/GenshinUID)- readme和wiki
|
421
|
+
- [gsuid](https://github.com/KimigaiiWuyi/GenshinUID)- readme和wiki的格式参考,以及3.1版本的更新和重启
|
407
422
|
- 呆呆- 提供三方地图的详细数据
|
408
423
|
- ArcPav -积极反馈bug,提供改进思路
|
@@ -0,0 +1,68 @@
|
|
1
|
+
LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
2
|
+
README.md,sha256=jXjbsu1db4zcZcvIE34gjLCAevQoI_7zZJJtzLKRsmY,11200
|
3
|
+
nonebot_plugin_l4d2_server/__init__.py,sha256=nTX9DMygNCbm5f-VpF7R3NtwhNKmu3mqg55Ei5mIQxM,17449
|
4
|
+
nonebot_plugin_l4d2_server/command.py,sha256=Zqzp-QjsT9Wwt1niwtPJypYJVCZkeU-3YSMorhZ3VcU,8619
|
5
|
+
nonebot_plugin_l4d2_server/config.py,sha256=nSAYebvlaoVaM_aCNkmG3Ls0LvwvZFVTYu38tJeYQiM,6069
|
6
|
+
nonebot_plugin_l4d2_server/data/L4D2/image/head/head.png,sha256=Z72PEvp7xF1DZcLDeuWlg2_g6JAfHxtisptWn6BYGN8,158357
|
7
|
+
nonebot_plugin_l4d2_server/data/L4D2/image/header/logo.png,sha256=1KhQNsx7zsCKGHmyIZ65dP9npkKzo7Im-Aafyi5_lhc,631630
|
8
|
+
nonebot_plugin_l4d2_server/data/L4D2/image/header/player1.jpg,sha256=2A_llIi9YVhJs9JOMuF36by7Ewc7P7qOgQS8t5jemNw,405369
|
9
|
+
nonebot_plugin_l4d2_server/data/L4D2/image/template/anne.html,sha256=8JOUXoWdulhoP2Axy_omuSDafbduKDZ9Y8Rz2VZWTso,1590
|
10
|
+
nonebot_plugin_l4d2_server/data/L4D2/image/template/back.png,sha256=tFXhpNiFnbTZiEF9Z2O2EjxCxcrhsFJH4po8Cb7SnIg,242997
|
11
|
+
nonebot_plugin_l4d2_server/data/L4D2/image/template/fingerprint.svg,sha256=qtbdXb-5o62YQU2-LR4S9b7-ddKC1UOpJG4w8xDrytw,2135
|
12
|
+
nonebot_plugin_l4d2_server/data/L4D2/image/template/help.html,sha256=dN_QlQLLgPeiPgdRD2jjQKKIEUSGr8J_QtHmNm8vMHg,6135
|
13
|
+
nonebot_plugin_l4d2_server/data/L4D2/image/template/help_dack.html,sha256=fpguTXl--5ivFsJIMgaTjt8BS2BK-0fW2BYC66aEuuA,6170
|
14
|
+
nonebot_plugin_l4d2_server/data/L4D2/image/template/ip.html,sha256=iKVCwXeTSrvtiAbhAv6_spUKb2NMZhUnnHAVZkaz3D4,1523
|
15
|
+
nonebot_plugin_l4d2_server/data/L4D2/image/template/l.svg,sha256=I9iOeq-XqnWDECC7GqApV6Of3Tm26xmmYdchvXw2tAE,5506
|
16
|
+
nonebot_plugin_l4d2_server/data/L4D2/image/template/m.svg,sha256=rnZwx2X1dXPiKFQvccBZqspDZzLUin5ylesv-rRy1lo,2408
|
17
|
+
nonebot_plugin_l4d2_server/data/L4D2/image/template/vue.css,sha256=2sGjCFrR-3tFMB_x7l4K6k40tZ5JVzhWqD759cagYBA,7874
|
18
|
+
nonebot_plugin_l4d2_server/data/L4D2/image/template/w.svg,sha256=Rvem0xacHSByxPz2ihLkgbJLtXqEKllzzJRz-Q5wN5Q,486
|
19
|
+
nonebot_plugin_l4d2_server/l4d2_anne/__init__.py,sha256=_9JaVuO2XBXQ-YT-2OR3-piXDqPpiF1mYCd_CYJ3r6k,8723
|
20
|
+
nonebot_plugin_l4d2_server/l4d2_anne/analysis.py,sha256=oh3WWeGSvZOrMtN0kOhAF-22Ar1VkR7Nu-XnFX30k1c,1610
|
21
|
+
nonebot_plugin_l4d2_server/l4d2_anne/anne_telecom.py,sha256=vbFSovW0s5AOJLVbDTcht3iFuUa8Hr72U1UVbZQO_tk,3010
|
22
|
+
nonebot_plugin_l4d2_server/l4d2_anne/server.py,sha256=QyfksmpUKjYCLFswAo-Q-S5UngcZE1rSNbTwfpMeI7I,1683
|
23
|
+
nonebot_plugin_l4d2_server/l4d2_anne/startand.py,sha256=4XmghR4l4rSw34rLFT5RmzwoTu1vxFFAq8PLsicB7_M,359
|
24
|
+
nonebot_plugin_l4d2_server/l4d2_data/__init__.py,sha256=-Gqzs0WmYT0atAmm25hYszgFi2Zp1dlVQtF_CNoNchc,3241
|
25
|
+
nonebot_plugin_l4d2_server/l4d2_data/config.py,sha256=RTPayMBDU2f4losEwAZ9BPKbJNDpmmEeheskWVIueI8,468
|
26
|
+
nonebot_plugin_l4d2_server/l4d2_data/database.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
27
|
+
nonebot_plugin_l4d2_server/l4d2_data/players.py,sha256=kaXcBA8RO5eVTicb6up9pwdE-T2afkc1NykYFQ80poI,3221
|
28
|
+
nonebot_plugin_l4d2_server/l4d2_data/serverip.py,sha256=c78UuSOMLaOBvfIayKo7xiQELYj8UMvM1A91D1E2f0s,1284
|
29
|
+
nonebot_plugin_l4d2_server/l4d2_file/__init__.py,sha256=3gVBmEBVb7kVtjeTN7oxWbG8MxbkRtDBE9KNpoVAnhc,4075
|
30
|
+
nonebot_plugin_l4d2_server/l4d2_file/ayromote.py,sha256=oL_S53zWBc6VL_YKCnR6r3OQySI0_eOGeNmfaqrKLks,1906
|
31
|
+
nonebot_plugin_l4d2_server/l4d2_file/remote.py,sha256=uAcCbDAq9RIookmHl41PfQTpHy0RWMCejx55jCbnTM8,2688
|
32
|
+
nonebot_plugin_l4d2_server/l4d2_image/__init__.py,sha256=fAjFLMkl7Kl4_2pE_wSi74IVzr5XsxLD3H_fPK3DgmM,4036
|
33
|
+
nonebot_plugin_l4d2_server/l4d2_image/download.py,sha256=mdz3Q60peiq0B2oK3IOjDSe32guVH4gBM1Xwrrc4-rI,3996
|
34
|
+
nonebot_plugin_l4d2_server/l4d2_image/htmlimg.py,sha256=DKG2ENh1HOCY7P41hIJTGGLizsTwR_nf05DR3vFWxRQ,1038
|
35
|
+
nonebot_plugin_l4d2_server/l4d2_image/image.py,sha256=L6AWkyAq-UJTlT6yvPbdkFScZg0g1E9hNwUkrTsDImE,9524
|
36
|
+
nonebot_plugin_l4d2_server/l4d2_image/send_image_tool.py,sha256=bXZKD6NhVr4FVJd5YY9Fcg5qDeA5_kQEQvv--CAO57Y,936
|
37
|
+
nonebot_plugin_l4d2_server/l4d2_image/steam.py,sha256=_jsz96aw0ie67gE0Y_15qsjqW4tVe4IdC-xg3H0l21c,3799
|
38
|
+
nonebot_plugin_l4d2_server/l4d2_image/vtfs.py,sha256=MawVMrGOrFZ7b8F_XGAMJPvd-grKfbRamDZAWxFXclQ,1387
|
39
|
+
nonebot_plugin_l4d2_server/l4d2_queries/__init__.py,sha256=fS6Kdi2M_U-epbIMyiPRdnhcnb57RydnUHkJMam0ZVc,3791
|
40
|
+
nonebot_plugin_l4d2_server/l4d2_queries/api.py,sha256=r-pnXh2ZGyR84M4k5OzYNIWcWD0lq8FmFk6hn7NoQFk,1157
|
41
|
+
nonebot_plugin_l4d2_server/l4d2_queries/ohter.py,sha256=ssq1GKBWa5zrbytmdFwNxr9bSiRyrDTn2aoeb0tGoP0,1191
|
42
|
+
nonebot_plugin_l4d2_server/l4d2_queries/qqgroup.py,sha256=l7gEwy_2M134Gu4U__1mwJH7mx7bQazYMPQvf_E9fJs,10826
|
43
|
+
nonebot_plugin_l4d2_server/l4d2_server/__init__.py,sha256=AKufLXRnvzLi31aJLURqZenXjeOf0xRftBwHSugMasE,1615
|
44
|
+
nonebot_plugin_l4d2_server/l4d2_server/index.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
45
|
+
nonebot_plugin_l4d2_server/l4d2_server/rcon.py,sha256=WmIt-hCTKC0swceO-hxeBHeKS_Srxtzfvpqay7O6RdE,1237
|
46
|
+
nonebot_plugin_l4d2_server/l4d2_server/workshop.py,sha256=MLEGqU_m9zDDQVppExCJAKe_G340QL-VrPkJpXTkpOM,1359
|
47
|
+
nonebot_plugin_l4d2_server/l4d2_update/__init__.py,sha256=gGt7DNbaxHmSVtC37YVr__aSjLuF-Pk6dPLS_twztHg,4093
|
48
|
+
nonebot_plugin_l4d2_server/l4d2_update/draw_update_log.py,sha256=pTz1GJ6dZ8fzjheJQCWmNDvekxQKJBrx-_4wJwqHzRI,1179
|
49
|
+
nonebot_plugin_l4d2_server/l4d2_update/restart.py,sha256=4xj6awHhhzX_Jh4hWWUpWPQf0bKFXWrPg0w_lhPCNko,2024
|
50
|
+
nonebot_plugin_l4d2_server/l4d2_update/texture2d/art.png,sha256=QAvaSduHhaq1Fd43JIIHAqcjJajcVsKhIuOF3Nnajdw,3872
|
51
|
+
nonebot_plugin_l4d2_server/l4d2_update/texture2d/bento.png,sha256=OgW84QrjAsLVn5iDGPR4p9cc1cucY2L9YZa8awvKhEQ,4448
|
52
|
+
nonebot_plugin_l4d2_server/l4d2_update/texture2d/bug.png,sha256=u1OwznUVim5jitwekswgVVGRFrkBM7jFx7nGM4bfYCY,3575
|
53
|
+
nonebot_plugin_l4d2_server/l4d2_update/texture2d/feat.png,sha256=D7lUdbvyme0Wup2yZPDltuVLm7TsreLKtHljUSgAEYc,3760
|
54
|
+
nonebot_plugin_l4d2_server/l4d2_update/texture2d/log_title.png,sha256=KstYz0Ff4rcAPg0sycjvfrJIw_2uG1-QlWSYiTuFC0o,137862
|
55
|
+
nonebot_plugin_l4d2_server/l4d2_update/texture2d/other.png,sha256=BgIQtvI1pXgswQGVQkCCr5fZf2qr4uPb25AR9mWDR2g,3028
|
56
|
+
nonebot_plugin_l4d2_server/l4d2_update/texture2d/zap.png,sha256=Ydg07QYQLeCOzeH7L9Nm_qv37R-mJuawttMhhhkdkHU,2346
|
57
|
+
nonebot_plugin_l4d2_server/l4d2_update/update.py,sha256=br_K16vBYlTafF_u_aiRAbb8FBJsYLLgmV-_x9KKePo,1968
|
58
|
+
nonebot_plugin_l4d2_server/l4d2_web/web.py,sha256=qMWySCsJCHoAZJHWhkqq6qfmNLxAUhSpnAhcArVXWv0,8542
|
59
|
+
nonebot_plugin_l4d2_server/l4d2_web/webUI.py,sha256=9u8zhT9pocdVXpH15_vZR8qvvGbWjYv2mYso_uJYBww,14148
|
60
|
+
nonebot_plugin_l4d2_server/message.py,sha256=vTrTyXWF4fCEH-IlmvKeGv-J7oCkbrXhFwsAHFcivtg,1620
|
61
|
+
nonebot_plugin_l4d2_server/rule.py,sha256=j1EEh9PgvFmbq5fQhOonA-3t13wnRM6R44Jkp8hCNQw,337
|
62
|
+
nonebot_plugin_l4d2_server/seach.py,sha256=Box5QORfNfpMYDdwNeR309dP1wtivBOxcgrxdJSduSw,992
|
63
|
+
nonebot_plugin_l4d2_server/txt_to_img.py,sha256=hzwLVGoOjLAQb3Br43vu1IWW23DuxKW6yTuxMCLhWoY,2133
|
64
|
+
nonebot_plugin_l4d2_server/utils.py,sha256=DmL09vlLLmoWVtX9C-E32npRFHGd4Q20LU3CZfTPoN4,8624
|
65
|
+
nonebot_plugin_l4d2_server-0.5.3.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
66
|
+
nonebot_plugin_l4d2_server-0.5.3.dist-info/METADATA,sha256=ufFA8VbxjNEEaBJ2Cmd0XGOi-YwLMdsOo-n_zfW6JVw,13263
|
67
|
+
nonebot_plugin_l4d2_server-0.5.3.dist-info/WHEEL,sha256=7Z8_27uaHI_UZAc4Uox4PpBhQ9Y5_modZXWMxtUi4NU,88
|
68
|
+
nonebot_plugin_l4d2_server-0.5.3.dist-info/RECORD,,
|
@@ -1,45 +0,0 @@
|
|
1
|
-
try:
|
2
|
-
from selenium import webdriver
|
3
|
-
from selenium.webdriver.chrome.options import Options
|
4
|
-
from selenium.webdriver.common.by import By
|
5
|
-
except:
|
6
|
-
pass
|
7
|
-
url = 'https://server.trygek.com/index.php'
|
8
|
-
|
9
|
-
|
10
|
-
def get_anne_server():
|
11
|
-
chrome_options = Options()
|
12
|
-
chrome_options.add_argument('--no-sandbox') #“–no-sandbox”参数是让Chrome在root权限下跑
|
13
|
-
chrome_options.add_argument('--ignore-certificate-errors')
|
14
|
-
chrome_options.add_argument('--disable-dev-shm-usage')
|
15
|
-
chrome_options.add_argument('-ignore-certificate-errors')
|
16
|
-
chrome_options.add_argument('--headless') #“–headless”参数是不用打开图形界面
|
17
|
-
driver = webdriver.Chrome(chrome_options=chrome_options)
|
18
|
-
print('启动成功')
|
19
|
-
# browser.get(url)
|
20
|
-
# browser.add_cookie({'name':'token','value':token_value})
|
21
|
-
driver.get(url)
|
22
|
-
print('网页已打开,正在浏览')
|
23
|
-
i = 0
|
24
|
-
n = 1
|
25
|
-
msg = ''
|
26
|
-
while i <= 40:
|
27
|
-
try:
|
28
|
-
i += 1
|
29
|
-
mes =''
|
30
|
-
xpath1 = '//*[@id="host_{}"]'.format(i)
|
31
|
-
xpath2 = '/html/body/main/div[3]/div[5]/div/div/table/tbody/tr[{}]/td[5]'.format(n)
|
32
|
-
xpath3 = '//*[@id="players_{}"]'.format(i)
|
33
|
-
xpath4 = '//*[@id="map_{}"]'.format(i)
|
34
|
-
xpath = [xpath1,xpath2,xpath3,xpath4]
|
35
|
-
names = ['服务器名称','服务器ip','玩家','地图']
|
36
|
-
for x in range(5):
|
37
|
-
name:str = driver.find_element(By.XPATH,xpath[x-1]).text
|
38
|
-
mes += names[x-1] + '' + name + '\n'
|
39
|
-
msg += mes
|
40
|
-
msg += '--------------------\n'
|
41
|
-
n += 2
|
42
|
-
except :
|
43
|
-
continue
|
44
|
-
return msg
|
45
|
-
|
@@ -1,54 +0,0 @@
|
|
1
|
-
LICENSE,sha256=IwGE9guuL-ryRPEKi6wFPI_zOhg7zDZbTYuHbSt_SAk,35823
|
2
|
-
nonebot_plugin_l4d2_server/__init__.py,sha256=NbZRuthh2hbe7BxlzVuuUoRr2QrflvmGY-P77w-1f9c,17425
|
3
|
-
nonebot_plugin_l4d2_server/chrome.py,sha256=ygAd63eymWe_dj93W0ByfgDDf3oKUyBeDmdq3DOE50Y,1715
|
4
|
-
nonebot_plugin_l4d2_server/command.py,sha256=TgmSpj_IqHAl59DkanERXghTNeJqL36zQJzoqoaET_g,8851
|
5
|
-
nonebot_plugin_l4d2_server/config.py,sha256=pLehG0D7cK8gZ2vQKLe1xkTn24huP9wCFlD78DN_byw,6339
|
6
|
-
nonebot_plugin_l4d2_server/data/L4D2/image/head/head.png,sha256=Z72PEvp7xF1DZcLDeuWlg2_g6JAfHxtisptWn6BYGN8,158357
|
7
|
-
nonebot_plugin_l4d2_server/data/L4D2/image/header/logo.png,sha256=1KhQNsx7zsCKGHmyIZ65dP9npkKzo7Im-Aafyi5_lhc,631630
|
8
|
-
nonebot_plugin_l4d2_server/data/L4D2/image/header/player1.jpg,sha256=2A_llIi9YVhJs9JOMuF36by7Ewc7P7qOgQS8t5jemNw,405369
|
9
|
-
nonebot_plugin_l4d2_server/data/L4D2/image/template/anne.html,sha256=wqhALCoPPuZfE4NLkxvCVPYtNTBwthX7g7c0Q3X68dg,1650
|
10
|
-
nonebot_plugin_l4d2_server/data/L4D2/image/template/back.png,sha256=tFXhpNiFnbTZiEF9Z2O2EjxCxcrhsFJH4po8Cb7SnIg,242997
|
11
|
-
nonebot_plugin_l4d2_server/data/L4D2/image/template/fingerprint.svg,sha256=AwLa0b5WQjuatlNF4ob1sTJk2ZG3bi4S46AgoNbs10U,2150
|
12
|
-
nonebot_plugin_l4d2_server/data/L4D2/image/template/help.html,sha256=Qkbe9LdDvRTXn595UY7BKOMA97KHyNCWMIc6rZkEXko,6368
|
13
|
-
nonebot_plugin_l4d2_server/data/L4D2/image/template/help_dack.html,sha256=icuqkeqw2ecD9q-W2euERBnKqukysm_sz0ev90Fhw7w,6401
|
14
|
-
nonebot_plugin_l4d2_server/data/L4D2/image/template/ip.html,sha256=iqULoBVdA98NKtuCs-MlEs5fv_iWb-3cKJz1OzvzqZY,1571
|
15
|
-
nonebot_plugin_l4d2_server/data/L4D2/image/template/l.svg,sha256=AmEa9QFkxj-oedGm98747ag2zoRRjAtAMNDv5QFMsNI,5515
|
16
|
-
nonebot_plugin_l4d2_server/data/L4D2/image/template/m.svg,sha256=rnZwx2X1dXPiKFQvccBZqspDZzLUin5ylesv-rRy1lo,2408
|
17
|
-
nonebot_plugin_l4d2_server/data/L4D2/image/template/vue.css,sha256=2sGjCFrR-3tFMB_x7l4K6k40tZ5JVzhWqD759cagYBA,7874
|
18
|
-
nonebot_plugin_l4d2_server/data/L4D2/image/template/w.svg,sha256=Rvem0xacHSByxPz2ihLkgbJLtXqEKllzzJRz-Q5wN5Q,486
|
19
|
-
nonebot_plugin_l4d2_server/l4d2_anne/__init__.py,sha256=CKEQt68xJ485hihbKj9fZt9bzNSJTRqbByJYhDdH1lU,8974
|
20
|
-
nonebot_plugin_l4d2_server/l4d2_anne/analysis.py,sha256=efK36wNqpF9_tLjHBn6YovYRoGynnSLM-m3O_u02vwU,1661
|
21
|
-
nonebot_plugin_l4d2_server/l4d2_anne/anne_telecom.py,sha256=poAlUAgTvDryAtSa0CpQo5kawtJbddpWyt2JtIxzcgI,3085
|
22
|
-
nonebot_plugin_l4d2_server/l4d2_anne/server.py,sha256=4QYHFazqh6gR0NuyzkIzXWMIVvgW6tZ5uNP_VufVels,1748
|
23
|
-
nonebot_plugin_l4d2_server/l4d2_anne/startand.py,sha256=3veOrk5BUDvLG_Iuj0k6OT7EB0f9IIk655dLlSFla3w,376
|
24
|
-
nonebot_plugin_l4d2_server/l4d2_data/__init__.py,sha256=1JDSuJ1mCF_zIZZfvD-O1JZCgQ2ju_EH0Y3k6oLr2j4,3332
|
25
|
-
nonebot_plugin_l4d2_server/l4d2_data/config.py,sha256=1s0VUTX6Mx4aAOCym0bexNl3E-SHIQfmuv6-5qP1ymQ,485
|
26
|
-
nonebot_plugin_l4d2_server/l4d2_data/players.py,sha256=USNwhbilbllbW8AP5HK-QTITA-ndip5AMxvEIfuYtwE,3308
|
27
|
-
nonebot_plugin_l4d2_server/l4d2_data/serverip.py,sha256=AKZbr1YZkXRBUX1QNQyPfvhF3am0sY7Y9Ed_EAHlg4c,1316
|
28
|
-
nonebot_plugin_l4d2_server/l4d2_file/__init__.py,sha256=RRf4zVtwbpSFujhOOv-1z4sHeFipV7xVQo17wbHCA_o,4197
|
29
|
-
nonebot_plugin_l4d2_server/l4d2_file/ayromote.py,sha256=LJS3V3U9zbBYbH9heQxb9HqFhQhYCl10b87q8PAxOyY,1962
|
30
|
-
nonebot_plugin_l4d2_server/l4d2_file/remote.py,sha256=-5XfzSI_6JFVZczfmgMTQw6KCi3jyD3pv2ltHa9lqew,2751
|
31
|
-
nonebot_plugin_l4d2_server/l4d2_image/__init__.py,sha256=25axJ_4m6MmvRKyb9dR5OMOHJwKy_Vah3c4h7Zy6PMs,4139
|
32
|
-
nonebot_plugin_l4d2_server/l4d2_image/download.py,sha256=n1YQNMeTslbLMLbkRVfRFX6mipmxfI8HWQ7sG8bVXDI,4097
|
33
|
-
nonebot_plugin_l4d2_server/l4d2_image/htmlimg.py,sha256=bz1oJn-CUoPuBktJxGLrm1FsuMoehlt17pcoYVhIrVs,1070
|
34
|
-
nonebot_plugin_l4d2_server/l4d2_image/send_image_tool.py,sha256=DKliVudSSeec4Gl5Deji04-P4_bbSIvXWorEIPQpKDc,968
|
35
|
-
nonebot_plugin_l4d2_server/l4d2_image/steam.py,sha256=g7DY7d7aqdIHeJinpzAsedgGXF_a_F2Q55l9MIj7TyA,3882
|
36
|
-
nonebot_plugin_l4d2_server/l4d2_image/vtfs.py,sha256=2WuXE_4_5eVNExzYCTgZnKZrcE6CxqnDpjpKEA_FHCE,1427
|
37
|
-
nonebot_plugin_l4d2_server/l4d2_queries/__init__.py,sha256=PWSioDDsaTIcPIv-kEPJIi3GaNlEL13yed2RndWb9f8,3905
|
38
|
-
nonebot_plugin_l4d2_server/l4d2_queries/api.py,sha256=TSffOq0_L6AVjGgF_Cjn8YzsFpetEiqfKCbZFiZ9KtM,1152
|
39
|
-
nonebot_plugin_l4d2_server/l4d2_queries/ohter.py,sha256=BetZ8NnPyhhzoVmCVmi5atU2Gqnez4PA5BuYhElC0lI,1226
|
40
|
-
nonebot_plugin_l4d2_server/l4d2_queries/qqgroup.py,sha256=Se5ue-Ni3yb3-kqTCli_pqoF1SsOM-HYyIAz-gzLsnE,11114
|
41
|
-
nonebot_plugin_l4d2_server/l4d2_server/__init__.py,sha256=mp3Za6jJ-V92ChXRhl3k4D1tMTY4dqHdXgMzdWutccc,1676
|
42
|
-
nonebot_plugin_l4d2_server/l4d2_server/rcon.py,sha256=7_6Gq6wlBo0KwvGREiayuJ4Dpw6o1P-SI00ZwVS3AHY,1265
|
43
|
-
nonebot_plugin_l4d2_server/l4d2_server/workshop.py,sha256=ZpWnWJ7EABNpDu86Rzoqu3tWoABanprIEcmej1zUT1A,1409
|
44
|
-
nonebot_plugin_l4d2_server/l4d2_web/web.py,sha256=JWjFMULslnfUiRlf1PJ0ICS50BB_mfC8v9lfzJ-wyww,9369
|
45
|
-
nonebot_plugin_l4d2_server/l4d2_web/webUI.py,sha256=M_Tdkz0OPiKJXyS0M4c8wq2pBAP5J-XoYLlwaI6hVeM,14485
|
46
|
-
nonebot_plugin_l4d2_server/message.py,sha256=x_ts0HaW3SNOma-baEG0oaeozKE5Nh_fybnRH6VE8i0,1678
|
47
|
-
nonebot_plugin_l4d2_server/seach.py,sha256=dsusYogKH9pGeLxZz9BTheQwtJ3wAO3tfbePYdcaIuA,1025
|
48
|
-
nonebot_plugin_l4d2_server/txt_to_img.py,sha256=0286FuArH2cpescescoO5I1YdzYnqKxiTEcrt7U8I-0,2197
|
49
|
-
nonebot_plugin_l4d2_server/utils.py,sha256=uayE0HfxDFrEopcInMqb5J341bUho-aba_2449or0fc,8307
|
50
|
-
README.md,sha256=DXchLHMf9jeDLut-8wSFhT5BChwWW-XdzVyvErGDTKg,11188
|
51
|
-
nonebot_plugin_l4d2_server-0.5.1.dist-info/LICENSE,sha256=IwGE9guuL-ryRPEKi6wFPI_zOhg7zDZbTYuHbSt_SAk,35823
|
52
|
-
nonebot_plugin_l4d2_server-0.5.1.dist-info/METADATA,sha256=Ja-G8OylQB8ri-XcQ81g2ANmPVj8Dtxi20QpsvZIMDg,12865
|
53
|
-
nonebot_plugin_l4d2_server-0.5.1.dist-info/WHEEL,sha256=vVCvjcmxuUltf8cYhJ0sJMRDLr1XsPuxEId8YDzbyCY,88
|
54
|
-
nonebot_plugin_l4d2_server-0.5.1.dist-info/RECORD,,
|