import requests
from bs4 import BeautifulSoup


def url_to_html(url):
    """Scrapes the html content from a web page. Takes a URL string as input and returns an html object. """

    # Get the html content
    res = requests.get(url, headers={"User-Agent": "XY"})
    html = res.text
    parser_content = BeautifulSoup(html, 'html5lib')
    return parser_content