Scrapy-zyte-api

Latest version: v0.25.1

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

Scan your dependencies

Page 6 of 8

0.9.0

Not secure
------------------

* New and updated requirements:

* packaging >= 20.0
* scrapy-poet >= 0.9.0
* web-poet >= 0.13.0
* zyte-common-items

* Added a scrapy-poet provider for Zyte API. Currently supported data types:

* ``web_poet.BrowserHtml``
* ``web_poet.BrowserResponse``
* ``zyte_common_items.Product``

* Added a ``zyte_api_default_params`` request meta key which allows users to
ignore the ``ZYTE_API_DEFAULT_PARAMS`` setting for individual requests.

* CI fixes.

0.8.4

Not secure
------------------

* Fixed an exception raised by the downloader middleware when cookies were
enabled.

0.8.3

Not secure
------------------

* Made Python 3.11 support official.

* Added support for the upcoming automatic extraction feature of Zyte API.

* Included a descriptive message in the exception that triggers when the
download handler cannot be initialized.

* Clarified that ``LOG_LEVEL`` must be ``DEBUG`` for ``ZYTE_API_LOG_REQUESTS``
messages to be visible.

0.8.2

Not secure
------------------

* Fixed the handling of response cookies without a domain.

* CI fixes

0.8.1

Not secure
------------------

* Fixed an ``AssertionError`` when cookies are disabled.

* Added links to the README to improve navigation from GitHub.

* Added a license file (BSD-3-Clause).

0.8.0

Not secure
------------------

* Added experimental cookie support:

* The ``experimental.responseCookies`` response parameter is now mapped to
the response headers as ``Set-Cookie`` headers, as well as added to the
cookiejar of the request.

* A new boolean setting, ``ZYTE_API_EXPERIMENTAL_COOKIES_ENABLED``, can be
set to ``True`` to enable automatic mapping of cookies from a request
cookiejar into the ``experimental.requestCookies`` Zyte API parameter.

* ``ZyteAPITextResponse`` is now a subclass of ``HtmlResponse``, so that the
``open_in_browser`` function of Scrapy uses the ``.html`` extension for Zyte
API responses.

While not ideal, this is much better than the previous behavior, where the
``.html`` extension was *never* used for Zyte API responses.

* ``ScrapyZyteAPIDownloaderMiddleware`` now also supports non-string slot IDs.

Page 6 of 8

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.