本PHP代码可解析百度好看视频,可自动算出好看视频最终输出的视频地址,具体使用方法请看下面教程。
php代码:
使用方法:
1.新建“haokan.php”文件,复制上述代理代码
2.访问“http(s)//你的域名/haokan.php”
2.如无数据则调用默认的“https://haokan.baidu.com/v?vid=18026604341596867564”
3.调用:
(1)“http(s)//你的域名/haokan.php?url=好看视频链接”
(2)“http(s)//你的域名/haokan.php?vid=好看视频vid”
返回json数据:
{
"code": 200,
"msg": "解析成功",
"title": "天赐的声音:弦子和七叔现场演唱《莫问归期》,第一句就这么动听",
"url": "https://vd3.bdstatic.com/mda-md1nwqhy0zfeht0u/720p/h264_cae/1621012383338945043/mda-md1nwqhy0zfeht0u.mp4?pd=-1&pt=1&cr=2&vt=0&cd=0&did=cfcd208495d565ef66e7dff9f98764da&logid=2281243018&vid=18026604341596867564&auth_key=1725469682-0-0-a58b385bd6e0868d782734aaa3913ff8&bcevod_channel=searchbox_feed",
"type": "mp4",
"pic": "http://tukuimg.bdstatic.com/processed/aadda0be20bc5a9bab1e60ec9ccd364d.jpeg",
"metareferer": "always",
"data": [
{
"key": "sd",
"name": "标清",
"br": 360,
"size": "16.5 M",
"url": "https://vd3.bdstatic.com/mda-md1nwqhy0zfeht0u/360p/h264_cae/1621012383469961838/mda-md1nwqhy0zfeht0u.mp4?pd=-1&pt=1&cr=0&vt=0&cd=0&did=cfcd208495d565ef66e7dff9f98764da&logid=2281243018&vid=18026604341596867564&auth_key=1725469682-0-0-fc0660f267c112dcbda743945ed9c5bf&bcevod_channel=searchbox_feed"
},
{
"key": "sc",
"name": "超清",
"br": 720,
"size": "34.7 M",
"url": "https://vd3.bdstatic.com/mda-md1nwqhy0zfeht0u/720p/h264_cae/1621012383338945043/mda-md1nwqhy0zfeht0u.mp4?pd=-1&pt=1&cr=2&vt=0&cd=0&did=cfcd208495d565ef66e7dff9f98764da&logid=2281243018&vid=18026604341596867564&auth_key=1725469682-0-0-a58b385bd6e0868d782734aaa3913ff8&bcevod_channel=searchbox_feed"
}
]
}
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。
评论(0)