Source code for wpull.document.htmlparse.base

import abc


[docs]class BaseParser(object, metaclass=abc.ABCMeta):
[docs] def parse(self, file, encoding=None): '''Parse the document for elements. Returns: iterator: Each item is from :module:`.document.htmlparse.element` '''
@abc.abstractproperty def parser_error(self): '''Return the Exception class for parsing errors.'''