Skip to main content

A Scrapy extension to send notification to the Slack channel.

Project description

scrapy-slackbot

pdm-managed LICENSE

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

demo

License

MIT

Project details


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)

Uploaded Source

Built Distribution

scrapy_slackbot-0.3.0-py3-none-any.whl (3.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page