From 84bab16b1014eeec79a938709cd8964e27dc9ffa Mon Sep 17 00:00:00 2001 From: wcbing Date: Sat, 24 Aug 2024 18:26:25 +0800 Subject: [PATCH] add baidunetdisk --- README.md | 1 + get/baidunetdisk.py | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 get/baidunetdisk.py diff --git a/README.md b/README.md index 9a3c35e..c223623 100644 --- a/README.md +++ b/README.md @@ -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)| ## 自行建立仓库 diff --git a/get/baidunetdisk.py b/get/baidunetdisk.py new file mode 100644 index 0000000..a139ee7 --- /dev/null +++ b/get/baidunetdisk.py @@ -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)