今天在IOS上找到一個很好玩的東西,能一句話.然后合成鬼畜視頻發(fā)到朋友圈和QQ那邊的.秉著探究的精神.就吧整個鬼畜輸入法都沙盒抓包研究了一遍.
首先,輸入一個短句"老板什么時候發(fā)工資啊"到APP當中合成鬼畜視頻.
然后,聯(lián)網(wǎng)合成相關(guān)鬼畜視頻,便可以分享
經(jīng)過攔截,發(fā)現(xiàn)這個就是接口
http://k.naonaola.com/video?orginal[]=老板什么時候發(fā)工資啊&sentences=老板什么時候發(fā)工資啊
這個是返回值,code 200是返回正常.對應(yīng)一個Json數(shù)組.
1.其中的word是單個文字,如"老"
2.key是用來索引視頻外鏈的標識,例如
$key = "1451041923181_l.mp4";
$videoRoot="http://7xoxqs.com2.z0.glb.qiniucdn.com/";
則對應(yīng)該文字的$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": "發(fā)"
},
{
"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/"
}