浙江联通用户且已经办理iptv的用户可以尝试直接使用以下源
中央电视,#genre#
中央一套高清,http://124.90.44.40:6060/010/2/00000001000000060000000000000469/1000.m3u8?virtualDomain=010.live_hls.zte.com
中央二套高清,http://124.90.44.40:6060/010/2/00000001000000060000000000000471/1000.m3u8?virtualDomain=010.live_hls.zte.com
中央三套高清,http://124.90.44.40:6060/010/2/00000001000000060000000000000642/1000.m3u8?virtualDomain=010.live_hls.zte.com
中央四套,http://124.90.44.40:6060/010/2/20002000000000010000000002765807/1000.m3u8?virtualDomain=010.live_hls.zte.com
中央五套高清,http://124.90.44.40:6060/010/2/00000001000000060000000000000643/1000.m3u8?virtualDomain=010.live_hls.zte.com
中央六套高清,http://124.90.44.40:6060/010/2/00000001000000060000000000000644/1000.m3u8?virtualDomain=010.live_hls.zte.com
中央七套高清,http://124.90.44.40:6060/010/2/00000001000000060000000000000472/1000.m3u8?virtualDomain=010.live_hls.zte.com
中央八套高清,http://124.90.44.40:6060/010/2/00000001000000060000000000000645/1000.m3u8?virtualDomain=010.live_hls.zte.com
中央纪录高清,http://124.90.44.40:6060/010/2/00000001000000060000000000000473/1000.m3u8?virtualDomain=010.live_hls.zte.com
中央科教高清,http://124.90.44.40:6060/010/2/00000001000000060000000000000474/1000.m3u8?virtualDomain=010.live_hls.zte.com
中央戏曲,http://124.90.44.40:6060/010/2/20002000000000010000000002750676/1000.m3u8?virtualDomain=010.live_hls.zte.com
中央十二高清,http://124.90.44.40:6060/010/2/00000001000000060000000000000476/1000.m3u8?virtualDomain=010.live_hls.zte.com
中央新闻高清,http://124.90.44.40:6060/010/2/00000001000000060000000000000793/1000.m3u8?virtualDomain=010.live_hls.zte.com
中央少儿高清,http://124.90.44.40:6060/010/2/00000001000000060000000000000477/1000.m3u8?virtualDomain=010.live_hls.zte.com
中央音乐,http://124.90.44.40:6060/010/2/00000001000000060000000000000437/1000.m3u8?virtualDomain=010.live_hls.zte.com
中央十七套,http://124.90.44.40:6060/010/2/00000001000000060000000000000799/1000.m3u8?virtualDomain=010.live_hls.zte.com
中央奥运测试,http://124.90.44.40:6060/010/2/01000010000000060000000000002805/1000.m3u8?virtualDomain=010.live_hls.zte.com
CCTV5高清,http://124.90.44.40:6060/010/2/00000001000000060000000000000788/1000.m3u8?virtualDomain=010.live_hls.zte.com
中国教育一套,http://124.90.44.40:6060/010/2/00000001000000060000000000000432/1000.m3u8?virtualDomain=010.live_hls.zte.com
中国教育四套,http://124.90.44.40:6060/010/2/00000001000000060000000000000632/1000.m3u8?virtualDomain=010.live_hls.zte.com
地方台,#genre#
浙江卫视高清,http://124.90.44.40:6060/010/2/00000001000000060000000000000392/1000.m3u8?virtualDomain=010.live_hls.zte.com
钱江频道高清,http://124.90.44.40:6060/010/2/00000001000000060000000000000571/1000.m3u8?virtualDomain=010.live_hls.zte.com
浙江经视高清,http://124.90.44.40:6060/010/2/00000001000000060000000000000572/1000.m3u8?virtualDomain=010.live_hls.zte.com
教科影视高清,http://124.90.44.40:6060/010/2/00000001000000060000000000000576/1000.m3u8?virtualDomain=010.live_hls.zte.com
浙江新闻高清,http://124.90.44.40:6060/010/2/00000001000000060000000000000579/1000.m3u8?virtualDomain=010.live_hls.zte.com
民生休闲高清,http://124.90.44.40:6060/010/2/00000001000000060000000000000578/1000.m3u8?virtualDomain=010.live_hls.zte.com
浙江少儿高清,http://124.90.44.40:6060/010/2/00000001000000060000000000000580/1000.m3u8?virtualDomain=010.live_hls.zte.com
好易购1高清,http://124.90.44.40:6060/010/2/00000001000000060000000000000794/1000.m3u8?virtualDomain=010.live_hls.zte.com
杭州综合高清,http://124.90.44.40:6060/010/2/00000001000000060000000000000782/1000.m3u8?virtualDomain=010.live_hls.zte.com
西湖明珠高清,http://124.90.44.40:6060/010/2/00000001000000060000000000000783/1000.m3u8?virtualDomain=010.live_hls.zte.com
杭州生活高清,http://124.90.44.40:6060/010/2/00000001000000060000000000000784/1000.m3u8?virtualDomain=010.live_hls.zte.com
杭州影视高清,http://124.90.44.40:6060/010/2/00000001000000060000000000000785/1000.m3u8?virtualDomain=010.live_hls.zte.com
青少体育高清,http://124.90.44.40:6060/010/2/00000001000000060000000000000786/1000.m3u8?virtualDomain=010.live_hls.zte.com
杭州导视高清,http://124.90.44.40:6060/010/2/00000001000000060000000000000787/1000.m3u8?virtualDomain=010.live_hls.zte.com
宁波综合高清,http://124.90.44.40:6060/010/2/00000001000000060000000000000600/1000.m3u8?virtualDomain=010.live_hls.zte.com
宁波生活高清,http://124.90.44.40:6060/010/2/00000001000000060000000000000789/1000.m3u8?virtualDomain=010.live_hls.zte.com
宁波都市高清,http://124.90.44.40:6060/010/2/00000001000000060000000000000790/1000.m3u8?virtualDomain=010.live_hls.zte.com
宁波影视高清,http://124.90.44.40:6060/010/2/00000001000000060000000000000791/1000.m3u8?virtualDomain=010.live_hls.zte.com
温州一套高清,http://124.90.44.40:6060/010/2/00000001000000060000000000000490/1000.m3u8?virtualDomain=010.live_hls.zte.com
衢州一套高清,http://124.90.44.40:6060/010/2/01000010000000060000000000002837/1000.m3u8?virtualDomain=010.live_hls.zte.com
衢州二套高清,http://124.90.44.40:6060/010/2/01000010000000060000000000002838/1000.m3u8?virtualDomain=010.live_hls.zte.com
绍兴一套高清,http://124.90.44.40:6060/010/2/00000001000000060000000000000496/1000.m3u8?virtualDomain=010.live_hls.zte.com
之江纪录高清,http://124.90.44.40:6060/010/2/01000010000000060000000000002844/1000.m3u8?virtualDomain=010.live_hls.zte.com
东方卫视高清,http://124.90.44.40:6060/010/2/00000001000000060000000000000478/1000.m3u8?virtualDomain=010.live_hls.zte.com
湖南卫视高清,http://124.90.44.40:6060/010/2/00000001000000060000000000000394/1000.m3u8?virtualDomain=010.live_hls.zte.com
北京卫视高清,http://124.90.44.40:6060/010/2/00000001000000060000000000000449/1000.m3u8?virtualDomain=010.live_hls.zte.com
江苏卫视高清,http://124.90.44.40:6060/010/2/00000001000000060000000000000450/1000.m3u8?virtualDomain=010.live_hls.zte.com
安徽卫视高清,http://124.90.44.40:6060/010/2/00000001000000060000000000000459/1000.m3u8?virtualDomain=010.live_hls.zte.com
深圳卫视高清,http://124.90.44.40:6060/010/2/00000001000000060000000000000393/1000.m3u8?virtualDomain=010.live_hls.zte.com
天津卫视高清,http://124.90.44.40:6060/010/2/00000001000000060000000000000365/1000.m3u8?virtualDomain=010.live_hls.zte.com
重庆卫视高清,http://124.90.44.40:6060/010/2/00000001000000060000000000000585/1000.m3u8?virtualDomain=010.live_hls.zte.com
河南卫视高清,http://124.90.44.40:6060/010/2/00000001000000060000000000000586/1000.m3u8?virtualDomain=010.live_hls.zte.com
广东卫视高清,http://124.90.44.40:6060/010/2/00000001000000060000000000000395/1000.m3u8?virtualDomain=010.live_hls.zte.com
山东卫视高清,http://124.90.44.40:6060/010/2/00000001000000060000000000000436/1000.m3u8?virtualDomain=010.live_hls.zte.com
江西卫视高清,http://124.90.44.40:6060/010/2/00000001000000060000000000000587/1000.m3u8?virtualDomain=010.live_hls.zte.com
贵州卫视高清,http://124.90.44.40:6060/010/2/00000001000000060000000000000584/1000.m3u8?virtualDomain=010.live_hls.zte.com
四川卫视高清,http://124.90.44.40:6060/010/2/00000001000000060000000000000581/1000.m3u8?virtualDomain=010.live_hls.zte.com
河北卫视高清,http://124.90.44.40:6060/010/2/00000001000000060000000000000582/1000.m3u8?virtualDomain=010.live_hls.zte.com
东南卫视高清,http://124.90.44.40:6060/010/2/00000001000000060000000000000588/1000.m3u8?virtualDomain=010.live_hls.zte.com
湖北卫视高清,http://124.90.44.40:6060/010/2/00000001000000060000000000000461/1000.m3u8?virtualDomain=010.live_hls.zte.com
辽宁卫视高清,http://124.90.44.40:6060/010/2/00000001000000060000000000000583/1000.m3u8?virtualDomain=010.live_hls.zte.com
黑龙江高清,http://124.90.44.40:6060/010/2/00000001000000060000000000000462/1000.m3u8?virtualDomain=010.live_hls.zte.com
云南卫视,http://124.90.44.40:6060/010/2/20002000000000010000000002776036/1000.m3u8?virtualDomain=010.live_hls.zte.com
海南卫视,http://124.90.44.40:6060/010/2/20002000000000010000000002776012/1000.m3u8?virtualDomain=010.live_hls.zte.com
青海卫视,http://124.90.44.40:6060/010/2/20002000000000010000000002775980/1000.m3u8?virtualDomain=010.live_hls.zte.com
西藏卫视,http://124.90.44.40:6060/010/2/00000001000000060000000000000390/1000.m3u8?virtualDomain=010.live_hls.zte.com
陕西卫视,http://124.90.44.40:6060/010/2/20002000000000010000000002776000/1000.m3u8?virtualDomain=010.live_hls.zte.com
兵团卫视,http://124.90.44.40:6060/010/2/00000001000000060000000000000429/1000.m3u8?virtualDomain=010.live_hls.zte.com
山西卫视,http://124.90.44.40:6060/010/2/20002000000000010000000002776020/1000.m3u8?virtualDomain=010.live_hls.zte.com
宁夏卫视,http://124.90.44.40:6060/010/2/20002000000000010000000002776710/1000.m3u8?virtualDomain=010.live_hls.zte.com
广西卫视,http://124.90.44.40:6060/010/2/20002000000000010000000002776028/1000.m3u8?virtualDomain=010.live_hls.zte.com
内蒙古卫视,http://124.90.44.40:6060/010/2/00000001000000060000000000000593/1000.m3u8?virtualDomain=010.live_hls.zte.com
甘肃卫视,http://124.90.44.40:6060/010/2/00000001000000060000000000000594/1000.m3u8?virtualDomain=010.live_hls.zte.com
吉林卫视,http://124.90.44.40:6060/010/2/20002000000000010000000002776032/1000.m3u8?virtualDomain=010.live_hls.zte.com
其他频道,#genre#
金鹰卡通,http://124.90.44.40:6060/010/2/00000001000000060000000000000430/1000.m3u8?virtualDomain=010.live_hls.zte.com
哈哈炫动,http://124.90.44.40:6060/010/2/00000001000000060000000000000431/1000.m3u8?virtualDomain=010.live_hls.zte.com
卡酷少儿,http://124.90.44.40:6060/010/2/01000010000000060000000000002854/1000.m3u8?virtualDomain=010.live_hls.zte.com
北京纪实科教,http://124.90.44.40:6060/010/2/01000010000000060000000000002855/1000.m3u8?virtualDomain=010.live_hls.zte.com
法治天地,http://124.90.44.40:6060/010/2/01000010000000060000000000002816/1000.m3u8?virtualDomain=010.live_hls.zte.com
外文台,#genre#
CGTN,http://124.90.44.40:6060/010/2/00000001000000060000000000000479/1000.m3u8?virtualDomain=010.live_hls.zte.com
CGTNSpanish,http://124.90.44.40:6060/010/2/00000001000000060000000000000800/1000.m3u8?virtualDomain=010.live_hls.zte.com
CGTNFrench,http://124.90.44.40:6060/010/2/00000001000000060000000000000801/1000.m3u8?virtualDomain=010.live_hls.zte.com
CGTNArabic,http://124.90.44.40:6060/010/2/00000001000000060000000000000802/1000.m3u8?virtualDomain=010.live_hls.zte.com
CGTNRussian,http://124.90.44.40:6060/010/2/00000001000000060000000000000803/1000.m3u8?virtualDomain=010.live_hls.zte.com
FM广播,#genre#
浙江之声,http://124.90.44.40:6060/010/2/00000001000000060000000000000481/1000.m3u8?virtualDomain=010.live_hls.zte.com
经济频道,http://124.90.44.40:6060/010/2/00000001000000060000000000000483/1000.m3u8?virtualDomain=010.live_hls.zte.com
音乐调频,http://124.90.44.40:6060/010/2/00000001000000060000000000000484/1000.m3u8?virtualDomain=010.live_hls.zte.com
民生资讯,http://124.90.44.40:6060/010/2/00000001000000060000000000000488/1000.m3u8?virtualDomain=010.live_hls.zte.com
交通之声,http://124.90.44.40:6060/010/2/00000001000000060000000000000485/1000.m3u8?virtualDomain=010.live_hls.zte.com
城市之声,http://124.90.44.40:6060/010/2/00000001000000060000000000000487/1000.m3u8?virtualDomain=010.live_hls.zte.com
旅游之声,http://124.90.44.40:6060/010/2/00000001000000060000000000000486/1000.m3u8?virtualDomain=010.live_hls.zte.com
浙江新闻广播,http://124.90.44.40:6060/010/2/00000001000000060000000000000482/1000.m3u8?virtualDomain=010.live_hls.zte.com
测试台,#genre#
联通测试1,http://124.90.44.40:6060/010/2/01000010000000060000000000002859/1000.m3u8?virtualDomain=010.live_hls.zte.com
联通测试2,http://124.90.44.40:6060/010/2/01000010000000060000000000002860/1000.m3u8?virtualDomain=010.live_hls.zte.com
联通测试3,http://124.90.44.40:6060/010/2/01000010000000060000000000002831/1000.m3u8?virtualDomain=010.live_hls.zte.com
联通测试四,http://124.90.44.40:6060/010/2/01000010000000060000000000002832/1000.m3u8?virtualDomain=010.live_hls.zte.com
联通测试2,http://124.90.44.40:6060/010/2/01000010000000060000000000002830/1000.m3u8?virtualDomain=010.live_hls.zte.com
联通测试7,http://124.90.44.40:6060/010/2/01000010000000060000000000002835/1000.m3u8?virtualDomain=010.live_hls.zte.com
不适用光猫单独拉出IPTV网线去连接IPTV盒子(只从下图中黄色网口拉出的一条宽带线到路由器的机器适用)
1.使用网线或者使用Windows自带的无线网络共享创建热点,让IPTV盒子连接创建的WIFI(这里使用WIFI)。
点击遥控器上的设置按钮
输入密码密码一般是10010不是的话自行去寻找,找不到的话只能使用网线去抓包
连接上热点
2.打开Wireshark选择与共享网络相同的网络
3.点击鱼鳍的图标开始抓包,此时重启IPTV盒子
4.等IPTV盒子启动完成可以观看电视节目之后,停止抓包,输入以下语句
http.request.method =="POST"
搜索以下字符串
frameset_builder
获取以下JSESSIONID
如何获取源
之后使用带有自己的JSESSIONID
+表单内容
去POST
链接地址即可获取到内容
*带有jsSetConfig
的字样后面的ChannelURL
链接就是直播源
原:
ChannelURL="http://124.90.44.40:6060/010/2/00000001000000060000000000000437?AuthInfo=xxxxxxxxxxxxxx&version=v1.0&BreakPoint=0&virtualDomain=010.live_hls.zte.com&programid=ch00000000000000001373&boid=001&contentid=chxxxxxx&stbid=0xxxxxxx&terminalflag=1&videoid=chxxxxxxx&userid=xxxxxxxx&recommendtype=0"
经过以下变化即可使用:
http://124.90.44.40:6060/010/2/00000001000000060000000000000437.m3u8?virtualDomain=010.live_hls.zte.com
我自己写python脚本获取源,填写上刚刚获取的JSESSIONID
即可使用
import requests
import re
import os
def get_iptv():
# 请求的URL
url = "http://124.90.44.9:8080/iptvepg/function/frameset_builder.jsp"
# 请求的Body数据
data = {
"MAIN_WIN_SRC": "/iptvepg/frame1022/portal.jsp",
"NEED_UPDATE_STB": "1",
"BUILD_ACTION": "FRAMESET_BUILDER"
}
# 请求头
headers = {
"Content-Type": "application/x-www-form-urlencoded",
"Cookie": "JSESSIONID=你的的JSESSIONID"
}
# 发送POST请求
response = requests.post(url, data=data, headers=headers)
return response.text
# 输出响应状态码和内容
# print("Status Code:", response.status_code)
# print("Response Content:", response.text)
def format_iptv(content):
# 使用正则表达式匹配 jsSetConfig 的内容
pattern = r'jsSetConfig\(\'(.*?)\',\s*\'(.*?)\'\)'
matches = re.findall(pattern, content)
info_list = []
# 打印提取的内容
for match in matches:
key, value = match
if "ChannelID" in value:
info_list.append(str(value))
data_list = []
for i in info_list:
# 使用正则表达式提取 ChannelName
channel_name_match = re.search(r'ChannelName="([^"]+)"', i)
# 使用正则表达式提取 ChannelURL
channel_url_match = re.search(r'ChannelURL="([^"]+)"', i)
if channel_url_match:
channel_url = channel_url_match.group(1)
# 替换问号后面的部分
channel_url_match = re.sub(r'\?.*', '/1000.m3u8?virtualDomain=010.live_hls.zte.com', channel_url)
else:
channel_url_match = None
# 使用正则表达式提取 UserChannelID
user_channel_id_match = re.search(r'UserChannelID="([^"]+)"', i)
# 将提取的结果存储到字典中
result = {
"ChannelName": channel_name_match.group(1) if channel_name_match else None,
"ChannelURL": channel_url_match if channel_url_match else None,
"UserChannelID": user_channel_id_match.group(1) if user_channel_id_match else None
}
data_list.append(result)
# 根据 UserChannelID 排序(转换为整数进行比较)
sorted_list = sorted(data_list, key=lambda x: int(x["UserChannelID"]))
return sorted_list
# 分类函数
def classify_channel(channel_name):
keywords_CCTV = {"CCTV", "央视", "中央", "中国"}
keywords_FM = {"之声", "经济频道", "音乐调频", "民生资讯", "浙江新闻广播"}
if any(keywords_CCTV in channel_name for keywords_CCTV in keywords_CCTV):
return "中央电视"
elif "卫视" in channel_name:
return "地方台"
elif "CGTN" in channel_name:
return "外文台"
elif "测试" in channel_name:
return "测试台"
elif "高清" in channel_name:
return "地方台"
elif any(keywords_FM in channel_name for keywords_FM in keywords_FM):
return "FM广播"
else:
return "其他频道"
def classify_channel_type(channel_list):
channel_dict = {}
# 遍历频道列表并分类
for channel in channel_list:
category = classify_channel(channel['ChannelName'])
channel_dict.get(category)
if channel_dict.get(category) is None:
channel_dict[category] = []
channel_dict[category].append(channel['ChannelName'] + "," + channel['ChannelURL'])
return channel_dict
def save(content, file_path='./channels.txt'):
# 合成文本
result = []
for key, values in content.items():
# 添加 key 和 #genre#
result.append(f"{key},#genre#")
# 添加 values 中的每个元素
for value in values:
result.append(value)
# 将结果列表转换为字符串
output_text = "\n".join(result)
with open(file_path, "w", encoding="utf-8") as file:
file.write(output_text)
print(f"文件已保存路径:{os.getcwd()}")
def upload_file(file_path='./channels.txt'):
# 上传文件到 PHP 网页
url = "http://192.168.1.102:1212/upload.php" # 替换为你的 PHP 网页地址
files = {"file": open(file_path, "rb")} # 以二进制模式打开文件
response = requests.post(url, files=files)
# 输出服务器响应
print(response.text)
def main():
content = get_iptv()
info_list = format_iptv(content)
res = classify_channel_type(info_list)
save(res)
#upload_file()#群晖TV使用
if __name__ == '__main__':
main()
php脚本用于python脚本自动同步获取到的IPTV源,不过一般用不到,联通不会频繁同步直播源
<?php
// 设置保存文件的目录
$upload_dir = "./";
// 检查是否有文件上传
if ($_FILES["file"]["error"] == UPLOAD_ERR_OK) {
$file_name = basename($_FILES["file"]["name"]); // 获取文件名
$file_path = $upload_dir . $file_name; // 拼接文件路径
// 将文件移动到目标目录
if (move_uploaded_file($_FILES["file"]["tmp_name"], $file_path)) {
echo "文件上传成功: " . $file_name;
} else {
echo "文件上传失败!";
}
} else {
echo "未接收到文件!";
}
?>
标签:联通,zte,hls,IPTV,010,live,捕捉,http,124.90
From: https://www.cnblogs.com/qingpu/p/18676567