A Scrapy extension to send notification to the Slack channel.
Project description
scrapy-slackbot
A Scrapy extension to send notification to the Slack channel.
Installation
$ pip install scrapy-slackbot
Settings
In settings.py
:
EXTENSIONS = {
'scrapyslackbot.extensions.SlackBot': 500,
}
SLACK_ENABLED = True
SLACK_BOT_TOKEN = ''
SLACK_CHANNEL = ''
SLACK_ENABLED
A boolean which specifies whether the bot is enabled.
SLACK_BOT_TOKEN
Bot User OAuth Access Token
generated by Slack.
Follow the instructions of Slack API, visit Features > OAuth & Permissions
and generate the token.
SLACK_CHANNEL
The ID of the channel in your workspace.
Development
$ pdm install
Demo
License
MIT
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-slackbot-0.3.0.tar.gz
(2.9 kB
view details)
Built Distribution
File details
Details for the file scrapy-slackbot-0.3.0.tar.gz
.
File metadata
- Download URL: scrapy-slackbot-0.3.0.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b38e0fa8e98f5cdc15c5bacd39b94c9a8522f87582237e74736163a3288e6fea |
|
MD5 | 7c1186948f78cdbbab565f6d6bc56737 |
|
BLAKE2b-256 | 30e07a941b1ec191a30d32d34f4b93c270b979aaf3465f1accac60beecc6b864 |
File details
Details for the file scrapy_slackbot-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: scrapy_slackbot-0.3.0-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dee3640748ba8e4d07e289d027e27b6049a33d38bd11875b2b4a5edfae69fad9 |
|
MD5 | ed871dd30ea08e92a25bcf9ce94fa95a |
|
BLAKE2b-256 | 709970da90a77d5e4e14aa8c71f00c92806665dff1a755f54442bdda3d6874dc |