import requests
from bs4 import BeautifulSoup


def build_soup(url: str):
    """Retrieve page contents with BeautifulSoup"""
    page = requests.get(url)
    soup = BeautifulSoup(page.content, 'html.parser')

    return soup