Skip to content

Commit

Permalink
Fixed Azure - new stage 1 URL, new download link element
Browse files Browse the repository at this point in the history
  • Loading branch information
psayler authored and 0xdade committed Jun 30, 2024
1 parent 16de0df commit d511564
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sephiroth/providers/azure.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ def __init__(self, excludeip6=False):
def _get_ranges(self):
print("(azure) Fetching IP ranges from Microsoft")
azure_download_page = (
"https://www.microsoft.com/en-us/download/confirmation.aspx?id=56519"
"https://www.microsoft.com/en-us/download/details.aspx?id=56519"
)
headers = {
'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/112.0'
}
r = requests.get(azure_download_page, headers = headers)
soup = BeautifulSoup(r.content, "html.parser")
direct_link = soup.select_one(".failoverLink")["href"]
direct_link = soup.select_one(".dlcdetail__download-btn")["href"]
r = requests.get(direct_link)
return r.json()

Expand Down

0 comments on commit d511564

Please sign in to comment.