Skip to main content

Build Status Coveralls Status Requirements Status

scrapy-sqs-exporter

This is an extension to Scrapy to allow exporting of scraped items to an Amazon SQS instance.

Setup

After installing the package, the two classes defined in the library need to be added to the relevant sections of the settings file:

FEED_EXPORTERS = {
  'sqs': 'sqsfeedexport.SQSExporter'
}

FEED_STORAGES = {
  'sqs': 'sqsfeedexport.SQSFeedStorage'
}

The FEED_STORAGES section uses a URL prefixed with sqs to differentiate it from other URI based storage options.

In the environment we also need to define some keys:

AWS_DEFAULT_REGION=eu-central-1
AWS_ACCESS_KEY_ID=...
AWS_SECRET_ACCESS_KEY=...
FEED_URI=sqs://foo
FEED_FORMAT=sqs

The AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY are the AWS credentials to be used, and AWS_DEFAULT_REGION is the region to default to for the SQS instance. FEED_URI is the name of the AWS SQS instance in the AWS_DEFAULT_REGION region for example:

AWS_DEFAULT_REGION=us-east-1
FEED_URI=sqs://bar
FEED_FORMAT=sqs

would refer to a queue name bar in the us-east-1 region.

Finally, the FEED_FORMAT option makes the Scrapy spiders use the SQSExporter class.

Release files for scrapy-sqs-exporter 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for scrapy-sqs-exporter 1.1.0
File Size Uploaded
scrapy-sqs-exporter-1.1.0.tar.gz 3.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for scrapy-sqs-exporter 1.1.0
File Interpreter ABI Platform
scrapy_sqs_exporter-1.1.0-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 6.7 kB

Release files / scrapy-sqs-exporter-1.1.0.tar.gz

Download URL scrapy-sqs-exporter-1.1.0.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
bb4c6a13ef0e1507c7c26618787fd644a5b756ed4d58352c8d5c4678c6ede0ea
BLAKE2b-256 checksum
How to use checksums
8abf42b7412b945a3f7f27bec08ec686a8fd80c6e41f0427804ab528275cf877
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / scrapy_sqs_exporter-1.1.0-py2.py3-none-any.whl

Download URL scrapy_sqs_exporter-1.1.0-py2.py3-none-any.whl
Size 3.4 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
57a729fc1852743bf166b3390ca195ef26e29e7cd09fcccfee33449d207112e8
BLAKE2b-256 checksum
How to use checksums
1da3969b94347c5e9dd16c9f18a9e6d1c4a81f5df220f38c5cb9ba31a3855f31
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

1 release file

1.0.1

1 release file

1.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page