Skip to main content

Pipeline to post scrapy item to your url

Project description

Pipeline to post scrapy item to your url

Installation

Install scrapy-sink using pip::

$ pip install scrapy-sink

Configuration

  1. Add the settings.py of your Scrapy project like this:
SINK_ADDR = 'http://127.0.0.1:8000/data_receiver.php'

You can also only set it in your environment variable

  1. Enable the pipeline by adding it to ITEM_PIPELINES in your settings.py file and changing HttpCompressionMiddleware priority:
ITEM_PIPELINES = {
    'scrapy_sink.pipelines.SinkPipeline': 9999,
}

The order should after your persist pipeline such as save to database and after your preprocess pipeline.

Usage

no need to change your code

Getting help

Please use github issue

Contributing

PRs are always welcomed.

Changes

0.1.0 (2020-12-26)

Initial release

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-sink-0.1.2.tar.gz (2.8 kB view hashes)

Uploaded Source

Built Distribution

scrapy_sink-0.1.2-py2.py3-none-any.whl (3.2 kB view hashes)

Uploaded Python 2 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