autoextract_poet.page_inputs.AutoExtractData¶
- class AutoExtractData(data: dict)[source]¶
Bases:
Generic
[autoextract_poet.page_inputs.T
]Container for AutoExtract data.
Should not be used directly by providers. Use derived classes like AutoExtractArticleData and similar.
API responses are wrapped in a JSON array (this is to facilitate query batching) but we’re receiving single responses here..
https://docs.zyte.com/automatic-extraction.html#responses
Methods
__init__
(data)Method generated by attrs for class AutoExtractData.
to_item
()Attributes
item_class
page_type
data