nonebot-plugin-splatoon3-schedule 2.0.0__tar.gz → 2.0.2__tar.gz
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.
- {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.2}/PKG-INFO +3 -4
- {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.2}/nonebot_plugin_splatoon3_schedule/data/data_source.py +6 -2
- {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.2}/nonebot_plugin_splatoon3_schedule/utils/utils.py +8 -9
- {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.2}/pyproject.toml +12 -9
- {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.2}/LICENSE +0 -0
- {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.2}/README.md +0 -0
- {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.2}/nonebot_plugin_splatoon3_schedule/__init__.py +0 -0
- {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.2}/nonebot_plugin_splatoon3_schedule/check.py +0 -0
- {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.2}/nonebot_plugin_splatoon3_schedule/config.py +0 -0
- {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.2}/nonebot_plugin_splatoon3_schedule/data/__init__.py +0 -0
- {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.2}/nonebot_plugin_splatoon3_schedule/data/db_control.py +0 -0
- {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.2}/nonebot_plugin_splatoon3_schedule/data/db_image.py +0 -0
- {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.2}/nonebot_plugin_splatoon3_schedule/data/static_data_getter.py +0 -0
- {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.2}/nonebot_plugin_splatoon3_schedule/image/__init__.py +0 -0
- {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.2}/nonebot_plugin_splatoon3_schedule/image/image.py +0 -0
- {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.2}/nonebot_plugin_splatoon3_schedule/image/image_processer.py +0 -0
- {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.2}/nonebot_plugin_splatoon3_schedule/image/image_processer_tools.py +0 -0
- {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.2}/nonebot_plugin_splatoon3_schedule/resource/ImageData/10024.png +0 -0
- {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.2}/nonebot_plugin_splatoon3_schedule/resource/ImageData/10025.ico +0 -0
- {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.2}/nonebot_plugin_splatoon3_schedule/resource/ImageData/10026.png +0 -0
- {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.2}/nonebot_plugin_splatoon3_schedule/resource/ImageData/AREA.png +0 -0
- {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.2}/nonebot_plugin_splatoon3_schedule/resource/ImageData/CLAM.png +0 -0
- {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.2}/nonebot_plugin_splatoon3_schedule/resource/ImageData/Cohozuna.png +0 -0
- {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.2}/nonebot_plugin_splatoon3_schedule/resource/ImageData/GOAL.png +0 -0
- {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.2}/nonebot_plugin_splatoon3_schedule/resource/ImageData/Horrorboros.png +0 -0
- {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.2}/nonebot_plugin_splatoon3_schedule/resource/ImageData/LOFT.png +0 -0
- {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.2}/nonebot_plugin_splatoon3_schedule/resource/ImageData/Megalodontia.png +0 -0
- {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.2}/nonebot_plugin_splatoon3_schedule/resource/ImageData/Random.png +0 -0
- {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.2}/nonebot_plugin_splatoon3_schedule/resource/ImageData/Ranked-Challenge.png +0 -0
- {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.2}/nonebot_plugin_splatoon3_schedule/resource/ImageData/Ranked-Open.png +0 -0
- {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.2}/nonebot_plugin_splatoon3_schedule/resource/ImageData/Ranked.png +0 -0
- {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.2}/nonebot_plugin_splatoon3_schedule/resource/ImageData/Regular.png +0 -0
- {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.2}/nonebot_plugin_splatoon3_schedule/resource/ImageData/TURF_WAR.png +0 -0
- {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.2}/nonebot_plugin_splatoon3_schedule/resource/ImageData/Triumvirate.png +0 -0
- {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.2}/nonebot_plugin_splatoon3_schedule/resource/ImageData/X.png +0 -0
- {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.2}/nonebot_plugin_splatoon3_schedule/resource/ImageData/bg.png +0 -0
- {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.2}/nonebot_plugin_splatoon3_schedule/resource/ImageData/bg2.png +0 -0
- {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.2}/nonebot_plugin_splatoon3_schedule/resource/ImageData/bg3.png +0 -0
- {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.2}/nonebot_plugin_splatoon3_schedule/resource/ImageData/big_run.png +0 -0
- {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.2}/nonebot_plugin_splatoon3_schedule/resource/ImageData/black-texture.png +0 -0
- {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.2}/nonebot_plugin_splatoon3_schedule/resource/ImageData/cat_paw_mask.png +0 -0
- {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.2}/nonebot_plugin_splatoon3_schedule/resource/ImageData/coop.png +0 -0
- {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.2}/nonebot_plugin_splatoon3_schedule/resource/ImageData/coop_bg2.png +0 -0
- {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.2}/nonebot_plugin_splatoon3_schedule/resource/ImageData/coop_fish.png +0 -0
- {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.2}/nonebot_plugin_splatoon3_schedule/resource/ImageData/coop_mask.png +0 -0
- {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.2}/nonebot_plugin_splatoon3_schedule/resource/ImageData/event_bg.png +0 -0
- {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.2}/nonebot_plugin_splatoon3_schedule/resource/ImageData/festival_mask.png +0 -0
- {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.2}/nonebot_plugin_splatoon3_schedule/resource/ImageData/fight_mask.png +0 -0
- {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.2}/nonebot_plugin_splatoon3_schedule/resource/ImageData/filleted_corner.png +0 -0
- {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.2}/nonebot_plugin_splatoon3_schedule/resource/ImageData/private.png +0 -0
- {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.2}/nonebot_plugin_splatoon3_schedule/resource/ImageData/swim_ring.png +0 -0
- {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.2}/nonebot_plugin_splatoon3_schedule/resource/ImageData/team_coop.png +0 -0
- {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.2}/nonebot_plugin_splatoon3_schedule/resource/ImageData/time_head_bg.png +0 -0
- {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.2}/nonebot_plugin_splatoon3_schedule/resource/db/image.db +0 -0
- {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.2}/nonebot_plugin_splatoon3_schedule/resource/font/Splatfont1.otf +0 -0
- {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.2}/nonebot_plugin_splatoon3_schedule/resource/font/Splatfont2.otf +0 -0
- {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.2}/nonebot_plugin_splatoon3_schedule/resource/font/cn.ttf +0 -0
- {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.2}/nonebot_plugin_splatoon3_schedule/resource/font/common.otf +0 -0
- {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.2}/nonebot_plugin_splatoon3_schedule/util.py +0 -0
- {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.2}/nonebot_plugin_splatoon3_schedule/utils/__init__.py +0 -0
- {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.2}/nonebot_plugin_splatoon3_schedule/utils/bot.py +0 -0
- {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.2}/nonebot_plugin_splatoon3_schedule/utils/dataClass.py +0 -0
- {nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.2}/nonebot_plugin_splatoon3_schedule/utils/translation.py +0 -0
{nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.2}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: nonebot-plugin-splatoon3-schedule
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.2
|
|
4
4
|
Summary: 一个基于nonebot2框架的splatoon3游戏日程查询插件
|
|
5
5
|
License-File: LICENSE
|
|
6
6
|
Author: cypas
|
|
@@ -15,8 +15,8 @@ Classifier: Programming Language :: Python :: 3.13
|
|
|
15
15
|
Classifier: Programming Language :: Python :: 3.14
|
|
16
16
|
Requires-Dist: Pillow (>=11.3.0,<12.0.0)
|
|
17
17
|
Requires-Dist: beautifulsoup4 (>=4.12.2,<5.0.0)
|
|
18
|
-
Requires-Dist:
|
|
19
|
-
Requires-Dist: httpx (>=0.
|
|
18
|
+
Requires-Dist: cloudscraper (>=1.2.71,<2.0.0)
|
|
19
|
+
Requires-Dist: httpx (>=0.28.1,<0.29.0)
|
|
20
20
|
Requires-Dist: nonebot-adapter-kaiheila (>=0.3.4,<0.4.0)
|
|
21
21
|
Requires-Dist: nonebot-adapter-onebot (>=2.4.6,<3.0.0)
|
|
22
22
|
Requires-Dist: nonebot-adapter-qq (>=1.6.6,<2.0.0)
|
|
@@ -25,7 +25,6 @@ Requires-Dist: nonebot-plugin-apscheduler (>=0.5.0,<0.6.0)
|
|
|
25
25
|
Requires-Dist: nonebot2 (>=2.4.4,<3.0.0)
|
|
26
26
|
Requires-Dist: playwright (>=1.40.0,<2.0.0)
|
|
27
27
|
Requires-Dist: pydantic (>=1.0.0,<3.0.0,!=2.5.0,!=2.5.1)
|
|
28
|
-
Requires-Dist: urllib3 (==1.26.16)
|
|
29
28
|
Description-Content-Type: text/markdown
|
|
30
29
|
|
|
31
30
|
<div align="center">
|
|
@@ -275,12 +275,16 @@ async def init_browser() -> Browser:
|
|
|
275
275
|
"""初始化 browser 并唤起"""
|
|
276
276
|
global _browser
|
|
277
277
|
p = await async_playwright().start()
|
|
278
|
+
browser_args = [
|
|
279
|
+
# 设置默认字体
|
|
280
|
+
'--default-font-family="Noto Sans CJK"',
|
|
281
|
+
]
|
|
278
282
|
if proxy_address:
|
|
279
283
|
proxies = {"server": "http://{}".format(proxy_address)}
|
|
280
284
|
# 代理访问
|
|
281
|
-
_browser = await p.chromium.launch(proxy=proxies)
|
|
285
|
+
_browser = await p.chromium.launch(proxy=proxies, args=browser_args)
|
|
282
286
|
else:
|
|
283
|
-
_browser = await p.chromium.launch()
|
|
287
|
+
_browser = await p.chromium.launch(args=browser_args)
|
|
284
288
|
return _browser
|
|
285
289
|
|
|
286
290
|
|
|
@@ -2,7 +2,7 @@ import datetime
|
|
|
2
2
|
import os
|
|
3
3
|
import random
|
|
4
4
|
|
|
5
|
-
import
|
|
5
|
+
import cloudscraper
|
|
6
6
|
import httpx
|
|
7
7
|
from PIL import ImageFont
|
|
8
8
|
from httpx import Response
|
|
@@ -16,10 +16,9 @@ DIR_RESOURCE = (
|
|
|
16
16
|
time_format_ymdh = "%Y-%m-%dT%H"
|
|
17
17
|
HTTP_TIME_OUT = 10.0 # 请求超时,秒
|
|
18
18
|
proxy_address = plugin_config.splatoon3_proxy_address
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
proxies = None
|
|
19
|
+
|
|
20
|
+
proxies = f"http://{proxy_address}" if proxy_address else None
|
|
21
|
+
|
|
23
22
|
|
|
24
23
|
# 背景 rgb颜色
|
|
25
24
|
dict_bg_rgb = {
|
|
@@ -42,9 +41,9 @@ dict_bg_rgb = {
|
|
|
42
41
|
def cf_http_get(url: str):
|
|
43
42
|
"""cf get"""
|
|
44
43
|
# 实例化一个create_scraper对象
|
|
45
|
-
scraper =
|
|
44
|
+
scraper = cloudscraper.create_scraper()
|
|
46
45
|
# 请求报错,可以加上时延
|
|
47
|
-
# scraper =
|
|
46
|
+
# scraper = cloudscraper.create_scraper(delay = 6)
|
|
48
47
|
if proxy_address:
|
|
49
48
|
cf_proxies = {
|
|
50
49
|
"http": "http://{}".format(proxy_address),
|
|
@@ -60,14 +59,14 @@ def cf_http_get(url: str):
|
|
|
60
59
|
|
|
61
60
|
async def async_http_get(url: str) -> Response:
|
|
62
61
|
"""async http_get"""
|
|
63
|
-
async with httpx.AsyncClient(
|
|
62
|
+
async with httpx.AsyncClient(proxy=proxies) as client:
|
|
64
63
|
response = await client.get(url, timeout=HTTP_TIME_OUT)
|
|
65
64
|
return response
|
|
66
65
|
|
|
67
66
|
|
|
68
67
|
def http_get(url: str) -> Response:
|
|
69
68
|
"""http_get"""
|
|
70
|
-
response = httpx.get(url,
|
|
69
|
+
response = httpx.get(url, proxy=proxies, timeout=HTTP_TIME_OUT)
|
|
71
70
|
return response
|
|
72
71
|
|
|
73
72
|
|
{nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.2}/pyproject.toml
RENAMED
|
@@ -1,27 +1,30 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "nonebot-plugin-splatoon3-schedule"
|
|
3
|
-
version = "2.0.
|
|
3
|
+
version = "2.0.2"
|
|
4
4
|
description = "一个基于nonebot2框架的splatoon3游戏日程查询插件"
|
|
5
5
|
authors = ["cypas <ayano05@outlook.com>"]
|
|
6
6
|
readme = "README.md"
|
|
7
|
-
packages = [{include = "nonebot_plugin_splatoon3_schedule"}]
|
|
7
|
+
packages = [{ include = "nonebot_plugin_splatoon3_schedule" }]
|
|
8
8
|
|
|
9
9
|
[tool.poetry.dependencies]
|
|
10
10
|
python = "^3.9"
|
|
11
|
-
beautifulsoup4="^4.12.2"
|
|
12
|
-
|
|
13
|
-
httpx="^0.
|
|
14
|
-
nonebot2="^2.4.4"
|
|
11
|
+
beautifulsoup4 = "^4.12.2"
|
|
12
|
+
cloudscraper = "^1.2.71"
|
|
13
|
+
httpx = "^0.28.1"
|
|
14
|
+
nonebot2 = "^2.4.4"
|
|
15
15
|
pydantic = ">=1.0.0,<3.0.0,!=2.5.0,!=2.5.1"
|
|
16
|
-
Pillow="^11.3.0"
|
|
17
|
-
urllib3="1.26.16"
|
|
16
|
+
Pillow = "^11.3.0"
|
|
18
17
|
playwright = "^1.40.0"
|
|
19
18
|
nonebot-adapter-onebot = "^2.4.6"
|
|
20
|
-
nonebot-adapter-telegram= "^0.1.0b20"
|
|
19
|
+
nonebot-adapter-telegram = "^0.1.0b20"
|
|
21
20
|
nonebot-adapter-kaiheila = "^0.3.4"
|
|
22
21
|
nonebot-adapter-qq = "^1.6.6"
|
|
23
22
|
nonebot-plugin-apscheduler = "^0.5.0"
|
|
24
23
|
|
|
24
|
+
[tool.poetry.group.test.dependencies]
|
|
25
|
+
nonebug = "^0.3.5"
|
|
26
|
+
pytest-asyncio = "^0.23.5"
|
|
27
|
+
|
|
25
28
|
[build-system]
|
|
26
29
|
requires = ["poetry-core"]
|
|
27
30
|
build-backend = "poetry.core.masonry.api"
|
|
File without changes
|
{nonebot_plugin_splatoon3_schedule-2.0.0 → nonebot_plugin_splatoon3_schedule-2.0.2}/README.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|