Scrapy-zyte-api

Latest version: v0.20.0

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

Scan your dependencies

Page 5 of 7

0.8.4

------------------

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

0.8.3

------------------

* 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

------------------

* Fixed the handling of response cookies without a domain.

* CI fixes

0.8.1

------------------

* 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

------------------

* 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.

0.7.1

------------------

* It is now possible to `log the parameters of requests sent`_.

.. _log the parameters of requests sent: https://github.com/scrapy-plugins/scrapy-zyte-api#logging-request-parameters

* Stats for HTTP and HTTPS traffic used to be kept separate, and only one of
those sets of stats would be reported. This is fixed now.

* Fixed some code examples and references in the README.

Page 5 of 7

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.