docker-hub gos16052/crawl-data-slack
- mysql (migrations are run automatically)
Feed hackernews
- Create new app (https://api.slack.com/apps)
- Go to your app - OAuth & Permissions
- Add thescopes into bot token scopes
(
channels.read, chat:write, groups:read, im:read, mpim:read, users:read
) It uses 3 apis (conversations.list, chat.postMessage, users.list) - Install to workspace and copy your bot user token
- Pull the repository to run with chromedp
- Creata a
.env
file and write the environments
# Fill ID, PW, HOST, PORT, DATABASE, SLACK_BOT_TOKEN
MYSQL_CONN=<ID>:<PW>@tcp(<HOST>:<PORT>)/<DATABASE>?charset=utf8&parseTime=True
SLACK_BOT_TOKEN=<SLACK_BOT_TOKEN>
- Run with the command
make up cmd="crawl\ hackernews\ --channel\ <YOUR_CHANNEL>