Skip to content

taicaile/scrapy-rclone

Repository files navigation

SCRAPY_RCLONE

Installation

From github

To install it via pip,

pip isntall git+https://github.com/taicaile/pyrclone
pip install git+https://github.com/taicaile/scrapy-rclone

or clone it first,

git clone https://github.com/taicaile/scrapy-rclone.git
cd scrapy_rclone
pip install -r requirements.txt
python setup.py install

To install specific version,

# replace the version `v0.1.0` as you expect,
pip isntall git+https://github.com/taicaile/pyrclone
pip install git+https://github.com/taicaile/scrapy-rclone@v0.1.0

You may need to install pyrclone manully,

pip install git+https://github.com/taicaile/pyrclone@v0.1.0

Usage

# config rclone remote,
RCLONE_REMOTE = "xxx"
# add pipeline for image download
IMAGES_STORE = "files"
ITEM_PIPELINES = {
    "scrapy.pipelines.images.ImagesPipeline": 200,
    "scrapy_rclone.pipelines.RcloneMoveImagesPipeline": 300,
}

# add pipeline for files download
FILES_STORE = "files"
ITEM_PIPELINES = {
    "scrapy.pipelines.images.FilesPipeline": 200,
    "scrapy_rclone.pipelines.RcloneMoveFilesPipeline": 300,
}

About

Send the files to remotes through Rclone

Resources

Stars

Watchers

Forks

Packages

No packages published