import requests
from bs4 import BeautifulSoup
# Make a GET request to the Ubuntu Releases website
response = requests.get("https://releases.ubuntu.com")
# Parse the HTML content using BeautifulSoup
soup = BeautifulSoup(response.text, "html.parser")
# Find the "Minimal" link within the Ubuntu section
ubuntu_section = soup.find("h2", text="Ubuntu")
minimal_link = ubuntu_section.find_next("a", text="Minimal")
# Extract the download URL from the link's href attribute
download_url = minimal_link["href"]
print(download_url)