TiKyisme/bk-lms-downloader
소개
Desktop downloader and sync utility for HCMUT BK-LMS, with local AI Study Pack export.
학습 및 교육What you can do
- Chrome-based login without password fields.
- Saved courses, output-folder memory, manual add/edit, checked/all removal, and safe course import.
- Sequential Sync selected / Sync all with one in-memory session per batch, bounded resource timeouts, live activity, and safe cancellation.
- Independent My Courses and Recent Activity scrolling without moving the main page while the pointer is inside either panel.
측정된 스타 증가
- in 24h
- 0
- in 7 days
- +1
- in 15 days
- +1
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalBK-LMS Downloader
Desktop downloader and sync utility for HCMUT BK-LMS course materials, with local AI Study Pack export for source-grounded tutoring.
For HCMUT students: download a packaged app, sign in directly in Chrome, sync course materials, and optionally export one local AI Study Pack ZIP per course. No Python setup is required for the packaged GUI.
Trang giới thiệu: tikyisme.github.io/bk-lms-downloader
Downloads
Windows khuyến nghị: cài từ Microsoft Store.
Bạn cũng có thể tải các gói đóng gói từ GitHub Releases.
- Windows:
BK-LMS-Downloader-Windows.exe - Apple Silicon Mac (M1/M2/M3/M4/M5 và mới hơn):
BK-LMS-Downloader-macOS-arm64.dmg - Intel Mac:
BK-LMS-Downloader-macOS-x64.dmg
On a Mac, open Apple menu → About This Mac: it shows either an Apple chip or an Intel processor. macOS assets are unsigned until Developer ID signing and Apple notarization are configured; Gatekeeper may require an explicit user approval for such builds. See macOS packaging notes. No Python or Git setup is needed for the normal GUI experience.
How to use
- Open the app and click Mở Chrome để đăng nhập.
- Log in directly on the official BK-LMS website in Chrome.
- Add a course URL once, or click Nhập từ BK-LMS to choose courses from your enrolled-course list. The import dialog lets you choose the output folder before confirming; the selected folder is shared by newly imported courses only.
- Choose courses and click Đồng bộ tất cả (or Đồng bộ đã chọn).
- The activity panel shows the current resource and elapsed time. Use Hủy đồng bộ to stop safely; completed files stay in place.
- Run Đồng bộ tất cả again later; existing unchanged files are skipped.
- To study with ChatGPT: tick one or more synced courses, choose Công cụ →
Tạo / cập nhật AI Study Pack đã chọn, then upload the generated one-ZIP-per-course
<CourseName>_AI_Study_Pack.zipfiles. Each ZIP bootstraps its own tutor from00_START_HERE.md; no large setup prompt is required.
The app remembers both your course list and last output folder. You can remove checked courses or all courses from the app list; this never deletes downloaded files or folders on your computer.
Screenshot

The screenshot is representative of the desktop workflow; a refreshed capture will be added when a current manually verified image is available.
Features
- Chrome-based login without password fields.
- Saved courses, output-folder memory, manual add/edit, checked/all removal, and safe course import.
- Sequential Sync selected / Sync all with one in-memory session per batch, bounded resource timeouts, live activity, and safe cancellation.
- Independent My Courses and Recent Activity scrolling without moving the main page while the pointer is inside either panel.
- Compact student-friendly folders: course info, lectures, labs, assignments, references, and other material.
- Linked courses are flattened into the main course output; Lab sections stay grouped.
- Existing files are kept when unchanged; Vietnamese filenames are repaired.
- Video downloads are permanently disabled.
- Passive GitHub Release update notice—updates only open after your click.
- Hướng dẫn nhanh cho hồ sơ mới; có thể mở lại từ Trợ giúp.
- Phản hồi trong ứng dụng mở trang GitHub đã điền sẵn để bạn tự xem và gửi.
- Tùy chọn bổ sung đề Midterm/Final công khai từ HCMUT Coursewave khi cập nhật AI Study Pack.
- Local Công cụ → Chuẩn bị cho AI preparation for checked courses or all courses—also included in the Windows release.
Privacy
- The app never asks for or stores your BK-LMS username or password.
- Chrome cookies are copied only to an in-memory session for the active sync.
courses.jsonandsettings.jsoncontain only normal course/UI preferences.- Local application logs redact cookies, Authorization headers, and session values.
Troubleshooting
Chrome opens but sync asks you to log in again — sign in on the official BK-LMS page in the Chrome window, then retry.
Nhập từ BK-LMS cannot read courses — the dashboard layout may have changed, or the session may have expired. Add the course URL manually; that always remains available.
Cannot write files — edit the course and choose a folder where your Windows account has write permission.
AI preparation fails — ensure the course has been synced first, then check the app activity log. The Windows release already includes the local AI preparation components; no Python, pip, or API key is required.
For Windows support diagnostics, run BK-LMS-Downloader-Windows.exe --diagnose-ai; it verifies
the same synthetic batch path and writes ai-self-test-diagnostics.log beside
the command's working directory.
Output layout
The crawler may follow Moodle material deeply, but saved files remain compact:
Course/
├── 01_Thông tin môn học/
├── 02_Bài giảng/
├── 03_Lab/
├── 04_Bài tập/
├── 05_Tài liệu tham khảo/
├── 06_Khác/
└── _meta/
There is no Complete Archive mode, no COURSE_* output tree, no
_inline_content output tree, and no video-download option.
Optional AI preparation
For downloaded courses, choose Công cụ → Tạo / cập nhật AI Study Pack đã chọn or
Tạo / cập nhật AI Study Pack tất cả. Each course gets exactly one local
<CourseName>_AI_Study_Pack.zip ready for ChatGPT upload. The pack starts
with the numbered control files 00_START_HERE.md through
05_RESUME_STATE.md; it also retains original lecture visual sources when
diagrams matter. Intermediate extraction and AI_Knowledge output are not
left beside the course.
Desktop releases include this local preparation feature; it does not add AI
chat, cloud accounts, API keys, video transcription, or CUDA requirements.
Coursewave bổ sung đề thi là tùy chọn, chỉ dùng liên kết công khai, và chỉ thu thập Midterm/Final. Tài liệu giảng viên vẫn là nguồn dạy học chính; đề cũ chỉ giúp AI điều chỉnh dạng câu hỏi và mức độ nhấn mạnh. Xem Coursewave và đề thi.
See tools/README_prepare_ai_course.md for the standalone source-tool workflow.
Microsoft Store packaging uses a four-component version whose last component
must remain 0; see Microsoft Store versioning.
Documentation
See the documentation index for architecture, release, security, packaging, Store-versioning, Chrome, and AI Study Pack guidance.
Trạng thái phát hành
v1.5.1 đã phát hành trên GitHub Releases. AI Study Pack hiện có thể giảm các biểu diễn trình chiếu trùng lặp khi equivalence được kiểm chứng cục bộ; mức giảm tùy theo từng course. Bản cập nhật Microsoft Store v1.5.1 có thể được phát hành sau GitHub; Store có thể vẫn hiển thị bản đã được duyệt trước đó trong thời gian này.
CLI (advanced)
One course:
bklms --course-url "https://lms.hcmut.edu.vn/course/view.php?id=123456" --output "D:\University\BK_LMS_Data"
Multiple courses:
Copy-Item courses.example.txt courses.txt
bklms --courses-file courses.txt --output "D:\University\HK1"
Development
Requirements: Python 3.10+ and Google Chrome. Windows 10/11 and macOS are supported packaging targets.
py -m venv .venv
.\.venv\Scripts\Activate.ps1
python -m pip install -U pip
pip install -e ".[dev]"
pytest -q
Start the GUI with bklms-gui or python app.py. Build the Windows artifact
with ./scripts/build_windows.ps1; on a real Mac, build a native DMG with
bash scripts/build_macos.sh arm64 or bash scripts/build_macos.sh x64.
Disclaimer
This is an unofficial student utility, not affiliated with HCMUT or BK-LMS. Use it only for material your account is authorized to access and respect course policies and copyright.
License
MIT License. See LICENSE.
관련 프로젝트 살펴보기
불러오는 중…