找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 15195|回复: 209

[iptv信源 资源分享或寻求] douyin直播PHP(2月19日更新)

 火... [复制链接]
发表于 2022-8-1 09:08 | 显示全部楼层 |阅读模式
本帖最后由 tugar 于 2023-2-19 13:16 编辑
  1. <?php
  2.    
  3.     $id = $_GET['id'];
  4.     $bstrURL = "https://webcast.amemv.com/webcast/room/reflow/info/?type_id=0&live_id=1&room_id={$id}&sec_user_id=&app_id=1128";
  5.     $ch = curl_init();
  6.     curl_setopt($ch, CURLOPT_URL, $bstrURL);                  
  7.     curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
  8.     curl_setopt($ch, CURLOPT_HTTPHEADER, ['User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 15_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6 Mobile/15E148 Safari/604.1']);
  9.     curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  10.     curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
  11.     $data = curl_exec($ch);
  12.     curl_close($ch);
  13.     $json = json_decode($data);
  14.     $hls_url = $json->data->room->stream_url->hls_pull_url_map->FULL_HD1;   //后缀.m3u8
  15.         $flv_url = $json->data->room->stream_url->flv_pull_url->FULL_HD1;                //后缀.flv
  16.         /**
  17.         $hls_url = $json->data->room->stream_url->hls_pull_url;
  18.         $flv_url = $json->data->room->stream_url->rtmp_pull_url;
  19.         **/
  20.     header('location:'.$flv_url);

  21. ?>
复制代码


2月19日更新:
有小伙伴私信说原有代码失效,查了下Python代码亦已失效,所以抓包重写了代码,本次直接使用web_rid请求播放链接,所以理论上代理链接可以长期使用,请各位测试。

douyin.zip (733 Bytes, 下载次数: 119, 售价: 1 币恩山币)
使用示例:




点评

关播重新开的话id会变,不是固定啊,这样就没用了吧  发表于 2022-8-3 16:17
能用,没挂  发表于 2022-8-2 06:46
挂了?  发表于 2022-8-2 05:56
我的恩山、我的无线 The best wifi forum is right here.
发表于 2022-8-1 09:36 | 显示全部楼层
抖音-记录美好生活
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2022-8-1 09:38 来自手机 | 显示全部楼层
支持一下  
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2022-8-1 09:45 | 显示全部楼层
这个怎么用呢
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2022-8-1 09:55 | 显示全部楼层
回复可见回复可见
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2022-8-1 09:56 | 显示全部楼层
谢谢楼主分享
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2022-8-1 09:58 来自手机 | 显示全部楼层
看看先谢谢分享
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2022-8-1 10:00 | 显示全部楼层
感谢你的分享
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2022-8-1 10:02 | 显示全部楼层
支持一下 支持一下
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2022-8-1 10:03 | 显示全部楼层
感谢                              
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2022-8-1 10:09 | 显示全部楼层
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2022-8-1 10:25 | 显示全部楼层
看看先谢谢分享
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2022-8-1 10:26 来自手机 | 显示全部楼层
谢谢楼主分享
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2022-8-1 10:26 | 显示全部楼层

支持一下
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2022-8-1 10:34 | 显示全部楼层
不知道有没有现成的接口
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-3-19 16:52

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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

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