wcbing-apt-repo/get/microsoft-edge-stable.py
2024-08-01 20:04:06 +08:00

13 lines
354 B
Python

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)