'Returns a lxml object of the response\'s content that can be selected by xpath'

@property
def etree(self):

    if (not hasattr(self, '_elements')):
        try:
            parser = lxml.html.HTMLParser(encoding=self.encoding)
            self._elements = lxml.html.fromstring(self.content, parser=parser)
        except LookupError:
            self._elements = lxml.html.fromstring(self.content)
    if isinstance(self._elements, lxml.etree._ElementTree):
        self._elements = self._elements.getroot()
    return self._elements
