Metadata-Version: 2.1
Name: scrapy-slackbot
Version: 0.2.0
Summary: A Scrapy extension to send notification to the Slack channel.
Home-page: https://github.com/rudeigerc/scrapy-slackbot
Author: Yuchen Cheng
Author-email: rudeigerc@gmail.com
License: MIT
Keywords: scrapy slack bot
Platform: UNKNOWN
Classifier: Framework :: Scrapy
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Console
Classifier: Operating System :: OS Independent
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Natural Language :: English
Classifier: Programming Language :: Python
Classifier: Topic :: Utilities
Description-Content-Type: text/markdown
Requires-Dist: scrapy
Requires-Dist: slackclient

# scrapy-slackbot

[![Build Status](https://travis-ci.org/rudeigerc/scrapy-slackbot.svg?branch=master)](https://travis-ci.org/rudeigerc/scrapy-slackbot)
[![LICENSE](https://img.shields.io/github/license/rudeigerc/scrapy-slackbot.svg)](https://github.com/rudeigerc/scrapy-slackbot/blob/master/LICENSE)

A Scrapy extension to send notification to the Slack channel.

## Installation

```bash
$ pip install scrapy-slackbot
```

## Settings

In `settings.py`:

```python
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](https://api.slack.com/slack-apps), visit `Features > OAuth & Permissions` and generate the token.

### SLACK_CHANNEL

The ID of the channel in your workspace.

## Demo

![demo](demo.jpg)

## License

MIT


