Fix expired cert

This commit is contained in:
LoveSy 2022-05-02 11:19:04 +08:00 committed by GitHub
parent 1a7551e0bb
commit bbebe7a913
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -116,7 +116,7 @@ jobs:
res = requests.post("https://store.rg-adguard.net/api/GetFiles", f"type=CategoryId&url=858014f3-3934-4abe-8078-4aa193e74ca8&ring={release_type}&lang=en-US", headers={ res = requests.post("https://store.rg-adguard.net/api/GetFiles", f"type=CategoryId&url=858014f3-3934-4abe-8078-4aa193e74ca8&ring={release_type}&lang=en-US", headers={
"content-type": "application/x-www-form-urlencoded" "content-type": "application/x-www-form-urlencoded"
}) }, verify=False) # source site has expired cert
html = BeautifulSoup(res.content, "lxml") html = BeautifulSoup(res.content, "lxml")
a = html.find("a", string=re.compile(f"Microsoft\.UI\.Xaml\..*_{arch}_.*\.appx")) a = html.find("a", string=re.compile(f"Microsoft\.UI\.Xaml\..*_{arch}_.*\.appx"))