From 0da5bfa8082fe762935afdec473c91cb0533f307 Mon Sep 17 00:00:00 2001 From: wcbing Date: Tue, 24 Sep 2024 21:26:11 +0800 Subject: [PATCH] add utools --- README.md | 1 + get/utools.py | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 get/utools.py diff --git a/README.md b/README.md index ec8c027..f59dafd 100644 --- a/README.md +++ b/README.md @@ -44,6 +44,7 @@ echo "deb [signed-by=/etc/apt/keyrings/wcbing.gpg] https://packages.wcbing.top/d |飞书|bytedance-feishu-stable|[官网](https://www.feishu.cn/download)| |Xmind|xmind-vana|[官网](https://xmind.cn/download/)| |draw.io|draw.io|[Github Releases](https://github.com/jgraph/drawio-desktop/releases)| +|uTools|utools|[官网](https://u.tools/download/)| ### 合并自官方 repo diff --git a/get/utools.py b/get/utools.py new file mode 100644 index 0000000..43d3006 --- /dev/null +++ b/get/utools.py @@ -0,0 +1,11 @@ +import requests +import re +from module.check import deb + +res = requests.get("https://u.tools/download/") +res.encoding = "utf-8" + +x64_deb_url = re.findall(r"https:\/\/[^ ]+\.deb", res.text)[0] +version = re.findall(".*utools_(.+)_amd64.deb", x64_deb_url)[0] + +deb("utools", version, x64_deb_url)