MCPcopy Index your code
hub / github.com/denymz/sh-tel-iptv-spider

github.com/denymz/sh-tel-iptv-spider @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
189 symbols 595 edges 55 files 39 documented · 21% updated 3mo ago★ 444 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

iptv-spider-sh

上海电信 IPTV 抓取程序,用于抓取 IPTV EPG 和 M3U8 数据。

环境要求

  1. 上海电信 IPTV 机顶盒以及账号
  2. mysql 数据库
  3. 能够访问 IPTV 专网网络

因为 IPTV 专网的限制,程序需要在能够访问 IPTV 专网的环境中运行,该程序访问的所有地址都必须走专网出口,无法通过公网抓取。 回放地址也需要走专网才能访问。

安装使用

自行探索

其他说明

  1. 程序使用Go语言编写,编译后可在支持的系统上运行。
  2. 程序会将抓取到的频道列表和流媒体地址存储到 mysql 数据库中,数据库结构请参考源码中的建表语句。
  3. 程序仅支持上海电信 IPTV,其他地区或运营商的 IPTV 无法使用。
  4. 代码写的比较烂,欢迎有兴趣的同学自行fork改进。

免责申明

  1. 本程序仅供学习和研究使用,请勿用于商业用途。
  2. 如因使用本程序而引起的任何法律纠纷或其他问题,作者概不负责。
  3. 使用本程序即表示您同意遵守相关法律法规,并自行承担使用风险。

Extension points exported contracts — how you extend this code

HttpClientOption (FuncType)
(no doc)
modules/http_client/client.go
ClientOption (FuncType)
(no doc)
modules/auth/options.go

Core symbols most depended-on inside this repo

Error
called by 36
initialize/internal/logger.go
Info
called by 26
initialize/internal/logger.go
New
called by 25
initialize/internal/logger.go
Printf
called by 15
initialize/internal/logger.go
Request
called by 11
modules/http_client/client.go
Get
called by 11
modules/jsvm/vm.go
logNexTime
called by 10
main.go
GetRespBytes
called by 9
modules/http_client/client.go

Shape

Function 91
Method 62
Struct 34
FuncType 2

Languages

Go100%

Modules by API surface

initialize/internal/logger.go12 symbols
modules/http_client/client.go11 symbols
modules/auth/auth.go11 symbols
modules/jsvm/vm.go10 symbols
utils/rsa.go8 symbols
modules/m3u/m3u8.go7 symbols
modules/auth/generate.go7 symbols
model/channel_info.go7 symbols
utils/padding.go6 symbols
model/xmltv.go6 symbols
main.go6 symbols
utils/utils.go5 symbols

For agents

$ claude mcp add sh-tel-iptv-spider \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page