dsh-course-subtitles: Course Subtitle Scraping, Translation, and Publishing to Feishu

Introduction

On October 19, 2026, a new plugin focused on course learning was added to the DeepSeek Harness (DSH) ecosystem. Targeting video course learning scenarios, this plugin provides an automated workflow: fetching subtitles from multiple sources, rearranging them into complete sentences, performing line-by-line EN/ZH translation, automatically generating bilingual chapter titles, and finally publishing the content of each lesson to Feishu documents. Additionally, it supports exporting a course outline at zero token cost.

Core Capabilities

This plugin primarily accomplishes the following tasks:
* Multi-source Fetching: Supports fetching course subtitles from DeepLearning.AI, YouTube, Bilibili, and Coursera.
* Text Processing: Rearranges fragmented subtitles into complete sentences, performs line-by-line bilingual translation, and automatically generates bilingual chapter titles.
* Automated Publishing: Automatically generates Feishu documents, with one document per lesson.
* Outline Export: Exports the course directory structure without calling any models, consuming zero tokens.
* Security and Fault Tolerance: Contains no hardcoded keys; keys are sourced from environment variables or the DSH credential library. Supports LLM credential fallback mechanisms.

Prerequisites

The following environment setup is required before use:
* Node.js: Version 18 or higher is required.
* Feishu App: A corporate self-built app must be created with wiki:wiki, docx:document, and drive:drive permissions enabled. This app must be added to the member list of the target knowledge base, otherwise, permission errors will occur.
* LLM API Key: DeepSeek official API or any OpenAI-compatible service.

Installation and Configuration

1. Install the Plugin

Install using the official command provided:

dsh plugin --profile web add github:fengchang618gmail/dsh-course-subtitles

After installation, restart the DSH process.

2. Configure Keys

Set environment variables in the terminal where DSH is launched; the plugin will read these variables at runtime:

# macOS / Linux
export FEISHU_APP_ID=cli_xxxxxxxxxxxx
export FEISHU_APP_SECRET=xxxxxxxxxxxxxxxx
export DEEPSEEK_API_KEY=sk-xxxxxxxxxxxx

# Windows PowerShell
$env:FEISHU_APP_ID="cli_xxxxxxxxxxxx"
$env:FEISHU_APP_SECRET="xxxxxxxxxxxxxxxx"
$env:DEEPSEEK_API_KEY="sk-xxxxxxxxxxxx"

Usage

Once installed and configured, simply issue commands directly in the DSH conversation. The plugin provides the following tool functions:
* course_subtitles_run: Executes fetching, translation, chapter division, and writes to Feishu.
* course_outline_run: Exports only the course outline (zero tokens).
* course_subtitles_status: Views running progress and links to generated documents.
* course_proxy_status: Checks network proxy status.
* course_llm_status: Views the list of available LLM credentials.

Example command:

Please run the course subtitles for https://learn.deeplearning.ai/courses/generative-ai-for-everyone and write them to Feishu at https://your-tenant.feishu.cn/wiki/xxxxxxxxxxxxxxxxxxxx

Notes

  • Platform Limitations: Accessing YouTube from mainland China requires a local proxy; Coursera support is experimental and requires login cookies; Bilibili requires videos to have uploaded or AI-generated subtitle tracks.
  • Permission Requirements: The Feishu app must be added as a member to the target knowledge base, otherwise, errors will occur.

References

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye