Saidalo1 / kundalik_jadval_parser

For those who are tired of going to the online diary and looking at the schedule, I made a parser that saves the schedule to the database and sends today's schedule via telegram

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Kundalik Parser (selenium)

This is a script to get schedule from kundalik.com, save to PostgreSQL database and send schedule for today in telegram bot

Installation for Linux & MacOS

Google Chrome (required)

  sudo apt update
  sudo apt install chromium

Required libraries for the project

  sudo pip3 install -r requirements.txt

Installation for Windows

Google Chrome (required)

  https://www.google.com/intl/en/chrome/

Required libraries for the project

  pip install -r requirements.txt

Create .env file

To import data create an .env file and write this data

  # Kundalik settings
    LOGIN=kundalikcomloginFORPUPILACCOUNT
    PASSWORD=kundalikcompasswordFORPUPILACCOUNT

    # Database settings
    DATABASE_NAME=DATABASE_NAME
    DATABASE_USER=DATABASE_USER
    DATABASE_PASS=DATABASE_PASS
    DATABASE_HOST=DATABASE_HOST

    # Telegram bot token
    TOKEN=TELEGRAMBOTTOKEN

Script.py to crontab

Add script.py to crontab for update database every N time!

How to Run for Linux & MacOS

python3 main.py

How to Run for Windows

python main.py

Features

  • Easier to manage
  • No need to open an online diary: kundalik.com
  • Without advertising
  • Works fast

Feedback

If you have any feedback, please reach out to us at saidakhmedovsaidalo@gmail.com

Screenshots

App Screenshot

App Screenshot

If schedule not found: App Screenshot

About

For those who are tired of going to the online diary and looking at the schedule, I made a parser that saves the schedule to the database and sends today's schedule via telegram


Languages

Language:Python 100.0%