def parse_html(infile, xpath):
    if not isinstance(infile, lh.HtmlElement):
        infile = lh.fromstring(infile)
    infile = infile.xpath(xpath)
    if not infile:
        raise ValueError('XPath {0} returned no results.'.format(xpath))
    return infile
Test autoclean() with already-clean data
dataset/ETHPy150Open huntrar/scrape/scrape/utils.py/parse_html--crossover with--dataset/ETHPy150Open rhiever/datacleaner/tests.py/test_autoclean_already_clean_data