diff --git a/README.md b/README.md index 00e1a97..4ec323e 100644 --- a/README.md +++ b/README.md @@ -16,3 +16,10 @@ echo "deb [signed-by=/etc/apt/keyrings/wcbing.gpg] https://deb.wcbing.top /" | s ``` 接下来执行 `sudo apt update` 更新即可。 + + +## 现有软件 + +|软件名|包名|渠道| +|-|-|-| +|QQ|linuxqq|[官网](https://im.qq.com/linuxqq/)| diff --git a/get/linuxqq.py b/get/linuxqq.py new file mode 100644 index 0000000..2371393 --- /dev/null +++ b/get/linuxqq.py @@ -0,0 +1,16 @@ +import requests +import re +import json +from module.check import check_download + +res = requests.get("https://qq-web.cdn-go.cn/im.qq.com_new/f2ff7664/rainbow/linuxQQDownload.js") +res.encoding = "utf-8" + +download_list_json = re.search(r"var params\s*=\s*(\{.*?\});", res.text, re.DOTALL).group(1) +download_list = json.loads(download_list_json) + +version = download_list["version"] +x64_deb_url = download_list["x64DownloadUrl"]["deb"] +# print(version, x64_deb_url) + +check_download("linuxqq", version, x64_deb_url)