💄 更好看的排行榜样式文件

This commit is contained in:
Chen_Xu233
2024-06-27 22:48:39 +08:00
parent d3253726b1
commit 566f5c95d6
9 changed files with 231 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 MiB

BIN
tests/screenshot-webkit.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 MiB

10
tests/temple_render.py Normal file
View File

@ -0,0 +1,10 @@
from playwright.sync_api import sync_playwright
with sync_playwright() as p:
for browser_type in [p.chromium, p.firefox, p.webkit]:
browser = browser_type.launch(headless=True)
page = browser.new_page()
page.goto('file:///H:/Bot/%E7%8E%B0%E5%BD%B9Bot/mybot/src/nonebot_plugin_dialectlist/nonebot_plugin_dialectlist/temple/rank_temple.html')
page.screenshot(path=f'screenshot-{browser_type.name}.png',full_page=True)
print(page.title())
browser.close()