优酷搜索.js 561 字节
Newer Older
H
hjdhnx 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
js:
var d = [];
let html=request(input);
let json = JSON.parse(html);
json.pageComponentList.forEach(function (it){
    if (it.hasOwnProperty('commonData')) {
        it = it.commonData;
        d.push({
            title: it.titleDTO.displayName,
            img: it.posterDTO.vThumbUrl,
            // desc: it.feature,
            desc: it.stripeBottom,
            content: it.updateNotice+' '+it.feature,
            url: 'https://search.youku.com/api/search?appScene=show_episode&showIds=' + it.showId + '&appCaller=h5'
        });
    }
});
setResult(d);