bsie.extractor.builder module#

class bsie.extractor.builder.ExtractorBuilder(specs: List[Dict[str, Dict[str, Any]]])#

Bases: object

Build `bsie.base.Extractor instances.

It is permissible to build multiple instances of the same extractor (typically with different arguments), hence the ExtractorBuilder receives a list of build specifications. Each specification is a dict with a single key (extractor’s qualified name) and a dict to be used as keyword arguments. Example: [{‘bsie.extractor.generic.path.Path’: {}}, ]

build(index: int) Extractor#

Return an instance of the n’th extractor (n=*index*).