项目作者: steadily-worked
项目描述 :
Slackbot that informs COVID-19 confirmed cases today
高级语言: Python
项目地址: git://github.com/steadily-worked/COVID19-today-slackbot.git
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

Install
pip install slacker
pip install bs4
pip install selenium
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
python -m venv "your virtualenv name"
run virtualenv
source "your virtualenv name"/bin/activate
run slackbot.py
python3 slackbot.py
Result
