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:password@some.server/some/path/to/a/file"
To use a private key for authentication, use the FEED_STORAGE_SFTP_PKEY
setting:
FEED_STORAGE_SFTP_PKEY = """
-----BEGIN RSA PRIVATE KEY-----
...
... base64 encoded ...
...
-----END RSA PRIVATE KEY-----
"""