- LMSDownloader: https://github.com/F33RNI/LMSDownloader
- python-telegram-bot: https://github.com/python-telegram-bot/python-telegram-bot
- Install Python and pip
- Download source code
- Create virtual environment
python -m venv venv
and activate it - Install requirements
pip install -r requirements.txt --upgrade
- Carefully change all the settings (in the
config.json
file) to suit your needs. If you have questions regarding any setting, open an issue, I will add a more detailed description - Create bot at https://t.me/BotFather
- Type Bot's token into
bot_api_token
inconfig.json
file - Run main script
python main.py
- You can edit telegram bot messages by editing file
messages.json
. You can add new lines by adding\\n
Note: make sure you don't delete argumensts {}
, {0}
, {1}
, ... in message and please restart python script to apply changes
🏠 LMSDownloader-telegram-bot v.1.0.0
💜 Author: Fern Lane (aka F3RNI)
😺 GitHub page: https://github.com/F33RNI/LMSDownloader-telegram-bot
💬 Now send a login, password and link to download in format:
your_lms_login
your_lms_password
link_to_download
🔒 The bot does not save your login details. Therefore, you will have to write them every time. Also, all logs are duplicated in your messages
🏠 LMSDownloader-telegram-bot v.1.0.0
💜 Разработка: Ферн Лейн (F3RNI)
😺 Страница проекта на GitHub: https://github.com/F33RNI/LMSDownloader-telegram-bot
💬 Теперь, отправьте Ваш логин, пароль и ссылку для скачивания в формате:
логин_от_лмс
пароль_от_лмс
ссылка_для_скачивания
🔒 Бот не сохраняет ваши данные для входа. Поэтому, Вам придётся писать их каждый раз. Также, все логи дублируются в ваши сообщения
💬 Example / пример:
(each element on a new line, but in one message / каждый элемент на новой строке, но в одном сообщении)
test_mail@gmail.com
my_strong_password
https://online.mospolytech.ru/mod/scorm/view.php?id=158345
- Install Python and pip
- Clone repo
git clone https://github.com/F33RNI/LMSDownloader-telegram-bot/
cd LMSDownloader-telegram-bot
- Edit
config.json
- Install systemd
sudo apt-get install -y systemd
- Create new service file
sudo nano /etc/systemd/system/lmsdownloader.service
[Unit] Description=LMSDownloader-telegram-bot service After=multi-user.target [Service] Type=simple Restart=on-abort WorkingDirectory=/PATH_TO/lmsdownloader ExecStart=/PATH_TO/lmsdownloader/venv/bin/python main.py RestartSec=5 [Install] WantedBy=multi-user.target
- Reload systemctl daemon
sudo systemctl daemon-reload
- Enable and start service
sudo systemctl enable lmsdownloader
sudo systemctl start lmsdownloader
The bot does not save and doesn't log users and login / password details
- Anyone can contribute! Just create a pull request
- If you find a real bug, please create an Issue