course
/course
Rozwija i debuguje narzędzie CLI w Rust do platformy dydaktycznej Uniwersytetu Pekińskiego (Blackboard Learn): pobieranie materiałów i wideo, składanie zadań, scraping HTML przez crate scraper i logowanie SSO.
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 23.10.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Rozwija i debuguje narzędzie CLI w Rust do platformy dydaktycznej Uniwersytetu Pekińskiego (Blackboard Learn): pobieranie materiałów i wideo, składanie zadań, scraping HTML przez crate scraper i logowanie SSO.
Oryginalny opis (EN)
PKU Teaching Platform (北大教学网/Blackboard Learn) CLI tool built in Rust. Use this skill when working on the course crate, debugging course commands, adding features to the teaching platform CLI, or when the user mentions 教学网, Blackboard, course downloads, assignment submission, video downloads, or PKU teaching. Also use when dealing with HTML scraping via the scraper crate, Blackboard SSO callback, or multipart file uploads. **NOT for course schedule / 课表 / weekly timetable questions — for those use the `treehole` skill (`treehole course`), which is the canonical source and includes 辅修/双学位.** Th
Jak działa
- Architecture
- Key Source Files
- CLI Commands
- Auto-Login for AI Agents
- Development Notes
Podgląd SKILL.md
---
name: course
description: "PKU Teaching Platform (北大教学网/Blackboard Learn) CLI tool built in Rust. Use this skill when working on the course crate, debugging course commands, adding features to the teaching platform CLI, or when the user mentions 教学网, Blackboard, course downloads, assignment submission, video downloads, or PKU teaching. Also use when dealing with HTML scraping via the scraper crate, Blackboard SSO callback, or multipart file uploads. **NOT for course schedule / 课表 / weekly timetable questions — for those use the `treehole` skill (`treehole course`), which is the canonical source and includes 辅修/双学位.** This `course` crate only deals with the Blackboard teaching platform (assignments, files, recordings, announcements)."
version: 2.0.0
---
# Course - 北大教学网 CLI
A CLI client for PKU's Blackboard Learn teaching platform.
## Architecture
- **Crate location**: `crates/course/`
- **Auth flow**: IAAA SSO (`app_id="blackboard"`) → Blackboard SSO endpoint callback
- **API**: HTML scraping with `scraper` crate (no JSON API available)
- **File upload**: multipart form via reqwest
## Key Source Files
- `src/main.rs` — Clap CLI with subcommands
- `src/commands.rs` — Command implementations
- `src/api.rs` — HTML scraping logic, page parsers
- `src/display.rs` — Terminal output formatting
- `src/client.rs` — reqwest client builders
## CLI Commands
| Command | Alias | Function |
|---------|-------|----------|
| `login` / `logout` / `status` | | IAAA → Blackboard auth |
| `courses` | | List enrolled courses (supports `--all` for all semesters) |
| `info` | | Course details |
| `content` | | Browse course content tree |
| `assignments` | | List assignments with deadlines |
| `assignment` | | View single assignment |
| `browse` | | Interactive course content browser |
| `assignment-download` | `adl` | Download assignment attachments |
| `download` | | Download course files |
| `video-download` | `vdl` | Download course recordings |
| `videos` | `vls` | List available videos |
| `submit` | | Upload homework files |
| `otp` | | TOTP 2FA management |
## Auto-Login for AI Agents
```bash
# Check session status
info-auth check
# Auto-login (reads credentials from OS keyring, no password needed)
course login -p
```
## Development Notes
- HTML parsing is the primary data extraction method — no REST API
- Assignment list supports deadline-based sorting
- Video download handles replay/recording URLs
- All user-facing strings in **Chinese**
- Error handling: `anyhow::Result` with `.context("中文描述")`
- Session persisted to `~/.config/info/course/`
- Credentials resolved via `info_common::credential` (keyring → env → interactive)
Wersje
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · pkuinfo/pkucli | 100 | MIT |
| sasajib/principles-first | 100 | MIT |
Migawka bazy z 13.11.2026 · wersja paczki 53a37223f8d9 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100treehole
Pomaga rozwijać CLI do forum PKU Treehole napisanego w Ruście, w tym przepływ logowania i endpointy API. - 100elective
Pomaga pracować z narzędziem CLI w Rust do wyboru zajęć na PKU: debugowanie komend, rozpoznawanie CAPTCHA i automatyczne zapisy na przedmioty. - 86rust-review
Przegląda kod Rust, diff lub crate przed wdrożeniem i ocenia, czy jest poprawny oraz idiomatyczny. - 100rust-learner
Pomaga śledzić nowości w Rust: changelogi wersji, aktualizacje crate'ów, zależności w Cargo.toml oraz funkcje tokio, serde i axum. - 100behavior-trees
Tworzy i edytuje zasoby Behavior Tree i Blackboard: kompozyty, zadania, dekoratory, serwisy, powiązania kluczy blackboard oraz walidację i naprawę drzew. - 96ds-rust
Zmienia zachowanie crate w Rust, funkcje Cargo, cykle życia async i granice zależności natywnych w istniejącym projekcie.