autoextract_poet.items.Review¶
- class Review(name: Optional[str] = None, reviewBody: Optional[str] = None, reviewRating: Optional[autoextract_poet.items.Rating] = None, datePublished: Optional[str] = None, datePublishedRaw: Optional[str] = None, votedHelpful: Optional[int] = None, votedUnhelpful: Optional[int] = None, isVerified: Optional[bool] = None, probability: Optional[float] = None)[source]¶
Bases:
autoextract_poet.items.Item- __init__(name: Optional[str] = None, reviewBody: Optional[str] = None, reviewRating: Optional[autoextract_poet.items.Rating] = None, datePublished: Optional[str] = None, datePublishedRaw: Optional[str] = None, votedHelpful: Optional[int] = None, votedUnhelpful: Optional[int] = None, isVerified: Optional[bool] = None, probability: Optional[float] = None) None¶
Method generated by attrs for class Review.
Methods
__init__([name, reviewBody, reviewRating, ...])Method generated by attrs for class Review.
from_dict(item)Read an item from a dictionary.
from_list(items)Read items from a list, invoking
from_dictfor each item in the listAttributes
namereviewBodyreviewRatingdatePublisheddatePublishedRawvotedHelpfulvotedUnhelpfulisVerifiedprobability- classmethod from_dict(item: Optional[Dict])[source]¶
Read an item from a dictionary.
Unknown attributes are kept in the dict
_unknown_fields_dictso thatAutoExtractAdaptercan include them in the resultant item. This ensures supporting new AutoExtract fields even if the item library is not in sync.