autoextract_poet.items.ProductList¶
- class ProductList(url: Optional[str] = None, products: List[autoextract_poet.items.ProductFromList] = NOTHING, breadcrumbs: List[autoextract_poet.items.Breadcrumb] = NOTHING, paginationNext: Optional[autoextract_poet.items.PaginationLink] = None, paginationPrevious: Optional[autoextract_poet.items.PaginationLink] = None)[source]¶
Bases:
autoextract_poet.items.Item
- __init__(url: Optional[str] = None, products: List[autoextract_poet.items.ProductFromList] = NOTHING, breadcrumbs: List[autoextract_poet.items.Breadcrumb] = NOTHING, paginationNext: Optional[autoextract_poet.items.PaginationLink] = None, paginationPrevious: Optional[autoextract_poet.items.PaginationLink] = None) None ¶
Method generated by attrs for class ProductList.
Methods
__init__
([url, products, breadcrumbs, ...])Method generated by attrs for class ProductList.
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
url
products
breadcrumbs
paginationNext
paginationPrevious
- 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.