Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/f33rni/lmsdownloader-telegram-bot
Telegram bot for downloading presentations and lectures from LMS using headless Chrome
https://github.com/f33rni/lmsdownloader-telegram-bot
automation browser-automation chrome downloader headless lectures mospolytech pdf python python-telegram-bot selenium
Last synced: about 2 months ago
JSON representation
Telegram bot for downloading presentations and lectures from LMS using headless Chrome
- Host: GitHub
- URL: https://github.com/f33rni/lmsdownloader-telegram-bot
- Owner: F33RNI
- License: agpl-3.0
- Created: 2023-11-03T20:04:01.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-11-03T20:08:37.000Z (over 1 year ago)
- Last Synced: 2024-11-05T20:27:33.649Z (3 months ago)
- Topics: automation, browser-automation, chrome, downloader, headless, lectures, mospolytech, pdf, python, python-telegram-bot, selenium
- Language: Python
- Homepage:
- Size: 199 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 🏠 LMSDownloader-telegram-bot
### Telegram bot for downloading presentations and lectures from LMS using headless Chrome
![]()
![](Banner.png)
----------
## 📙 Dependencies
- **LMSDownloader**: https://github.com/F33RNI/LMSDownloader
- **python-telegram-bot**: https://github.com/python-telegram-bot/python-telegram-bot----------
## ❓ Get started
1. Install Python and pip
2. Download source code
3. Create virtual environment `python -m venv venv` and activate it
4. Install requirements `pip install -r requirements.txt --upgrade`
5. 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
6. Create bot at https://t.me/BotFather
7. Type Bot's token into `bot_api_token` in `config.json` file
8. Run main script `python main.py`----------
## 💬 Bot messages
- 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
#### /start
```
🏠 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 / каждый элемент на новой строке, но в одном сообщении)[email protected]
my_strong_password
https://online.mospolytech.ru/mod/scorm/view.php?id=158345
```----------
## 🐧 Running as service on linux
1. Install Python and pip
2. Clone repo
1. `git clone https://github.com/F33RNI/LMSDownloader-telegram-bot/`
2. `cd LMSDownloader-telegram-bot`
3. Edit `config.json`
4. Install systemd
1. `sudo apt-get install -y systemd`
5. Create new service file
1. `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
```
6. Reload systemctl daemon
1. `sudo systemctl daemon-reload`
7. Enable and start service
1. `sudo systemctl enable lmsdownloader`
2. `sudo systemctl start lmsdownloader`----------
## 📜 Data collecting
The bot does not save **and doesn't log** users **and login / password** details
----------
## ✨ Contribution
- Anyone can contribute! Just create a pull request
----------
### 🚧 P.S. This project is under development!
- If you find a real bug, please create an Issue