在网上在api,找了一会儿都没发现,只能自己研究了

首先附上调用地址 : http://roll.news.sina.com.cn/interface/rollnews_ch_out_interface.php

新闻类别     col          取值(90:国内,91:国际,92:社会,94:体育,95:娱乐,93:军事,96:科技,97:财经,98:股市,99:美股)

http://roll.news.sina.com.cn/interface/rollnews_ch_out_interface.php?col=90,91

新闻形式     type       取值(3:视频,2:图片,空:全部)

http://roll.news.sina.com.cn/interface/rollnews_ch_out_interface.php?col=90,91&type=

http://roll.news.sina.com.cn/interface/rollnews_ch_out_interface.php?col=90,91&type=2

新闻条数     num

http://roll.news.sina.com.cn/interface/rollnews_ch_out_interface.php?col=90,91&type=2&num=5

返回数据为json:

var jsonData = { serverSeconds : 1402643427, last_time : 1402643219, path : [{title : "全部", id : "89", cType : "col"}], count : 19827, offset_page : 0, offset_num : 0, list : [     {channel : {title : "娱乐",id : "95",cType : "col",url : ""},title : "41岁阔太黎瑞恩离婚 可分得千万家产",url : "http://ent.sina.com.cn/s/h/2014-06-13/15064158203.shtml",type : '1',pic : '',time : 1402643219}] };

 

 

格式化后的jaon数据(去掉了头部的var jsonData =  和尾部的 ; )

 1 {
 2     "serverSeconds": 1402643427, 
 3     "last_time": 1402643219, 
 4     "path": [
 5         {
 6             "title": "全部", 
 7             "id": "89", 
 8             "cType": "col"
 9         }
10     ], 
11     "count": 19827, 
12     "offset_page": 0, 
13     "offset_num": 0, 
14     "list": [
15         {
16             "channel": {
17                 "title": "娱乐", 
18                 "id": "95", 
19                 "cType": "col", 
20                 "url": ""
21             }, 
22             "title": "41岁阔太黎瑞恩离婚 可分得千万家产", 
23             "url": "http://ent.sina.com.cn/s/h/2014-06-13/15064158203.shtml", 
24             "type": "1", 
25             "pic": "", 
26             "time": 1402643219
27         }
28     ]
29 }

 

需要的朋友各取所需吧

 

转载请注明: 林夕木大大