方法已失效,仅作笔记

获取用户主页数据,更换 sec_uid 参数即可,sec_uid PC版用户主页链接中也有
https://www.douyin.com/user/MS4wLjABAAAAM_k4ZhuDZ1k-nT1EXml5moYfsAYsC5U2xpdTDmgO8Io

https://www.iesdouyin.com/web/api/v2/aweme/post/?sec_uid=MS4wLjABAAAAFTNkHANuPtZKteVQsBaMwaIHoSMh3nxqJDOXEDHUnlg&count=21&max_cursor=0&aid=1128&_signature=fJp6thAXIkOb7YKwZF36KXyaeq&dytk=fd2ba6076e7bb73e31504e51bc4baf08

获取视频数据,只需要替换 item_ids 参数即可,item_ids 是视频ID,分享链接中可获得

https://www.iesdouyin.com/web/api/v2/aweme/iteminfo/?item_ids=7108929990414044447

拿到水印视频地址后,把playwm换成play即为无水印地址

以视频https://v.douyin.com/JTBpb4L/为例
1.直接访问获得原始链接https://www.iesdouyin.com/share/video/6925270560700108032/?region=CN&mid=……(url中无关内容已省略)
2.取出videoID 6925270560700108032
3.拼接地址 https://www.iesdouyin.com/web/api/v2/aweme/iteminfo/?item_ids=6925270560700108032 访问后得到json
4.json中'item_list''video''url_list'为有水印地址 https://aweme.snssdk.com/aweme/v1/playwm/?video_id=v0d00f7b0000c0do1njj3ie1jhkhicfg&ratio=720p&line=0
5.将有水印地址中的playwm替换为play 即https://aweme.snssdk.com/aweme/v1/play/?video_id=v0d00f7b0000c0do1njj3ie1jhkhicfg&ratio=720p&line=0

标签: none

仅有一条评论

  1. 此页方法已失效

添加新评论