mirror of
https://github.com/wcbing/wcbing-apt-repo.git
synced 2025-12-28 18:18:31 +08:00
add baidunetdisk
This commit is contained in:
parent
63ccd28a07
commit
84bab16b10
@ -36,6 +36,7 @@ echo "deb [signed-by=/etc/apt/keyrings/wcbing.gpg] https://packages.wcbing.top/d
|
||||
|Google Chrome|google-chrome-stable|[官网](https://www.google.com/chrome/)|
|
||||
|Obsidian|obsidian|[Github Releases](https://github.com/obsidianmd/obsidian-releases/releases)|
|
||||
|WPS Office|wps-office|[官网](https://linux.wps.cn/)|
|
||||
|百度网盘|baidunetdisk|[官网](https://pan.baidu.com/download)|
|
||||
|
||||
|
||||
## 自行建立仓库
|
||||
|
||||
14
get/baidunetdisk.py
Normal file
14
get/baidunetdisk.py
Normal file
@ -0,0 +1,14 @@
|
||||
import requests
|
||||
import json
|
||||
from module.check import deb
|
||||
|
||||
res = requests.get("https://pan.baidu.com/disk/cmsdata?do=client")
|
||||
res.encoding = "utf-8"
|
||||
|
||||
download_list = json.loads(res.text)
|
||||
|
||||
version = download_list["linux"]["version"].split("V")[1]
|
||||
x64_deb_url = download_list["linux"]["url_1"]
|
||||
# print(version, x64_deb_url)
|
||||
|
||||
deb("baidunetdisk", version, x64_deb_url)
|
||||
Loading…
x
Reference in New Issue
Block a user