This commit is contained in:
gfdgd_xi 2023-01-22 15:54:33 +08:00
parent 686d60e082
commit 5ef9534d33
2 changed files with 3 additions and 3 deletions

BIN
favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

View File

@ -1,5 +1,6 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
import json import json
import requests
import datetime import datetime
html = f"""<!DOCTYPE html> html = f"""<!DOCTYPE html>
<head> <head>
@ -14,10 +15,9 @@ html = f"""<!DOCTYPE html>
<h1>Wine 容器列表来自 Wine 运行器</h1> <h1>Wine 容器列表来自 Wine 运行器</h1>
<h3>更新时间{datetime.datetime.now().year}{datetime.datetime.now().month}{datetime.datetime.now().day} {datetime.datetime.now().hour}:{datetime.datetime.now().minute}:{datetime.datetime.now().second}</h3> <h3>更新时间{datetime.datetime.now().year}{datetime.datetime.now().month}{datetime.datetime.now().day} {datetime.datetime.now().hour}:{datetime.datetime.now().minute}:{datetime.datetime.now().second}</h3>
""" """
with open(f"information.json", "r") as file: lists = requests.get("https://code.gitlink.org.cn/gfdgd_xi/wine-mirrors/raw/branch/master/information.json").json()
lists = json.loads(file.read())
for i in lists: for i in lists:
html += f" <p><a href='{i[1]}'>{i[0]}</a></p>" html += f" <p><a href='https://code.gitlink.org.cn/gfdgd_xi/wine-mirrors/raw/branch/master/{i[1]}'>{i[0]}</a></p>\n"
html += f""" <p><a href='https://gitee.com/gfdgd-xi-org/deep-wine-runner/stargazers'><img src='https://gitee.com/gfdgd-xi-org/deep-wine-runner/badge/star.svg?theme=dark' alt='star'></img></a><a href='https://gitee.com/gfdgd-xi-org/deep-wine-runner/members'><img src='https://gitee.com/gfdgd-xi-org/deep-wine-runner/badge/fork.svg?theme=dark' alt='fork'></img></a></p> html += f""" <p><a href='https://gitee.com/gfdgd-xi-org/deep-wine-runner/stargazers'><img src='https://gitee.com/gfdgd-xi-org/deep-wine-runner/badge/star.svg?theme=dark' alt='star'></img></a><a href='https://gitee.com/gfdgd-xi-org/deep-wine-runner/members'><img src='https://gitee.com/gfdgd-xi-org/deep-wine-runner/badge/fork.svg?theme=dark' alt='fork'></img></a></p>
<hr/> <hr/>
<h2>Wine 运行器</h2> <h2>Wine 运行器</h2>