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¶
Go to the OAuth & Permissions tab on the left sidebar.
Under Bot Token Scopes make sure the bot has the
chat:write
permission.Once the bot is installed to your workspace, copy the Bot User OAuth Access Token from this tab. This Bot User OAuth Access Token is what we use for
SPIDERMON_SLACK_SENDER_TOKEN
.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']