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 hashes)
Built Distribution
Close
Hashes for scrapy_slackbot-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dee3640748ba8e4d07e289d027e27b6049a33d38bd11875b2b4a5edfae69fad9 |
|
MD5 | ed871dd30ea08e92a25bcf9ce94fa95a |
|
BLAKE2b-256 | 709970da90a77d5e4e14aa8c71f00c92806665dff1a755f54442bdda3d6874dc |