(self, technique, html)
return technique_inst.extract(html)
Run a given technique against the HTML.

        Technique is a string including the full module path
        and class name for the technique, for example::

            extraction.techniques.FacebookOpengraphTags

        HTML is a string representing an HTML document.
Run a given technique against the HTML.
Run a given technique against the HTML .
def run_technique(self, technique, html):
        """
        Run a given technique against the HTML.

        Technique is a string including the full module path
        and class name for the technique, for example::

            extraction.techniques.FacebookOpengraphTags

        HTML is a string representing an HTML document.
        """
        technique_path_parts = technique.split('.')
        assert len(technique_path_parts) > 1, "technique_path_parts must include a module and a class"
        technique_module_path = ".".join(technique_path_parts[:-1])
        technique_class_name = technique_path_parts[-1]
        technique_module = importlib.import_module(technique_module_path)
        technique_class = getattr(technique_module, technique_class_name)
        technique_inst = technique_class(extractor=self)
        return technique_inst.extract(html)
def run_technique ( self , technique , html ) : technique_path_parts = technique . split ( '.' ) assert len ( technique_path_parts ) > 1 , "technique_path_parts must include a module and a class" technique_module_path = "." . join ( technique_path_parts [ : - 1 ] ) technique_class_name = technique_path_parts [ - 1 ] technique_module = importlib . import_module ( technique_module_path ) technique_class = getattr ( technique_module , technique_class_name ) technique_inst = technique_class ( extractor = self ) return technique_inst . extract ( html )