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 3 of 4

0.9.0

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

* Now requires ``web-poet >= 0.14.0``.

* Fixed detection of the :class:`~.HasMetadata` base class.

0.8.0

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

* Updated minimum versions for the following requirements:

* ``attrs >= 22.1.0``
* ``web-poet >= 0.9.0``
* ``zyte-parsers >= 0.2.0``

* Added :class:`~zyte_common_items.JobPosting` and related classes.

* Added :func:`zyte_common_items.processors.brand_processor` and enabled
it for the ``brand`` fields.

* Added :meth:`zyte_common_items.Request.to_scrapy` to convert
:class:`zyte_common_items.Request` instances to :class:`scrapy.http.Request`
instances.

0.7.0

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

* Now requires ``zyte-parsers``.

* Added navigation classes: :class:`~zyte_common_items.ArticleNavigation`,
:class:`~zyte_common_items.ProductNavigation`, the page classes that produce
them, and other related classes.

* Improved the metadata field handling, also fixing some bugs:

* Added :ref:`item-specific metadata classes <components-metadata>`. The
``metadata`` item fields were changed to use them.
* **Backwards incompatible change**: the ``DateDownloadedMetadata`` class was
removed. The item-specific ones are now used instead.
* **Backwards incompatible change**:
:class:`~zyte_common_items.ArticleFromList` no longer has a ``probability``
field and instead has a ``metadata`` field like all other similar classes.
* **Backwards incompatible change**: while in most items the old and the new
type of the ``metadata`` field have the same fields, the one in
:class:`~zyte_common_items.Article` now has ``probability``, the one in
:class:`~zyte_common_items.ProductList` no longer has ``probability``, and
the one in :class:`~zyte_common_items.ProductFromList` no longer has
``dateDownloaded``.
* The default ``probability`` value is now ``1.0`` instead of ``None``.
* Added the :class:`~zyte_common_items.HasMetadata` mixin which is used
similarly to :class:`~web_poet.pages.Returns` to set the page metadata
class.
* Metadata objects assigned to the ``metadata`` fields of the items or
returned from the ``metadata()`` methods of the pages are now converted to
suitable classes.

* Added :func:`zyte_common_items.processors.breadcrumbs_processor` and enabled
it for the ``breadcrumbs`` fields.

0.6.0

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

* Added :class:`~zyte_common_items.Article` and
:class:`~zyte_common_items.ArticleList`.

* Added support for Python 3.11 and dropped support for Python 3.7.

0.5.0

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

* Now requires ``itemadapter >= 0.8.0``.

* Added :class:`~zyte_common_items.RealEstate`.

* Added the :meth:`zyte_common_items.BasePage.no_item_found` and
:meth:`zyte_common_items.Page.no_item_found` methods.

* Improved the error message for invalid input.

* Added :class:`~zyte_common_items.ZyteItemKeepEmptyAdapter` and documented how
to use it and :class:`~zyte_common_items.ZyteItemAdapter` in custom
subclasses of :class:`itemadapter.ItemAdapter`.

0.4.0

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

* Added support for business places.

Page 3 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.