scrapy-feedexporter-sftp is a Scrapy Feed Exporter Storage Backend that allows you to export Scrapy items to an SFTP server.
Add a FEED_STORAGES
to your Scrapy settings:
FEED_STORAGES = {"sftp": "scrapy_feedexporter_sftp.SFTPFeedStorage"}
Define your FEED_URI
in Scrapy settings:
FEED_URI = "sftp://user:[email protected]/some/path/to/a/file"
Install an ssh server, create a user and run:
export FEEDTEST_SFTP_URI='sftp://user:password@localhost/some/path/to/a/file' export FEEDTEST_SFTP_PATH='/some/path/to/a/file' tox