今天在IOS上找到一个很好玩的东西,能一句话.然后合成鬼畜视频发到朋友圈和QQ那边的.秉着探究的精神.就吧整个鬼畜输入法都沙盒抓包研究了一遍.
首先,输入一个短句"老板什么时候发工资啊"到APP当中合成鬼畜视频.
然后,联网合成相关鬼畜视频,便可以分享
经过拦截,发现这个就是接口
http://k.naonaola.com/video?orginal[]=老板什么时候发工资啊&sentences=老板什么时候发工资啊
这个是返回值,code 200是返回正常.对应一个Json数组.
1.其中的word是单个文字,如"老"
2.key是用来索引视频外链的标识,例如
$key = "1451041923181_l.mp4";
$videoRoot="http://7xoxqs.com2.z0.glb.qiniucdn.com/";
则对应该文字的$Url =$key + $videoRoot
3.其中的duration是单个文字的时间长度,actor是说这个字的视频的人物,source是人物的来源.
返回值
{
"code": 200,
"map": {
"0": [
{
"actor": "李倩",
"duration": 0.741667,
"id": 0,
"key": "1451041923181_l.mp4",
"mood": 0,
"source": "龙门镖局",
"word": "老"
},
{
"actor": "梁超",
"duration": 0.76,
"id": 0,
"key": "1450672176839_b.mp4",
"mood": 0,
"source": "三个奶爸",
"word": "版"
},
{
"actor": "董骥",
"duration": 0.832,
"id": 0,
"key": "1451041467851_s.mp4",
"mood": 0,
"source": "三国演义",
"word": "神"
},
{
"actor": "孙艺洲",
"duration": 0.84,
"id": 0,
"key": "1452001465281_m.mp4",
"mood": 0,
"source": "爱情公寓",
"word": "么"
},
{
"actor": "郑恺",
"duration": 0.554667,
"id": 0,
"key": "1451905451150_s.mp4",
"mood": 0,
"source": "家有外星人",
"word": "十"
},
{
"actor": "唐国强",
"duration": 0.832,
"id": 0,
"key": "1450954415985_h.mp4",
"mood": 0,
"source": "三国演义",
"word": "厚"
},
{
"actor": "鲍国安",
"duration": 0.832,
"id": 0,
"key": "1450519582255_f.mp4",
"mood": 0,
"source": "三国演义",
"word": "发"
},
{
"actor": "叶熙祺",
"duration": 0.96,
"id": 0,
"key": "1449221505150_公.mp4",
"mood": 0,
"source": "离婚律师",
"word": "公"
},
{
"actor": "李庆祥",
"duration": 1.002667,
"id": 0,
"key": "1450870105763_z.mp4",
"mood": 0,
"source": "三国演义",
"word": "子"
},
{
"actor": "李庆祥",
"duration": 0.96,
"id": 0,
"key": "1450868023350_a4.mp4",
"mood": 0,
"source": "三国演义",
"word": "啊"
}
]
},
"videoRoot": "http://7xoxqs.com2.z0.glb.qiniucdn.com/"
}