mirror of
https://github.com/wcbing/wcbing-apt-repo.git
synced 2025-12-29 02:28:30 +08:00
update linuxqq
This commit is contained in:
parent
dbd8bfc127
commit
c99c1a41af
@ -3,10 +3,12 @@ import re
|
|||||||
import json
|
import json
|
||||||
from module.check import check_download
|
from module.check import check_download
|
||||||
|
|
||||||
res = requests.get("https://qq-web.cdn-go.cn/im.qq.com_new/f2ff7664/rainbow/linuxQQDownload.js")
|
res = requests.get("https://im.qq.com/rainbow/linuxQQDownload")
|
||||||
res.encoding = "utf-8"
|
res.encoding = "utf-8"
|
||||||
|
|
||||||
download_list_json = re.search(r"var params\s*=\s*(\{.*?\});", res.text, re.DOTALL).group(1)
|
download_list_json = re.search(
|
||||||
|
r"var params\s*=\s*(\{.*?\});", res.text, re.DOTALL
|
||||||
|
).group(1)
|
||||||
download_list = json.loads(download_list_json)
|
download_list = json.loads(download_list_json)
|
||||||
|
|
||||||
version = download_list["version"]
|
version = download_list["version"]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user