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:
- Connect to wss://webalfa-cm3.dingtalk.com/long
- Send registration: {"lwp":"/reg","headers":{"app-key":"...","token":"<cookie-token>","ua":"...","mid":"0 0"}}
- Receive registration ack with code 200
- Make RPC calls: {"lwp":"<uri>","headers":{"mid":"<N> 0"},"body":[...]}
- 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.