import requests
from bs4 import BeautifulSoup


def get_html_content(url: str):
    """Get HTML Content from url or raise exception on error"""
    response = requests.get(url)
    # Raise exception if got error
    response.raise_for_status()
    html_text = response.text

    # Make BeautifulSoup Nested data structure
    return BeautifulSoup(html_text, 'html.parser')