项目作者: steadily-worked

项目描述 :
Slackbot that informs COVID-19 confirmed cases today
高级语言: Python
项目地址: git://github.com/steadily-worked/COVID19-today-slackbot.git
创建时间: 2020-12-29T06:16:13Z
项目社区:https://github.com/steadily-worked/COVID19-today-slackbot

开源协议:

下载


COVID19-today-slackbot

Slackbot that informs COVID-19 confirmed cases today

Production process in here

Change log

2021.01.05

  • Slackbot was born
  • It helps users to know how many COVID-19 confirmed cases have ocurred today

2021.01.25

  • Add image showing the trend of COVID-19 confirmation and cure using PyAutoGUI and Selenium

Getting Started

  • Add your Slackbot in here
  • Copy your API token
  • Paste it in slackbot.py
    token

Install

  1. pip install slacker
  2. pip install bs4
  3. pip install selenium
  4. pip install pyautogui

Running the tests

download chromedriver

  • in here (before downloading, check your Google Chrome version)

setting driver & image path

  • Enter the path where chromedriver is saved in Line 37.
  • Then, enter the path to save screenshots taken by PyAutoGUI in Line 44.

write down

  • the bot token in Line 8
  • the Slack channel that the bot will send messages to in Line 14 instead of #bots-playground

install virtualenv

  1. python -m venv "your virtualenv name"

run virtualenv

  1. source "your virtualenv name"/bin/activate

run slackbot.py

  1. python3 slackbot.py

Result

스크린샷 2021-02-03 오후 2 49 25