From f6b7309f81a11b641c7204fca385a2d7dcad2ad5 Mon Sep 17 00:00:00 2001 From: wcbing Date: Thu, 1 Aug 2024 20:04:06 +0800 Subject: [PATCH] add microsoft-edge-stable --- README.md | 1 + get/microsoft-edge-stable.py | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 get/microsoft-edge-stable.py diff --git a/README.md b/README.md index 3b7d6ca..ebab91d 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,7 @@ echo "deb [signed-by=/etc/apt/keyrings/wcbing.gpg] https://deb.wcbing.top /" | s |hugo|hugo|[Github Releases](https://github.com/gohugoio/hugo/releases)| |RustDesk|rustdesk|[Github Releases](https://github.com/rustdesk/rustdesk/releases)| |Visual Studio Code|code|[官网](https://code.visualstudio.com)| +|Microsoft Edge|microsoft-edge-stable|[官网](https://www.microsoft.com/en-us/edge/download)| ## 自行建立仓库 diff --git a/get/microsoft-edge-stable.py b/get/microsoft-edge-stable.py new file mode 100644 index 0000000..233c020 --- /dev/null +++ b/get/microsoft-edge-stable.py @@ -0,0 +1,12 @@ +import requests +import re +from module.check import check_download + +x64_deb_url = "https://go.microsoft.com/fwlink?linkid=2149051" + +res = requests.head(x64_deb_url) +version = re.findall("_(.*)_", res.headers["Location"])[0] +x64_deb_url = res.headers["Location"] +# print(version, x64_deb_url) + +check_download("microsoft-edge-stable", version, x64_deb_url)