from bs4 import BeautifulSoup
import requests


def get_soup(url: str) -> BeautifulSoup:
    """
    Generic BeautifulSoup page scraping starter code
    :param url: String, the url of the page to scrape
    :return: BeautifulSoup object
    """
    try:
        page: requests.Response = requests.get(url)
        soup: BeautifulSoup = BeautifulSoup(page.content, "lxml")
        return soup
    except ConnectionError:
        print(f"Unable to connect to: {url}")
        print("Please check your connection!")
        exit()