import requests
from bs4 import BeautifulSoup


def visit_homepage(url):
    """Requests a given url and returns a BeautifulSoup object.

    Parameters
    ----------
    url : str

    Returns
    -------
    BeautifulSoup object
    """
    response = requests.get(url, timeout=10)
    soup = BeautifulSoup(response.content, 'html.parser')
    return soup