Homework bot requests Yandex.Practicum Homework API to return status of homework
Bot: https://t.me/hardkoro_test_bot
- Python
- Telegram
- Heroku
- GitHub
-
Clone repo and change directory to the cloned repo:
git clone https://github.com/hardkoro/homework_bot.git
cd homework_bot
-
Create & activate virtual environment:
python3 -m venv venv
. venv/bin/activate/
-
Install dependencies:
pip install -r requirements.txt
-
Create & fill .env file:
touch .env
PRAKTIKUM_TOKEN=... /* your Yandex.Practicum Homrwork API token */ TELEGRAM_TOKEN=... /* your Telegram bot token */ TELEGRAM_CHAT_ID=... /* yout Telegram chat id */
-
Run homework.py:
python3 homework.py