from bs4 import BeautifulSoup
import requests


def get_content(url:str) -> BeautifulSoup:
    """Attempts to make get request to url, raises HTTPError if it fails.
    Returns the contents of the page.

    Args:
        url (str): Valid url example: https://www.rescale.com. 

    Returns:
        BeautifulSoup: The contents of the html page to parse.
    """
    resp = requests.get(url)
    resp.raise_for_status
    return BeautifulSoup(resp.content, "html.parser")