forked from gfdgd_xi/wine-bottle-library
new
This commit is contained in:
parent
686d60e082
commit
5ef9534d33
Binary file not shown.
After Width: | Height: | Size: 21 KiB |
|
@ -1,5 +1,6 @@
|
|||
#!/usr/bin/env python3
|
||||
import json
|
||||
import requests
|
||||
import datetime
|
||||
html = f"""<!DOCTYPE html>
|
||||
<head>
|
||||
|
@ -14,10 +15,9 @@ html = f"""<!DOCTYPE html>
|
|||
<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>
|
||||
"""
|
||||
with open(f"information.json", "r") as file:
|
||||
lists = json.loads(file.read())
|
||||
lists = requests.get("https://code.gitlink.org.cn/gfdgd_xi/wine-mirrors/raw/branch/master/information.json").json()
|
||||
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>
|
||||
<hr/>
|
||||
<h2>Wine 运行器</h2>
|
||||
|
|
Loading…
Reference in New Issue