def _request_html(self, url, params, method='GET'):
        '''Return a html response from a request.'''
        from lxml import html
        res = self._request(url, params, method=method)
        if res.status_code == 404:
            return None
        try:
            return html.fromstring(res.text)
        except __HOLE__ as err:
            self.log.debug(res.text)
            raise DataProviderError("html request: %s" % err.message)
dataset/ETHPy150Open YetAnotherNerd/whatlastgenre/wlg/dataprovider.py/RateYourMusic._request_html