找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 1471|回复: 2

[iptv信源 资源分享或寻求] 最新直播源抓取代码示例

[复制链接]
发表于 2021-12-2 11:06 | 显示全部楼层 |阅读模式
本帖最后由 en小哥666 于 2021-12-2 17:19 编辑

String url = "https://pglblb-1307091970.cos.ap-guangzhou.myqcloud.com/88.json";
        try {
            String str = HttpUtil.httpGet(url);

            JSONObject object = JSON.parseObject(str);

            JSONArray lives = object.getJSONArray("lives");

            JSONObject jsonObject = lives.getJSONObject(0);

            JSONArray channels = jsonObject.getJSONArray("channels");

            for (int i = 0; i < channels.size(); i++)
            {

                JSONObject jsonObject1 = channels.getJSONObject(i);

                System.out.print(jsonObject1.getString("name") + ",");

                JSONArray urls = jsonObject1.getJSONArray("urls");

                for (int i1 = 0; i1 < urls.size(); i1++)
                {

                    System.out.print(urls.getString(i1));

                    if (urls.size() > 1 && i1 + 1 != urls.size())
                    {
                        System.out.print("#");
                    }
                }

                System.out.println();

            }

        }
        catch (Exception ex)
        {
            ex.printStackTrace();
        }

4K纯享,http://39.134.115.163:8080/PLTV/ ... 21225786/index.m3u8
4K欢笑,http://112.25.63.197:8080/gitv_l ... mp;area=JS_CMCC_CP#[/url][/url]
4K江苏,http://223.110.236.2/ott.js.chin ... 21228113/index.m3u8
4K央视,http://121.18.168.210/livetestcdn.cctv.cn/hls/4KHD/playlist.m3u8#[url=http://liveop.cctv.cn/hls/4KHD/playlist.m3u8]http://liveop.cctv.cn/hls/4KHD/playlist.m3u8[/url]
CCTV-1,http://223.110.243.159/ott.js.ch ... 21227725/index.m3u8$8M1080P#http://39.134.134.87/otttv.bj.ch ... /3221226226/1.m3u8#[/url]]http://39.136.18.70/cdnrrs.gz.chinamobile.com/PLTV/88888888/224/3221225777/1/index.m3u8?fmt=ts2hls#http://111.13.42.43/PLTV/88888888/224/3221226438/1.m3u8#[url]http://129.226.106.4/zycfcdn.gdwlcloud.com/PLTV/88888888/224/3221225490/1.m3u8#rtp://239.253.156.96:8550[/url][/url][/url][/url]
CCTV-2,http://ott.js.chinamobile.com/TVOD/3/224/3221228118/index.m3u8#[url]http://39.135.138.60:18890/PLTV/88888910/224/3221225619/index.m3u8#[url=http://39.135.138.60:18890/PLTV/88888910/224/3221225643/index.m3u8#[url]http://ott.js.chinamobile.com/TVOD/3/224/3221228094/index.m3u8#[url]http://39.130.202.81:6610/gitv_live/G_CCTV-2-HD/1.m3u8[/url]]http://39.135.138.60:18890/PLTV/88888910/224/3221225643/index.m3u8#http://ott.js.chinamobile.com/TVOD/3/224/3221228094/index.m3u8#[url]http://39.130.202.81:6610/gitv_live/G_CCTV-2-HD/1.m3u8[/url][/url][/url][/url]

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
我的恩山、我的无线 The best wifi forum is right here.
发表于 2021-12-2 11:58 | 显示全部楼层
謝謝大大的分享,買來看看~~
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2021-12-2 12:26 | 显示全部楼层
不知道是什么
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2021-12-11 22:13 | 显示全部楼层
江苏4K流畅,2-4M码率4K 24p。h265。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-19 23:24

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表