def read_html(self, infile): """Parse a HTML file.""" with open(infile, encoding='utf-8', mode='r') as input: return html.parse(input)