Skip to main content

Scrapy Item Pipeline to send items to RabbitMQ

Project description

A RabbitMQ Item Publisher for Scrapy Framework.

Scrapy-RabbitMQ-Publisher allows you to save publish items to RabbitMQ.

Installation

Using pip, type in your command-line prompt

pip install scrapy-rabbitmq-publisher

Or clone the repo and inside the scrapy-rabbitmq-publisher directory, type

python setup.py install

Usage

Add following code to your scrapy settings.

RABBITMQ_HOST = "localhost"
RABBITMQ_PORT = 5672
RABBITMQ_USER = "guest"
RABBITMQ_PASSWORD = "guest"
RABBITMQ_VIRTUAL_HOST = "/"
RABBITMQ_EXCHANGE = "scrapy"
RABBITMQ_ROUTING_KEY = "item"
RABBITMQ_QUEUE = "item"

ITEM_PIPELINES = {
    "scrapy_rabbitmq_publisher.pipelines.RabbitMQItemPublisherPipeline": 1,
}

Copyright & License

Copyright (c) 2019 Artem Rys - Released under The MIT License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

scrapy-rabbitmq-publisher-0.1.4.tar.gz (2.3 kB view hashes)

Uploaded Source

Built Distribution

scrapy_rabbitmq_publisher-0.1.4-py3-none-any.whl (3.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page