Skip to main content

Capture WeChat Video Channel (视频号) live streams via fake screen casting (DLNA / AirPlay / Chromecast)

Project description

wechat-finder-dlna

中文文档 · Rust version →

PyPI Python License

Grab WeChat Video Channel (视频号) live stream URLs by faking a TV on your LAN.

No proxy, no certificate, no MITM — just standard casting protocols your smart TV already speaks.

Supports three casting protocols simultaneously:

Protocol Discovery How it captures
DLNA/UPnP SSDP multicast SetAVTransportURI SOAP action
AirPlay mDNS/Bonjour HTTP /play endpoint
Google Cast mDNS Cast V2 LOAD command over TLS
┌──────────┐  DLNA / AirPlay  ┌─────────────────────┐
│  WeChat   │  / Chromecast   │ wechat-finder-dlna  │
│  (phone)  │ ──────────────► │ (your computer)     │
└──────────┘   "投屏"         └────────┬────────────┘
                                       │
                              captures the m3u8 URL
                                       │
                                       ▼
                              ffmpeg / VLC / mpv / ...

The tool advertises itself as a media receiver on the local network using all three protocols. When you cast a live stream from WeChat (or Bilibili, iQiyi, Youku — anything that supports casting), the app sends the real stream URL. We grab it and either print it or pipe it straight into ffmpeg.

WeChat can't tell the difference between this and a real TV — there's nothing to detect.

Install

# uv (recommended)
uv tool install wechat-finder-dlna

# pip
pip install wechat-finder-dlna

Python 3.10+, dependencies are installed automatically.

Quick start

# All protocols enabled by default
wechat-finder-dlna

# DLNA only (original behavior)
wechat-finder-dlna --protocol dlna

# AirPlay + Chromecast only
wechat-finder-dlna --protocol airplay cast

# Record to file (needs ffmpeg)
wechat-finder-dlna --record live.mp4 --duration 01:00:00

# Pipe to VLC
wechat-finder-dlna | xargs vlc

# Show up as "Living Room TV" in the cast list
wechat-finder-dlna --name "Living Room TV"

As a library:

from wechat_finder_dlna import capture

url = capture(name="My Recorder")
# do whatever you want with the m3u8 URL

# Specify protocols
url = capture(name="My TV", protocols=["dlna", "airplay"])

Requirements

  • Python 3.10+
  • Phone and computer on the same WiFi / LAN
  • ffmpeg only if you use --record

How it works

DLNA/UPnP

  1. SSDP multicast — announces a MediaRenderer on 239.255.255.250:1900.
  2. UPnP device description — replies with XML descriptor that looks like a TV.
  3. SOAP control — the app sends SetAVTransportURI with the stream URL.

AirPlay

  1. mDNS/Bonjour — advertises an _airplay._tcp service via zeroconf.
  2. HTTP server — handles the /play endpoint where senders POST the video URL.

Google Cast (Chromecast)

  1. mDNS — advertises a _googlecast._tcp service.
  2. TLS + Cast V2 — runs a TLS server on port 8009 speaking the Cast protobuf protocol.
  3. Media LOAD — captures the contentId URL from the sender's LOAD command.

FAQ

Does this work with replays / VODs? This is for live streams. For VOD downloads, look into tools that use the WeChat Web sync protocol.

Does this work with apps other than WeChat? Yes — any app that supports DLNA/AirPlay/Chromecast casting works. Bilibili, iQiyi, Youku, Tencent Video, etc.

Can WeChat detect or block this? No. The protocol is standard UPnP/DLNA. From WeChat's perspective this is just another TV on the network.

Rust version

wechat-finder-dlna-rs — same protocols, async Rust, compiles to a single static binary with zero runtime dependencies. Better suited for long-running capture, embedded/NAS deployment, or if you don't want a Python runtime.

See also

  • dlnap — control DLNA renderers from the command line (the other direction: you push to a TV)
  • macast — full-featured DLNA renderer with GUI, uses mpv for playback

License

GPL-3.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wechat_finder_dlna-0.4.1.tar.gz (40.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wechat_finder_dlna-0.4.1-py3-none-any.whl (43.1 kB view details)

Uploaded Python 3

File details

Details for the file wechat_finder_dlna-0.4.1.tar.gz.

File metadata

  • Download URL: wechat_finder_dlna-0.4.1.tar.gz
  • Upload date:
  • Size: 40.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for wechat_finder_dlna-0.4.1.tar.gz
Algorithm Hash digest
SHA256 9e741c8d523644c565c5dfdf9970c5723954bd44d648cec01edc79c6d7ee52fb
MD5 f19e909de89a6591591456143ac7aac0
BLAKE2b-256 4eb031bb7a05b19bab6b01dd58b12f61e8aac6b687591e561c00cb4c9bbc4cae

See more details on using hashes here.

File details

Details for the file wechat_finder_dlna-0.4.1-py3-none-any.whl.

File metadata

File hashes

Hashes for wechat_finder_dlna-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4aa87e0549f38a782effff52aee0a1f16f1fa9f0c6e80667a3e3b4801ac8f54e
MD5 57797fbae6fcb0862e2c37f0ae6b0a10
BLAKE2b-256 b7dc8876a44fc594ad7a4e63cb5efa7a1b20617d9aa5bae690e024d2c29eea4a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page