- Update minimum requirement:
scrapy>=2.6.0
.
Remove the
Content-Decoding
header when returning the responses. This prevents Scrapy from decompressing already decompressed contents done by Zyte Data API. Otherwise, this leads to errors inside Scrapy'sHttpCompressionMiddleware
.Introduce
ZyteAPIResponse
andZyteAPITextResponse
which are subclasses ofscrapy.http.Response
andscrapy.http.TextResponse
respectively. These new response classes hold the raw Zyte Data API response in theraw_api_response
attribute.Introduce a new setting named
ZYTE_API_DEFAULT_PARAMS
.- At the moment, this only applies to Zyte API enabled
scrapy.Request
(which is declared by having thezyte_api
parameter in the Request meta having valid parameters, set toTrue
, or{}
).
- At the moment, this only applies to Zyte API enabled
Specify in the README to set
dont_filter=True
when using the same URL but with differentzyte_api
parameters in the Request meta. This is a current workaround since Scrapy will tag them as duplicate requests and will result in duplication filtering.Various documentation improvements.
- Initial release