Skip to content

Latest commit

 

History

History
57 lines (35 loc) · 1.27 KB

README.md

File metadata and controls

57 lines (35 loc) · 1.27 KB

scrapy-slackbot

pdm-managed pypi LICENSE

A Scrapy extension for sending notification to Slack channels.

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

We use PDM as the package and dependency manager. Please make sure you have installed PDM at first.

$ pdm install

Demo

demo

License

The project is licensed under the MIT License.