import requests
from bs4 import BeautifulSoup


def page_soup(url):
    """
    Make BeautifulSoup of page
    
    Args:
        url:``str``
            url of page
            
    Returns:
        BeautifulSoup of page:``soup``
        
    """
    r = requests.get(url)

    if r.status_code == 200:
        soup = BeautifulSoup(r.content, "lxml")
        return soup
    else:
        raise Exception("Please check website. Error code {}.".format(r.status_code))