访问一个正常的抖音短视频的网页 例如:
https://x1.php168.com/public/static/libs/ueditor/lang/zh-cn/images/localimage.png) no-repeat center center;border:1px solid #ddd"/>https://v.douyin.com/JY5TXWJ/
记得要用POST调试工具,或者是浏览器的F12也行,
访问后,取服务器返回协议头
https://x1.php168.com/public/static/libs/ueditor/lang/zh-cn/images/localimage.png) no-repeat center center;border:1px solid #ddd"/>https://www.iesdouyin.com/share/video/6851144902827396352/?region=CN&mid=6851144917600324366&u_code=i7l6amic&titleType=title×tamp=1595312889&utm_campaign=client_share&app=aweme&utm_medium=ios&tt_from=copy&utm_source=copy
中间标红的数字,就是视频的ID
接下来就是用这个ID去访问另一个网址
https://x1.php168.com/public/static/libs/ueditor/lang/zh-cn/images/localimage.png) no-repeat center center;border:1px solid #ddd"/>https://www.iesdouyin.com/web/api/v2/aweme/iteminfo/?item_ids=6851144902827396352
访问这个网址后,会返回一大套JSON串,
对这个JSON串进行解析
去取 item_list[0].video.play_addr.url_list[0] 中的属性值,就能得到一个带水印的播放地址.
https://x1.php168.com/public/static/libs/ueditor/lang/zh-cn/images/localimage.png) no-repeat center center;border:1px solid #ddd"/>https://aweme.snssdk.com/aweme/v1/playwm/?video_id=v0200f850000bsa2fvf4nj82nk76jh60&ratio=720p&line=0
把这个地址中的WM去掉,然后再用POST工具去访问
https://x1.php168.com/public/static/libs/ueditor/lang/zh-cn/images/localimage.png) no-repeat center center;border:1px solid #ddd"/>https://aweme.snssdk.com/aweme/v1/play/?video_id=v0200f850000bsa2fvf4nj82nk76jh60&ratio=720p&line=0
就会得到一个新的播放地址,是无水印的
https://x1.php168.com/public/static/libs/ueditor/lang/zh-cn/images/localimage.png) no-repeat center center;border:1px solid #ddd"/>http://v26-dy.ixigua.com/4cc49422115737513ca5c047f6b59564/5f16b02a/video/tos/cn/tos-cn-ve-15/73bc24c7c1c6435e86b200bf9078826f/?a=1128&br=957&bt=319&cr=0&cs=0&dr=0&ds=6&er=&l=202007211606400100080621481A0088F4&lr=&mime_type=video_mp4&qs=0&rc=M2s5bjVtN3k1djMzOGkzM0ApaDdlZDM5PGQzNzg4NTM4NWczZzRrNWtjY15fLS01LS9zc2AtNi0wYy42YTQvYi5eMTU6Yw%3D%3D&vl=&vr=
大佬看看,能做成齐博X1的插件吗
我用软件写成功了,就是PHP不知道咋弄。