'Parses document into an LXML object and makes links absolute.
Args:
url (str): URL of the document to parse.
Returns:
Element: Document node representing the page.'

def lxmlize(self, url, raise_exceptions=False):

    try:
        response = self.get(url)
    except requests.exceptions.SSLError:
        self.warning('`self.lxmlize()`    failed    due    to    SSL    error,    trying    an    unverified    `self.get()`    (i.e.    `requests.get()`)')
        response = self.get(url, verify=False)
    if raise_exceptions:
        response.raise_for_status()
    page = lxml.html.fromstring(response.text)
    page.make_links_absolute(url)
    return page
