2.4.0
版本发布时间: 2020-10-12 06:32:25
scrapy/scrapy最新发布版本:2.11.2(2024-05-14 20:12:22)
Hihglights:
-
Python 3.5 support has been dropped.
-
The
file_path
method of media pipelines can now access the source item.This allows you to set a download file path based on item data.
-
The new
item_export_kwargs
key of theFEEDS
setting allows to define keyword parameters to pass to item exporter classes. -
You can now choose whether feed exports overwrite or append to the output file.
For example, when using the
crawl
orrunspider
commands, you can use the-O
option instead of-o
to overwrite the output file. -
Zstd-compressed responses are now supported if zstandard is installed.
-
In settings, where the import path of a class is required, it is now possible to pass a class object instead.