Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release notes for 0.7.1 #43

Merged
merged 1 commit into from
Feb 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,20 @@
Changes
=======

0.7.1 (unreleased)
------------------

* The
:class:`~zyte_spider_templates.spiders.ecommerce.EcommerceSpiderParams.crawl_strategy`
parameter of
:class:`~zyte_spider_templates.spiders.ecommerce.EcommerceSpider`
now defaults to
:attr:`~zyte_spider_templates.spiders.ecommerce.EcommerceCrawlStrategy.full`
instead of
:attr:`~zyte_spider_templates.spiders.ecommerce.EcommerceCrawlStrategy.navigation`.
We also reworded some descriptions of :enum:`~.EcommerceCrawlStrategy` values
for clarification.

0.7.0 (2024-02-09)
------------------

Expand Down
1 change: 0 additions & 1 deletion docs/reference/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ E-commerce
:noindex:

.. autoclass:: zyte_spider_templates.spiders.ecommerce.EcommerceSpider
:noindex:

Pages
=====
Expand Down
21 changes: 3 additions & 18 deletions zyte_spider_templates/spiders/ecommerce.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,25 +70,10 @@ class EcommerceSpiderParams(BaseSpiderParams):
class EcommerceSpider(Args[EcommerceSpiderParams], BaseSpider):
"""Yield products from an e-commerce website.

*url* is the start URL, e.g. a homepage or category page.
See :class:`~zyte_spider_templates.spiders.ecommerce.EcommerceSpiderParams`
for supported parameters.

*crawl_strategy* determines how the start URL and follow-up URLs are
crawled:

- ``"navigation"`` (default): follow pagination, subcategories, and
product detail pages.

- ``"full"``: follow most links within the domain of *url* in an attempt to
discover and extract as many products as it can.

*geolocation* (optional) is an ISO 3166-1 alpha-2 2-character string specified in:
https://docs.zyte.com/zyte-api/usage/reference.html#operation/extract/request/geolocation

*max_requests* (optional) specifies the max number of Zyte API requests
allowed for the crawl.

*extract_from* (optional) allows to enforce extracting the data from
either "browserHtml" or "httpResponseBody".
.. seealso:: :ref:`e-commerce`.
"""

name = "ecommerce"
Expand Down
Loading