How do I configure a Slack bot for Spidermon?

What are bots?

A bot is a type of Slack App designed to interact with users via conversation.

To work with Slack Actions, you will need a Slack bot which would send notifications to your Slack workspace from Spidermon.

Steps

  1. Create a Slack bot.
  2. Once your bot is created, you can find Bot User OAuth Access Token in its settings. This Bot User OAuth Access Token is what we use for SPIDERMON_SLACK_SENDER_TOKEN.
  3. Lastly, add your Slack credentials to your Scrapy project’s settings.
# settings.py
SPIDERMON_SLACK_SENDER_TOKEN = 'YOUR_BOT_USER_OAUTH_ACCESS_TOKEN'
SPIDERMON_SLACK_SENDER_NAME = 'YOUR_BOT_USERNAME'
SPIDERMON_SLACK_RECIPIENTS = ['@yourself', '#yourprojectchannel']