dingtalk

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 4, 2026 License: Unlicense Imports: 20 Imported by: 0

Documentation

Overview

Package dingtalk implements an extractor for n.dingtalk.com / h5.dingtalk.com live replay shares, alidocs.dingtalk.com document previews, and shanji.dingtalk.com AI transcribe replays.

This extractor implements the full LWP (Lightweight Protocol) WebSocket client, ported from the decompiled Dingtalk_Live_Client.pyc source. LWP is a JSON-over-WebSocket RPC protocol connecting to wss://webalfa-cm3.dingtalk.com/long.

Supported URL types:

  • Live replay: n.dingtalk.com/dingding/live-room/index.html?roomId=X&liveUuid=Y
  • Public live share: h5.dingtalk.com/group-live-share/index.htm?encCid=X&liveUuid=Y
  • AI transcribe: shanji.dingtalk.com/app/transcribes/<uuid>
  • Document preview: alidocs.dingtalk.com/... (REST, no LWP needed)

Package dingtalk contains the LWP (Lightweight Protocol) WebSocket client for DingTalk live replay resolution.

LWP is a JSON-over-WebSocket RPC layer. The protocol is:

  1. Connect to wss://webalfa-cm3.dingtalk.com/long
  2. Send registration: {"lwp":"/reg","headers":{"app-key":"...","token":"<cookie-token>","ua":"...","mid":"0 0"}}
  3. Receive registration ack with code 200
  4. Make RPC calls: {"lwp":"<uri>","headers":{"mid":"<N> 0"},"body":[...]}
  5. Match response by mid header

Ported from Dingtalk_Live_Client.pyc (LwpClient class, ~170 lines of core logic).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DingTalk

type DingTalk struct{}

func (*DingTalk) Extract

func (d *DingTalk) Extract(rawURL string, opts *extractor.ExtractOpts) (*extractor.MediaInfo, error)

func (*DingTalk) Patterns

func (d *DingTalk) Patterns() []string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL