优酷搜索.js 577 B

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