https://github.com/kite-house/journalparser
Telegram бот для отображение статистики учащихся TOP COLLEGE
https://github.com/kite-house/journalparser
aiogram asyncio python selenium sqlalchemy
Last synced: about 1 month ago
JSON representation
Telegram бот для отображение статистики учащихся TOP COLLEGE
- Host: GitHub
- URL: https://github.com/kite-house/journalparser
- Owner: kite-house
- License: gpl-3.0
- Created: 2024-10-03T20:30:27.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-05T01:07:45.000Z (over 1 year ago)
- Last Synced: 2025-01-05T15:48:11.243Z (over 1 year ago)
- Topics: aiogram, asyncio, python, selenium, sqlalchemy
- Language: Python
- Homepage:
- Size: 43.6 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# JournalParser #RU
[EN](https://github.com/kite-house/JournalParser?tab=readme-ov-file#JournalParser-eng)
> [!IMPORTANT]
> Парсер журнала колледжа, и отправка данных в телеграмм конкретному пользователю.
### Как установить?
> pip install requirements.txt
> Создайте .env
```
TELEGRAM_ACCESS_TOKEN = "Токен телеграмм бота"
DB_USER = ""
DB_PASSWORD = ""
DB_HOST = ""
DB_PORT = ""
DB_NAME = ""
CRYPTO_KEY = "Ключ для шифрование"
```
### Описание
Парсер журнала, отправляющий зарегистририванным пользователем - статистику их обучение.
### Как работает?
> При вызове команды /stats, пользователя просят авторизоваться для получение доступа к его журналу.
> После перехода в личные сообщение и вызова /auth {username} {password}, мы проверяем корректны ли данные, если да то отправляем статус запроса, и сохраняем в базу данных.
> После регистрации, команда /stats и /schedule становится доступными, при их вызове мы получаем нужные данные из БД, и парсим данные с сайта.
### Доступные командыы
> [!TIP]
> /start - Вывод привественного сообщения.
> [!TIP]
> /auth {username} {password} - Регистрация польователя в боте, сохранение его авторизицонных данных от сайта в бд.
> [!TIP]
> /stats - Вывод статистики.
> [!TIP]
> /schedule - Вывод расписание.
# JournalParser #ENG
[EN](https://github.com/kite-house/JournalParser?tab=readme-ov-file#JournalParser-ru)
> [!IMPORTANT]
> College journal parser, and sending data in telegrams to a specific user.
### How to install?
> pip install requirements.txt
> Create .env
```
TELEGRAM_ACCESS_TOKEN = "Bot telegram token"
DB_USER = ""
DB_PASSWORD = ""
DB_HOST = ""
DB_PORT = ""
DB_NAME = ""
CRYPTO_KEY = ""Key for encryption"
```
### Description
A log parser that sends registered user statistics to their training.
### How does it work?
> When calling the /stats command, the user is asked to log in to access his log.
> After going to a private message and calling /auth {username} {password}, we check whether the data is correct, if so, we send the status of the request, and save it to the database.
> After registration, the /stats command becomes available, when we call it, we get the necessary data from the database, and the parser data from the site.
### Available commands
> [!TIP]
> /start - Output of the original message.
> [!TIP]
> /auth {username} {password} - Registration of the user in the bot, saving his authorization data from the site in the database.
> [!TIP]
> /stats - Statistics output.
> [!TIP]
> /schedule - Schedule output.