autoextract_poet.items.ProductFromList¶
- class ProductFromList(probability: Optional[float] = None, url: Optional[str] = None, name: Optional[str] = None, offers: List[autoextract_poet.items.Offer] = NOTHING, sku: Optional[str] = None, brand: Optional[str] = None, mainImage: Optional[str] = None, images: List[str] = NOTHING, description: Optional[str] = None, aggregateRating: Optional[autoextract_poet.items.Rating] = None)[source]¶
Bases:
autoextract_poet.items.Item
- __init__(probability: Optional[float] = None, url: Optional[str] = None, name: Optional[str] = None, offers: List[autoextract_poet.items.Offer] = NOTHING, sku: Optional[str] = None, brand: Optional[str] = None, mainImage: Optional[str] = None, images: List[str] = NOTHING, description: Optional[str] = None, aggregateRating: Optional[autoextract_poet.items.Rating] = None) None ¶
Method generated by attrs for class ProductFromList.
Methods
__init__
([probability, url, name, offers, ...])Method generated by attrs for class ProductFromList.
from_dict
(item)Read an item from a dictionary.
from_list
(items)Read items from a list, invoking
from_dict
for each item in the listAttributes
probability
url
name
offers
sku
brand
mainImage
images
description
aggregateRating
- classmethod from_dict(item: Optional[Dict])[source]¶
Read an item from a dictionary.
Unknown attributes are kept in the dict
_unknown_fields_dict
so thatAutoExtractAdapter
can include them in the resultant item. This ensures supporting new AutoExtract fields even if the item library is not in sync.