|
||
---|---|---|
examples/systemd | ||
mirzaev/parser_from_interneturok/system | ||
.gitignore | ||
LICENSE | ||
README.md | ||
composer.json | ||
install.sh |
parser_from_interneturok
Chat-robot Telegram for parsing homeworks by subject name, grade and number of the week
Dependencies
- PHP 8.4
- Composer (php package manager)
- MINIMAL (PHP framework)
- Zanzara (Telegram framework + ReactPHP)
- Baza (binary database)
- NGINX (web server) (can be replaced)
- SystemD (service manager) (can be replaced)
You can find other dependencies in the file /composer.json
Installation
SystemD (or any alternative you like)
You can copy an example of systemd file from here: /examples/systemd/ parser_from_interneturok-telegram.service
Execute: sudo cp parser_from_interneturok-telegram.service /etc/systemd/system/ parser_from_interneturok-telegram.service && sudo chmod +x /etc/systemd/system/ parser_from_interneturok-telegram.service
before you execute the command think about what it does and whether the paths are specified correctly
the configuration file is very simple and you can remake it for any alternative to SystemD that you like
InternetUrok accounts
Fill in the file: /mirzaev/parser_from_interneturok/system/storage/accounts.csv
Format: "mail password" (separated by 1 space symbol)
mail password
mail password
mail password
Authorized Telegram accounts
Fill in the file: /mirzaev/parser_from_interneturok/system/settings/accounts.php
return [
1053489457, // Arsen Mirzaev Tatyano-Muradovich @redloser
]
You can get the telegram account identifier by @RawDataBot
Chat-robot Telegram token
Fill in the file: /mirzaev/parser_from_interneturok/system/settings/telegram.php
You can get the chat-robot telegram token by @BotFather