查看网页源代码获取 videoid= 0425d8f0c2bb425d9361c0eb2eeb4f16
拼接成如下字符串
/video/urls/v/1/toutiao/mp4/{videoid}?r={randint}
个中
将第二步拼接的字符串进行crc32校验(php有crc32函数),获取值为十六进制需转化成十进制 crc32(“/video/urls/v/1/toutiao/mp4/0425d8f0c2bb425d9361c0eb2eeb4f16?r=7937864853677161”) = 4040162423
拼接Url http://i.snssdk.com/video/urls/v/1/toutiao/mp4/{videoid}?r={randint}&s={checksum}
个中
访问拼接Url
http://i.snssdk.com/video/urls/v/1/toutiao/mp4/0425d8f0c2bb425d9361c0eb2eeb4f16?r=2330415823304158&s=4218775840
把main_url视频地址 base64解码 得到视频地址