mirror of
https://github.com/wcbing/wcbing-apt-repo.git
synced 2025-12-28 18:18:31 +08:00
16 lines
397 B
Python
16 lines
397 B
Python
import requests
|
|
import re
|
|
from module.check import deb
|
|
|
|
res = requests.get("https://y.qq.com/download/download.html")
|
|
res.encoding = "utf-8"
|
|
|
|
version = re.findall(
|
|
r"Linux <span class=\"product_list__version\">最新版:(\d+\.\d+\.\d+)</span>",
|
|
res.text,
|
|
)[0]
|
|
x64_deb_url = re.findall(r"https://dl\S+\.deb", res.text)[0]
|
|
# print(version, x64_deb_url)
|
|
|
|
deb("qqmusic", version, x64_deb_url)
|