def __init__(self, html_contents, xpaths_to_keep, xpaths_to_discard):
        """
        Inits the extractor

        :param html_contents: The HTML contents to parse
        :type html_contents: str
        :param to_keep: A list of xpaths to keep
        :type to_keep: list
        :param to_discard: A list of xpaths to discard
        :type to_discard: list
        """
        self.html_contents = html_contents
        self.xpaths_to_keep = xpaths_to_keep
        self.xpaths_to_discard = xpaths_to_discard
def __init__ ( self , html_contents , xpaths_to_keep , xpaths_to_discard ) : self . html_contents = html_contents self . xpaths_to_keep = xpaths_to_keep self . xpaths_to_discard = xpaths_to_discard
Inits the extractor

        :param html_contents: The HTML contents to parse
        :type html_contents: str
        :param to_keep: A list of xpaths to keep
        :type to_keep: list
        :param to_discard: A list of xpaths to discard
        :type to_discard: list