Skip to content

A Scrapy extension for sending notification to Slack channels

License

Notifications You must be signed in to change notification settings

rudeigerc/scrapy-slackbot

Repository files navigation

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.

About

A Scrapy extension for sending notification to Slack channels

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages