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
- 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
- Enable the pipeline by adding it to
ITEM_PIPELINES
in yoursettings.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
Release history Release notifications | RSS feed
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 details)
Built Distribution
File details
Details for the file scrapy-sink-0.1.2.tar.gz
.
File metadata
- Download URL: scrapy-sink-0.1.2.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 349e002c5dc199eb7f480af3c10568a0cbbe5d08f9cb313b9280431123b6d836 |
|
MD5 | 9485e4d1bdbb91cc863abbe3cee6bf75 |
|
BLAKE2b-256 | 468c9b759fbd7860caec5a58f7c626f4b5c919933cda54528904508efac10e5f |
File details
Details for the file scrapy_sink-0.1.2-py2.py3-none-any.whl
.
File metadata
- Download URL: scrapy_sink-0.1.2-py2.py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca337c9df45a6139dcca7f46ffe69cdebc60ea9df6ab6d503e2a38700bb4c4d7 |
|
MD5 | 3372b2e3e93d2a393ede089d51bf6b60 |
|
BLAKE2b-256 | 190fb6ed7567659b19410db708272e7c129beb2d6adf612949f579d70b43f919 |