Cheshire3 Object Model - Extractor¶
API¶
- class cheshire3.baseObjects.Extractor(session, config, parent=None)[source]¶
An Extractor takes selected data and returns extracted values.
An Extractor is a processing object called by an Index with the value returned by a Selector, and extracts the values into an appropriate data structure (a dictionary/hash/associative array).
Example Extractors might extract all text from within a DOM node / etree Element, or select all text that occurs between a pair of selected DOM nodes / etree Elements.
Extractors must also be used on the query terms to apply the same keyword processing rules, for example.
- process_eventList(session, data)[source]¶
Process a list of SAX events serialized in C3 internal format.