class FilesPipeline(MediaPipeline): (source)
Known subclasses: scrapy.pipelines.images.ImagesPipeline
Abstract pipeline that implement the file downloading This pipeline tries to minimize network transfers and file processing, doing stat of the files and determining if file is new, up-to-date or expired. ``new`` files are those that pipeline never processed and needs to be downloaded from supplier site the first time. ``uptodate`` files are the ones that the pipeline processed and are still valid files. ``expired`` files are those that pipeline already processed but the last modification was made long time ago, so a reprocessing is recommended to refresh it in case of change.
Class Method | from |
Undocumented |
Method | __init__ |
Undocumented |
Method | file |
Undocumented |
Method | file |
Returns the path where downloaded media should be stored |
Method | get |
Returns the media requests to download |
Method | inc |
Undocumented |
Method | item |
Called per item when all media requests has been processed |
Method | media |
Handler for success downloads |
Method | media |
Handler for failed downloads |
Method | media |
Check request before starting download |
Constant | DEFAULT |
Undocumented |
Constant | DEFAULT |
Undocumented |
Constant | EXPIRES |
Undocumented |
Constant | MEDIA |
Undocumented |
Constant | STORE |
Undocumented |
Instance Variable | expires |
Undocumented |
Instance Variable | FILES |
Undocumented |
Instance Variable | files |
Undocumented |
Instance Variable | FILES |
Undocumented |
Instance Variable | files |
Undocumented |
Instance Variable | store |
Undocumented |
Method | _get |
Undocumented |
Inherited from MediaPipeline
:
Class |
|
Undocumented |
Class Method | from |
Undocumented |
Method | open |
Undocumented |
Method | process |
Undocumented |
Constant | LOG |
Undocumented |
Instance Variable | allow |
Undocumented |
Instance Variable | download |
Undocumented |
Instance Variable | handle |
Undocumented |
Instance Variable | spiderinfo |
Undocumented |
Method | _cache |
Undocumented |
Method | _check |
Undocumented |
Method | _check |
Undocumented |
Method | _compatible |
Wrapper for overridable methods to allow backwards compatibility |
Method | _handle |
Undocumented |
Method | _key |
>>> MediaPipeline()._key_for_pipe("IMAGES") 'IMAGES' >>> class MyPipe(MediaPipeline): ... pass >>> MyPipe()._key_for_pipe("IMAGES", base_class_name="MediaPipeline") 'MYPIPE_IMAGES' |
Method | _make |
Make overridable methods of MediaPipeline and subclasses backwards compatible |
Method | _modify |
Undocumented |
Method | _process |
Undocumented |
Instance Variable | _expects |
Undocumented |
scrapy.pipelines.images.ImagesPipeline
Returns the path where downloaded media should be stored
scrapy.pipelines.images.ImagesPipeline
Called per item when all media requests has been processed
Undocumented
Value |
|