|
1 | 1 | Changes
|
2 | 2 | =======
|
3 | 3 |
|
| 4 | +0.20.0 (2024-06-26) |
| 5 | +------------------- |
| 6 | + |
| 7 | +* If the :setting:`AUTOTHROTTLE_ENABLED <scrapy:AUTOTHROTTLE_ENABLED>` setting |
| 8 | + is ``False``, the delay of download slots for Zyte API requests no longer |
| 9 | + resets to zero, and instead scrapy-zyte-api respects the |
| 10 | + :setting:`DOWNLOAD_DELAY <scrapy:DOWNLOAD_DELAY>` setting and |
| 11 | + ``zyte-api@``-prefixed entries in the :setting:`DOWNLOAD_SLOTS |
| 12 | + <scrapy:DOWNLOAD_SLOTS>` setting. |
| 13 | + |
| 14 | + A new :setting:`ZYTE_API_PRESERVE_DELAY` setting allows overriding this |
| 15 | + behavior, i.e. enabling delay resetting even if |
| 16 | + :setting:`AUTOTHROTTLE_ENABLED <scrapy:AUTOTHROTTLE_ENABLED>` is ``False`` or |
| 17 | + disabling delay resetting even if :setting:`AUTOTHROTTLE_ENABLED |
| 18 | + <scrapy:AUTOTHROTTLE_ENABLED>` is ``True``. |
| 19 | + |
| 20 | +* The :reqmeta:`zyte_api_session_location` and |
| 21 | + :reqmeta:`zyte_api_session_params` request metadata keys, if present in a |
| 22 | + request that triggers a session initialization request, will be copied into |
| 23 | + the session initialization request, so that they are available when |
| 24 | + :setting:`ZYTE_API_SESSION_CHECKER` or :meth:`SessionConfig.check |
| 25 | + <scrapy_zyte_api.SessionConfig.check>` are called for a session |
| 26 | + initialization request. |
| 27 | + |
| 28 | +* The new :meth:`SessionConfig.enabled <scrapy_zyte_api.SessionConfig.enabled>` |
| 29 | + method allows configuring whether session management should be enabled or |
| 30 | + disabled for any given request. |
| 31 | + |
| 32 | +* A new stat, ``scrapy-zyte-api/sessions/use/disabled``, indicates the number |
| 33 | + of requests for which session management was disabled. |
| 34 | + |
4 | 35 | 0.19.0 (2024-06-19)
|
5 | 36 | -------------------
|
6 | 37 |
|
|
0 commit comments