Zyte-common-items

Latest version: v0.20.0

Safety actively analyzes 641002 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 4

0.15.0

===================

* Now requires ``zyte-parsers >= 0.5.0``.

* Added :class:`~.SocialMediaPost` and related classes.

* Added :class:`~.ProductFromListExtractor`,
:class:`~.ProductFromListSelectorExtractor`,
:class:`~.ProductVariantExtractor` and
:class:`~.ProductVariantSelectorExtractor`.

* Added :func:`zyte_common_items.processors.rating_processor` and enabled it
for the ``aggregateRating`` fields in the page classes for
:class:`~.BusinessPlace` and :class:`~.Product`.

* Improved the documentation about the processors.

0.14.0

===================

* Now requires ``zyte-parsers >= 0.4.0``.

* Added :func:`zyte_common_items.processors.gtin_processor` and enabled it for
the ``gtin`` fields in the page classes for
:class:`~zyte_common_items.Product`.

* Improved the API documentation.

0.13.0

===================

* Added ``Auto``-prefixed versions of :ref:`page objects <page-objects>`, such
as :meth:`~zyte_common_items.AutoProductPage`, that return data from Zyte API
automatic extraction from their fields by default, and can be used to more
easily override that data with custom parsing logic.

0.12.0

===================

* Added :meth:`~zyte_common_items.base.ProbabilityMixin.get_probability` helper
method in item classes (e.g. :class:`~zyte_common_items.Product`,
:class:`~zyte_common_items.Article`) and
:class:`~zyte_common_items.ProbabilityRequest`.

0.11.0

===================

* Now requires ``clear-html >= 0.4.0``.

* Added :func:`zyte_common_items.processors.description_processor` and enabled
it for the ``description`` fields in the page classes for
:class:`~zyte_common_items.BusinessPlace`,
:class:`~zyte_common_items.JobPosting`, :class:`~zyte_common_items.Product`
and :class:`~zyte_common_items.RealEstate`.

* Added :func:`zyte_common_items.processors.description_html_processor` and
enabled it for the ``descriptionHtml`` fields in the page classes for
:class:`~zyte_common_items.JobPosting` and
:class:`~zyte_common_items.Product`.

* Added default implementations for the ``description`` (in the page classes
for :class:`~zyte_common_items.BusinessPlace`,
:class:`~zyte_common_items.JobPosting`, :class:`~zyte_common_items.Product`
and :class:`~zyte_common_items.RealEstate`) and ``descriptionHtml`` (in the
page classes for :class:`~zyte_common_items.JobPosting` and
:class:`~zyte_common_items.Product`) fields: if one of these fields is
user-defined, another one will use it.

* :func:`~zyte_common_items.processors.price_processor` and
:func:`~zyte_common_items.processors.simple_price_processor` now keep at
least two decimal places when formatting the result.

0.10.0

===================

* Now requires ``price-parser >= 0.3.4`` (a new dependency) and
``zyte-parsers >= 0.3.0`` (a version increase).

* Added :func:`zyte_common_items.processors.price_processor` and enabled
it for the ``price`` fields.

* Added :func:`zyte_common_items.processors.simple_price_processor` and enabled
it for the ``regularPrice`` fields.

* Added default implementations for the ``currency`` (uses the ``CURRENCY``
attribute on the page class) and ``currencyRaw`` (uses the data extracted by
the ``price`` field) fields.

Page 2 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.