Skip to content

Homework bot requests Yandex.Practicum Homework API to return status of homework

Notifications You must be signed in to change notification settings

hardkoro/homework_bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Homework Bot

Description

Homework bot requests Yandex.Practicum Homework API to return status of homework

Bot: https://t.me/hardkoro_test_bot

Technology Stack

Python Telegram Heroku GitHub

  • Python
  • Telegram
  • Heroku
  • GitHub

Deployment

  • 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
    

Author

Evgeny Korobkov

About

Homework bot requests Yandex.Practicum Homework API to return status of homework

Topics

Resources

Stars

Watchers

Forks

Languages