add wechat

This commit is contained in:
wcbing 2024-11-06 15:43:10 +08:00
parent 2b78bc8e69
commit 24f3778910
2 changed files with 14 additions and 0 deletions

View File

@ -42,6 +42,7 @@ curl -fsSL https://packages.wcbing.top/deb/del.sh | sudo sh
|滴答清单|dida|[官网](https://dida365.com/download)|
|向日葵|sunloginclient<br />提取自 Debian 12 的依赖:<br />gconf2-common<br />libgconf-2-4|[官网](https://sunlogin.oray.com/download/linux)|
|ToDesk|todesk|[官网](https://www.todesk.com/linux.html)|
|微信|wechat|[官网](https://linux.weixin.qq.com/)|
> 临时收录软件会在仓库首页通知。

13
get/wechat.py Normal file
View File

@ -0,0 +1,13 @@
import requests
import re
from module.check import deb
html = requests.get("https://linux.weixin.qq.com/").text
x64_deb_url = re.findall(r'href="(https:.*x86_64\.deb)"', html)[0]
last_modified = requests.head(x64_deb_url).headers["Last-Modified"]
# Wed, 06 Nov 2024 02:08:50 GMT
version = "-".join(last_modified.split(" ")[1:5])
# 06-Nov-2024-02:08:50
deb("wechat", version, x64_deb_url)