Gson解析百度实时热榜Json数据

 Lan   2020-10-22 18:58   116 人阅读  0 条评论

API地址:https://top.baidu.com/mobile_v2/buzz/hotspot

Json数据:

{

  "result": {

    "topwords": [

      {

        "keyword": "赵立坚用蒙古谚语感谢蒙古国捐羊",

        "searches": 4752751,

        "changeRate": -168255,

        "isNew": "",

        "trend": "fall",

        "gentime": "2020-10-22 18:56:01",

        "stdate": "2020-10-22 18:56:01",

        "boardid": 1

      },

      {

        "keyword": "黄山风景区辟谣迎客松为塑料树",

        "searches": 4586405,

        "changeRate": -162365,

        "isNew": "1",

        "trend": "fall",

        "stdate": "2020-10-22 18:56:01",

        "boardid": 1

      },

      {

        "keyword": "老人组团龟蛇爬行走红",

        "searches": 4425881,

        "changeRate": -156682,

        "isNew": "",

        "trend": "fall",

        "stdate": "2020-10-22 18:56:01",

        "boardid": 1

      },

      {

        "keyword": "00后大学生发明宿舍关灯神器",

        "searches": 4270975,

        "changeRate": -151199,

        "isNew": "",

        "trend": "fall",

        "stdate": "2020-10-22 18:56:01",

        "boardid": 1

      },

      {

        "keyword": "虐男子家属道歉",

        "searches": 4121491,

        "changeRate": -145907,

        "isNew": "",

        "trend": "fall",

        "stdate": "2020-10-22 18:56:01",

        "boardid": 1

      },

      {

        "keyword": "海南一干部直播称刁民太多",

        "searches": 3977239,

        "changeRate": -140800,

        "isNew": "",

        "trend": "fall",

        "stdate": "2020-10-22 18:56:01",

        "boardid": 1

      },

      {

        "keyword": "小汽车驾照取消70岁年龄上限",

        "searches": 3838035,

        "changeRate": -135872,

        "isNew": "",

        "trend": "fall",

        "stdate": "2020-10-22 18:56:01",

        "boardid": 1

      },

      {

        "keyword": "武汉女大学生看病遭校医猥亵",

        "searches": 3703704,

        "changeRate": -131117,

        "isNew": "1",

        "trend": "fall",

        "stdate": "2020-10-22 18:56:01",

        "boardid": 1

      },

      {

        "keyword": "男子起诉中国移动索赔一元",

        "searches": 3574074,

        "changeRate": -126528,

        "isNew": "",

        "trend": "fall",

        "stdate": "2020-10-22 18:56:01",

        "boardid": 1

      },

      {

        "keyword": "韵达申通圆通联手封杀极兔速递",

        "searches": 3328267,

        "changeRate": -117826,

        "isNew": "1",

        "trend": "fall",

        "stdate": "2020-10-22 18:56:01",

        "boardid": 1

      },

      {

        "keyword": "天津发现古代墓葬近900处",

        "searches": 3211778,

        "changeRate": -113702,

        "isNew": "",

        "trend": "fall",

        "stdate": "2020-10-22 18:56:01",

        "boardid": 1

      },

      {

        "keyword": "老师给学生加油手机掉进下水道",

        "searches": 3099366,

        "changeRate": -109722,

        "isNew": "",

        "trend": "fall",

        "stdate": "2020-10-22 18:56:01",

        "boardid": 1

      },

      {

        "keyword": "300斤女孩一年减掉半个自己",

        "searches": 2990888,

        "changeRate": -105882,

        "isNew": "",

        "trend": "fall",

        "stdate": "2020-10-22 18:56:01",

        "boardid": 1

      },

      {

        "keyword": "李小璐送闺蜜1599朵玫瑰",

        "searches": 2886207,

        "changeRate": -102176,

        "isNew": "",

        "trend": "fall",

        "stdate": "2020-10-22 18:56:01",

        "boardid": 1

      },

      {

        "keyword": "iPhone12 Pro最高溢价3000元",

        "searches": 2687708,

        "changeRate": -95149,

        "isNew": "1",

        "trend": "fall",

        "stdate": "2020-10-22 18:56:01",

        "boardid": 1

      },

      {

        "keyword": "商务部称将适时发布出口管制清单",

        "searches": 2593638,

        "changeRate": -91819,

        "isNew": "",

        "trend": "fall",

        "stdate": "2020-10-22 18:56:01",

        "boardid": 1

      },

      {

        "keyword": "首批4000只蒙古捐赠羊入境现场图",

        "searches": 2502861,

        "changeRate": -88605,

        "isNew": "",

        "trend": "fall",

        "stdate": "2020-10-22 18:56:01",

        "boardid": 1

      },

      {

        "keyword": "民航局回应波音737Max何时复飞",

        "searches": 2415261,

        "changeRate": -85503,

        "isNew": "",

        "trend": "fall",

        "stdate": "2020-10-22 18:56:01",

        "boardid": 1

      },

      {

        "keyword": "工信部回应App违规收集个人信息",

        "searches": 2330727,

        "changeRate": -82511,

        "isNew": "",

        "trend": "fall",

        "stdate": "2020-10-22 18:56:01",

        "boardid": 1

      },

      {

        "keyword": "美国务院批准售台三项武器",

        "searches": 2249151,

        "changeRate": -79623,

        "isNew": "",

        "trend": "fall",

        "stdate": "2020-10-22 18:56:01",

        "boardid": 1

      },

      {

        "keyword": "新疆出现罕见冰凌奇观",

        "searches": 2170431,

        "changeRate": -76836,

        "isNew": "",

        "trend": "fall",

        "stdate": "2020-10-22 18:56:01",

        "boardid": 1

      },

      {

        "keyword": "巴西总统声称不会购买中国疫苗",

        "searches": 2094466,

        "changeRate": -74147,

        "isNew": "",

        "trend": "fall",

        "stdate": "2020-10-22 18:56:01",

        "boardid": 1

      },

      {

        "keyword": "诺奖得主塞门扎涉嫌论文造假",

        "searches": 2021159,

        "changeRate": -71552,

        "isNew": "",

        "trend": "fall",

        "stdate": "2020-10-22 18:56:01",

        "boardid": 1

      },

      {

        "keyword": "奥巴马批特朗普抗疫不力",

        "searches": 1950419,

        "changeRate": -69047,

        "isNew": "",

        "trend": "fall",

        "stdate": "2020-10-22 18:56:01",

        "boardid": 1

      },

      {

        "keyword": "布达佩斯推出摩天轮饭店",

        "searches": 1882154,

        "changeRate": -66631,

        "isNew": "",

        "trend": "fall",

        "stdate": "2020-10-22 18:56:01",

        "boardid": 1

      },

      {

        "keyword": "9岁男生被同学家长拖拽殴打",

        "searches": 1816279,

        "changeRate": -64299,

        "isNew": "",

        "trend": "fall",

        "stdate": "2020-10-22 18:56:01",

        "boardid": 1

      },

      {

        "keyword": "俄罗斯捐呼吸机被美国当垃圾",

        "searches": 1752709,

        "changeRate": -62048,

        "isNew": "",

        "trend": "fall",

        "stdate": "2020-10-22 18:56:01",

        "boardid": 1

      },

      {

        "keyword": "韩军购自美国的无人侦察机漏油",

        "searches": 1691364,

        "changeRate": -59877,

        "isNew": "",

        "trend": "fall",

        "stdate": "2020-10-22 18:56:01",

        "boardid": 1

      },

      {

        "stdate": "2020-10-22 11:21:03",

        "keyword": "中国萌娃录阿拉伯语版防疫口诀",

        "searches": "2462998",

        "changeRate": "-30368",

        "trend": "fall",

        "boardid": 1,

        "isNew": ""

      },

      {

        "stdate": "2020-10-22 11:21:03",

        "keyword": "美国休斯敦一夜总会发生枪击事件",

        "searches": "2552329",

        "changeRate": "-31470",

        "trend": "fall",

        "boardid": 1,

        "isNew": ""

      },

      {

        "stdate": "2020-10-22 11:21:03",

        "keyword": "萌娃裤兜装油条带回家给爷爷吃",

        "searches": "2840238",

        "changeRate": "-35020",

        "trend": "fall",

        "boardid": 1,

        "isNew": ""

      },

      {

        "stdate": "2020-10-22 11:21:03",

        "keyword": "丹麦巨型南瓜970公斤破纪录",

        "searches": "2943252",

        "changeRate": "-36290",

        "trend": "fall",

        "boardid": 1,

        "isNew": ""

      },

      {

        "stdate": "2020-10-22 11:21:03",

        "keyword": "中学生课间操跳起敦煌舞",

        "searches": "3050002",

        "changeRate": "-37606",

        "trend": "fall",

        "boardid": 1,

        "isNew": ""

      },

      {

        "stdate": "2020-10-22 11:21:03",

        "keyword": "国泰港龙航空停止运营",

        "searches": "3644715",

        "changeRate": "-44939",

        "trend": "fall",

        "boardid": 1,

        "isNew": ""

      },

      {

        "stdate": "2020-10-22 11:21:03",

        "keyword": "婺源鸳鸯湖迎今年首批越冬鸳鸯",

        "searches": "4055848",

        "changeRate": "-50008",

        "trend": "fall",

        "boardid": 1,

        "isNew": ""

      },

      {

        "stdate": "2020-10-22 11:21:03",

        "keyword": "首批4000只蒙古国捐赠羊今日交付",

        "searches": "4202951",

        "changeRate": "-51822",

        "trend": "fall",

        "boardid": 1,

        "isNew": ""

      },

      {

        "stdate": "2020-10-22 11:21:03",

        "keyword": "解放军军机今日一早两度巡台",

        "searches": "4513358",

        "changeRate": "-55649",

        "trend": "fall",

        "boardid": 1,

        "isNew": ""

      },

      {

        "stdate": "2020-10-22 11:21:03",

        "keyword": "金正恩参谒志愿军烈士陵园",

        "searches": "4677055",

        "changeRate": "-57667",

        "trend": "fall",

        "boardid": 1,

        "isNew": ""

      },

      {

        "stdate": "2020-10-22 11:21:03",

        "keyword": "美国将六家中国媒体列为外国使团",

        "searches": "4846689",

        "changeRate": "-59759",

        "trend": "fall",

        "boardid": 1,

        "isNew": ""

      },

      {

        "stdate": "2020-10-22 11:21:03",

        "keyword": "河北境内4车相撞致7人死亡",

        "searches": "1724794",

        "changeRate": "-84595",

        "trend": "fall",

        "boardid": 1,

        "isNew": ""

      },

      {

        "stdate": "2020-10-22 11:21:03",

        "keyword": "近300名留美人员遭美方滋扰盘查",

        "searches": "1787351",

        "changeRate": "-87663",

        "trend": "fall",

        "boardid": 1,

        "isNew": ""

      },

      {

        "stdate": "2020-10-22 11:21:03",

        "keyword": "捷克副总理新冠病毒检测呈阳性",

        "searches": "1852177",

        "changeRate": "-90843",

        "trend": "fall",

        "boardid": 1,

        "isNew": ""

      },

      {

        "stdate": "2020-10-22 11:21:03",

        "keyword": "猪肉价格连续7周回落",

        "searches": "1919355",

        "changeRate": "-94137",

        "trend": "fall",

        "boardid": 1,

        "isNew": ""

      },

      {

        "stdate": "2020-10-22 11:21:03",

        "keyword": "东北大学清退52名博士生研究生",

        "searches": "1988968",

        "changeRate": "-97552",

        "trend": "fall",

        "boardid": 1,

        "isNew": ""

      },

      {

        "stdate": "2020-10-22 11:21:03",

        "keyword": "莫迪称印度新冠死亡率比美国低",

        "searches": "2061107",

        "changeRate": "-101090",

        "trend": "fall",

        "boardid": 1,

        "isNew": ""

      },

      {

        "stdate": "2020-10-22 11:21:03",

        "keyword": "瑞典禁中企参与5G建设 中方回应",

        "searches": "2135862",

        "changeRate": "-104757",

        "trend": "fall",

        "boardid": 1,

        "isNew": ""

      },

      {

        "stdate": "2020-10-22 11:21:03",

        "keyword": "时速400公里可变轨动车组下线",

        "searches": "2213329",

        "changeRate": "-108556",

        "trend": "fall",

        "boardid": 1,

        "isNew": ""

      },

      {

        "stdate": "2020-10-22 11:21:03",

        "keyword": "暂不恢复旅行社出入境团队旅游",

        "searches": "2293605",

        "changeRate": "-112493",

        "trend": "fall",

        "boardid": 1,

        "isNew": ""

      },

      {

        "stdate": "2020-10-22 11:16:03",

        "keyword": "郑渊洁实名举报的著作权案开庭",

        "searches": "1746060",

        "changeRate": "0",

        "trend": "fair",

        "boardid": 1,

        "isNew": ""

      },

      {

        "stdate": "2020-10-22 11:06:02",

        "keyword": "公安部放宽小型汽车驾驶证申请年龄",

        "searches": "2244501",

        "changeRate": "1",

        "trend": "rise",

        "boardid": 1,

        "isNew": ""

      },

      {

        "stdate": "2020-10-22 11:01:03",

        "keyword": "甘肃天水警方通报墓葬损毁事件",

        "searches": "2799330",

        "changeRate": "17347",

        "trend": "rise",

        "boardid": 1,

        "isNew": ""

      },

      {

        "stdate": "2020-10-22 11:01:03",

        "keyword": "张家界志愿者绝壁捡垃圾",

        "searches": "1699951",

        "changeRate": "-50740",

        "trend": "fall",

        "boardid": 1,

        "isNew": ""

      },

      {

        "stdate": "2020-10-22 11:01:03",

        "keyword": "美国一养老院全体住户感染新冠",

        "searches": "1761607",

        "changeRate": "-52580",

        "trend": "fall",

        "boardid": 1,

        "isNew": ""

      },

      {

        "stdate": "2020-10-22 10:56:02",

        "keyword": "特朗普曾在中国缴税?中方回应",

        "searches": "1689417",

        "changeRate": "1",

        "trend": "rise",

        "boardid": 1,

        "isNew": ""

      },

      {

        "stdate": "2020-10-22 10:36:02",

        "keyword": "19岁小伙骑行2300公里上大学",

        "searches": "4378750",

        "changeRate": "0",

        "trend": "fair",

        "boardid": 1,

        "isNew": ""

      },

      {

        "stdate": "2020-10-22 10:36:02",

        "keyword": "民警宾馆查房门缝塞来小卡片",

        "searches": "2755530",

        "changeRate": "0",

        "trend": "fair",

        "boardid": 1,

        "isNew": ""

      },

      {

        "stdate": "2020-10-22 10:36:02",

        "keyword": "31省区市新增确诊14例",

        "searches": "2389541",

        "changeRate": "0",

        "trend": "fair",

        "boardid": 1,

        "isNew": ""

      },

      {

        "stdate": "2020-10-22 10:36:02",

        "keyword": "蚂蚁集团公布上市发行方案",

        "searches": "2659087",

        "changeRate": "0",

        "trend": "fair",

        "boardid": 1,

        "isNew": ""

      },

      {

        "stdate": "2020-10-22 10:36:02",

        "keyword": "每斤猪肉多1元饲料成本",

        "searches": "2305907",

        "changeRate": "0",

        "trend": "fair",

        "boardid": 1,

        "isNew": ""

      },

      {

        "stdate": "2020-10-22 10:16:02",

        "keyword": "林妙可回应奥运会假唱争议",

        "searches": "2108228",

        "changeRate": "84656",

        "trend": "rise",

        "boardid": 1,

        "isNew": ""

      },

      {

        "stdate": "2020-10-22 09:46:02",

        "keyword": "易烊千玺弟弟创魔方世界纪录",

        "searches": "2291084",

        "changeRate": "9582",

        "trend": "rise",

        "boardid": 1,

        "isNew": ""

      },

      {

        "stdate": "2020-10-22 09:46:02",

        "keyword": "全国平均新房价格进入万元时代",

        "searches": "2210896",

        "changeRate": "9246",

        "trend": "rise",

        "boardid": 1,

        "isNew": ""

      },

      {

        "stdate": "2020-10-22 09:46:02",

        "keyword": "朋友圈骂闺蜜被判赔1千元",

        "searches": "2133514",

        "changeRate": "8922",

        "trend": "rise",

        "boardid": 1,

        "isNew": ""

      },

      {

        "stdate": "2020-10-22 09:46:02",

        "keyword": "外交部再回应防弹少年团言论问题",

        "searches": "2058841",

        "changeRate": "8610",

        "trend": "rise",

        "boardid": 1,

        "isNew": ""

      },

      {

        "stdate": "2020-10-22 09:11:02",

        "keyword": "央视呼吁禁止虐动物尽快立法",

        "searches": "4239493",

        "changeRate": "49979",

        "trend": "rise",

        "boardid": 1,

        "isNew": ""

      },

      {

        "stdate": "2020-10-22 09:11:02",

        "keyword": "曝长白山天池出现不明物体",

        "searches": "3076520",

        "changeRate": "36269",

        "trend": "rise",

        "boardid": 1,

        "isNew": ""

      },

      {

        "stdate": "2020-10-22 09:11:02",

        "keyword": "泰国女星遭网暴起诉索赔21万",

        "searches": "2968842",

        "changeRate": "35000",

        "trend": "rise",

        "boardid": 1,

        "isNew": ""

      },

      {

        "stdate": "2020-10-22 09:11:02",

        "keyword": "31省份前三季度居民收入",

        "searches": "2574520",

        "changeRate": "30351",

        "trend": "rise",

        "boardid": 1,

        "isNew": ""

      },

      {

        "stdate": "2020-10-22 09:11:02",

        "keyword": "点外卖恶意差评获利上千元被批捕",

        "searches": "2006261",

        "changeRate": "-48256",

        "trend": "fall",

        "boardid": 1,

        "isNew": ""

      },

      {

        "stdate": "2020-10-22 09:11:02",

        "keyword": "山体塌方俩老人拦车救下5车人",

        "searches": "2079027",

        "changeRate": "-50007",

        "trend": "fall",

        "boardid": 1,

        "isNew": ""

      },

      {

        "stdate": "2020-10-22 09:11:02",

        "keyword": "军队不参加全国综合性体育运动会",

        "searches": "2154432",

        "changeRate": "-51821",

        "trend": "fall",

        "boardid": 1,

        "isNew": ""

      },

      {

        "stdate": "2020-10-22 09:11:02",

        "keyword": "成都电视弹出地震预警",

        "searches": "2232572",

        "changeRate": "-53700",

        "trend": "fall",

        "boardid": 1,

        "isNew": ""

      },

      {

        "stdate": "2020-10-22 09:06:03",

        "keyword": "蒙古国捐赠的首批活羊22日入境",

        "searches": "4498928",

        "changeRate": "-17306",

        "trend": "fall",

        "boardid": 1,

        "isNew": ""

      }

    ],

    "descs": [

      {

        "name": "mobile_shixiaonews",

        "content": {

          "morelink": "http://m.baidu.com/news?fr=fengyunbang#search/%E8%B5%B5%E7%AB%8B%E5%9D%9A%E7%94%A8%E8%92%99%E5%8F%A4%E8%B0%9A%E8%AF%AD%E6%84%9F%E8%B0%A2%E8%92%99%E5%8F%A4%E5%9B%BD%E6%8D%90%E7%BE%8A",

          "data": [

            {

              "title": "首批4000只蒙古捐赠羊入境开始隔离防疫 赵立坚用蒙古谚语表感谢",

              "link": "http://m.baidu.com/news?tn=bdbody&query=%E8%B5%B5%E7%AB%8B%E5%9D%9A%E7%94%A8%E8%92%99%E5%8F%A4%E8%B0%9A%E8%AF%AD%E6%84%9F%E8%B0%A2%E8%92%99%E5%8F%A4%E5%9B%BD%E6%8D%90%E7%BE%8A&src=https%3A%2F%2F3g.163.com%2Fnews%2Fvideo%2FVCOKMQVRH.Html&fr=fengyunbang",

              "originlink": "https://3g.163.com/news/video/VCOKMQVRH.html",

              "description": "霸气说不!难得一见的一票否决重出江湖,偏偏还是中国的一票否决 大又元 4'38\" 赵立坚用蒙古谚语感谢蒙古国捐羊 首批4000只蒙古捐赠羊入境现场图...",

              "pubDate": "2020-10-22 18:11",

              "source": "网易",

              "postTime": "刚刚",

              "image": "https://b.bdstatic.com/searchbox/file/cmsuploader/20191205/1575541664351474.png"

            }

          ]

        }

      },

      {

        "name": "mobile_shixiaonews",

        "content": {

          "morelink": "http://m.baidu.com/news?fr=fengyunbang#search/%E9%BB%84%E5%B1%B1%E9%A3%8E%E6%99%AF%E5%8C%BA%E8%BE%9F%E8%B0%A3%E8%BF%8E%E5%AE%A2%E6%9D%BE%E4%B8%BA%E5%A1%91%E6%96%99%E6%A0%91",

          "data": [

            {

              "title": "迎客松为塑料树?黄山风景区辟谣:目前长势良好 各类监测指标正常",

              "link": "http://m.baidu.com/news?tn=bdbody&query=%E9%BB%84%E5%B1%B1%E9%A3%8E%E6%99%AF%E5%8C%BA%E8%BE%9F%E8%B0%A3%E8%BF%8E%E5%AE%A2%E6%9D%BE%E4%B8%BA%E5%A1%91%E6%96%99%E6%A0%91&src=https%3A%2F%2Fnews.mydrivers.com%2F1%2F719%2F719607.htm&fr=fengyunbang",

              "originlink": "https://news.mydrivers.com/1/719/719607.htm",

              "description": "10月22日消息,黄山风景区管理委员会通过“中国黄山”官微辟谣称,网传“迎客松是塑料树”“迎客松是假树”均为不实信息。 黄山风景区管理委员会称,近日,网络上...",

              "pubDate": "2020-10-22 18:24",

              "source": "驱动之家",

              "postTime": "刚刚",

              "image": "https://b.bdstatic.com/searchbox/file/cmsuploader/20191205/1575541664351474.png"

            }

          ]

        }

      },

      {

        "name": "mobile_shixiaonews",

        "content": {

          "morelink": "http://m.baidu.com/news?fr=fengyunbang#search/%E8%80%81%E4%BA%BA%E7%BB%84%E5%9B%A2%E9%BE%9F%E8%9B%87%E7%88%AC%E8%A1%8C%E8%B5%B0%E7%BA%A2",

          "data": [

            {

              "title": "老人组团龟蛇爬行走红 龟蛇爬行对身体有哪些好处?",

              "link": "http://m.baidu.com/news?tn=bdbody&query=%E8%80%81%E4%BA%BA%E7%BB%84%E5%9B%A2%E9%BE%9F%E8%9B%87%E7%88%AC%E8%A1%8C%E8%B5%B0%E7%BA%A2&src=https%3A%2F%2Fnew.qq.com%2Fomn%2F20201022%2F20201022A0A1IP00.html&fr=fengyunbang",

              "originlink": "https://new.qq.com/omn/20201022/20201022A0A1IP00.html",

              "description": "秋冬季来临老人家的每日锻炼引起了大家的关注,近日广州老人组团龟蛇爬行走红,那么这种龟蛇爬行真的科学那,对此医生表示此活动5到190分钟即可,另外有心肺血管问题的,...",

              "pubDate": "2020-10-22 16:49",

              "source": "腾讯新闻",

              "postTime": "3小时前",

              "image": "https://b.bdstatic.com/searchbox/file/cmsuploader/20191205/1575541664351474.png"

            }

          ]

        }

      },

      {

        "name": "mobile_shixiaonews",

        "content": {

          "morelink": "http://m.baidu.com/news?fr=fengyunbang#search/00%E5%90%8E%E5%A4%A7%E5%AD%A6%E7%94%9F%E5%8F%91%E6%98%8E%E5%AE%BF%E8%88%8D%E5%85%B3%E7%81%AF%E7%A5%9E%E5%99%A8",

          "data": [

            {

              "title": "00后大学生发明宿舍关灯神器,网友:太实用了,建议全国推广",

              "link": "http://m.baidu.com/news?tn=bdbody&query=00%E5%90%8E%E5%A4%A7%E5%AD%A6%E7%94%9F%E5%8F%91%E6%98%8E%E5%AE%BF%E8%88%8D%E5%85%B3%E7%81%AF%E7%A5%9E%E5%99%A8&src=https%3A%2F%2Fbaijiahao.baidu.com%2Fs%3Fid%3D1681237193806813982%26wfr%3Dspider%26for%3Dpc&fr=fengyunbang",

              "originlink": "https://baijiahao.baidu.com/s?id=1681237193806813982&wfr=spider&for=pc",

              "description": "后来,该寝室男生又推出了关门神器加强版。 (原标题:懒是人类智慧进步的源动力!00后大学生发明宿舍关灯神器) 来源:综合自封面新闻、光明网 流程编辑:U016举报/反馈...",

              "pubDate": "2020-10-22 15:40",

              "source": "百家号",

              "postTime": "4小时前",

              "image": "https://b.bdstatic.com/searchbox/file/cmsuploader/20191205/1575541664351474.png"

            }

          ]

        }

      },

      {

        "name": "mobile_shixiaonews",

        "content": {

          "morelink": "http://m.baidu.com/news?fr=fengyunbang#search/%E8%99%90%E7%8C%AB%E7%94%B7%E5%AD%90%E5%AE%B6%E5%B1%9E%E9%81%93%E6%AD%89",

          "data": [

            {

              "title": "虐猫男子家属道歉,当事人开除了之?虐待动物的法律空白怎么补",

              "link": "http://m.baidu.com/news?tn=bdbody&query=%E8%99%90%E7%8C%AB%E7%94%B7%E5%AD%90%E5%AE%B6%E5%B1%9E%E9%81%93%E6%AD%89&src=https%3A%2F%2Fbaijiahao.baidu.com%2Fs%3Fid%3D1681245940229558398%26wfr%3Dspider%26for%3Dpc&fr=fengyunbang",

              "originlink": "https://baijiahao.baidu.com/s?id=1681245940229558398&wfr=spider&for=pc",

              "description": "10月22日,虐猫男子家属发声道歉,称孩子平时老实听话,但这件事的确做得不对,一定会训诫他,这种事情绝不会再发生。 河南律旗事务所谢律师解读该事件称,该男子的...",

              "pubDate": "2020-10-22 17:56",

              "source": "百家号",

              "postTime": "2小时前",

              "image": "https://b.bdstatic.com/searchbox/file/cmsuploader/20191205/1575541664351474.png"

            }

          ]

        }

      },

      {

        "name": "mobile_shixiaonews",

        "content": {

          "morelink": "http://m.baidu.com/news?fr=fengyunbang#search/%E6%B5%B7%E5%8D%97%E4%B8%80%E5%B9%B2%E9%83%A8%E7%9B%B4%E6%92%AD%E7%A7%B0%E5%88%81%E6%B0%91%E5%A4%AA%E5%A4%9A",

          "data": [

            {

              "title": "海南万宁一干部节目里称“刁民太多”,官方通报来了",

              "link": "http://m.baidu.com/news?tn=bdbody&query=%E6%B5%B7%E5%8D%97%E4%B8%80%E5%B9%B2%E9%83%A8%E7%9B%B4%E6%92%AD%E7%A7%B0%E5%88%81%E6%B0%91%E5%A4%AA%E5%A4%9A&src=https%3A%2F%2Fbaijiahao.baidu.com%2Fs%3Fid%3D1681247922901768919%26wfr%3Dspider%26for%3Dpc&fr=fengyunbang",

              "originlink": "https://baijiahao.baidu.com/s?id=1681247922901768919&wfr=spider&for=pc",

              "description": "10月16日,正在直播中的海南新闻广播《政风行风热线》节目连线万宁市万城镇政府一位工作人员时,对方称:“现在的刁民太多了,就是你们这些新闻媒体支撑着他们……”这...",

              "pubDate": "2020-10-22 18:36",

              "source": "百家号",

              "postTime": "刚刚",

              "image": "https://b.bdstatic.com/searchbox/file/cmsuploader/20191205/1575541664351474.png"

            }

          ]

        }

      },

      {

        "name": "mobile_shixiaonews",

        "content": {

          "morelink": "http://m.baidu.com/news?fr=fengyunbang#search/%E5%B0%8F%E6%B1%BD%E8%BD%A6%E9%A9%BE%E7%85%A7%E5%8F%96%E6%B6%8870%E5%B2%81%E5%B9%B4%E9%BE%84%E4%B8%8A%E9%99%90",

          "data": [

            {

              "title": "洋葱快评|取消70岁上限后,“考驾照”要更精细化",

              "link": "http://m.baidu.com/news?tn=bdbody&query=%E5%B0%8F%E6%B1%BD%E8%BD%A6%E9%A9%BE%E7%85%A7%E5%8F%96%E6%B6%8870%E5%B2%81%E5%B9%B4%E9%BE%84%E4%B8%8A%E9%99%90&src=https%3A%2F%2Fbaijiahao.baidu.com%2Fs%3Fid%3D1681247127765083876%26wfr%3Dspider%26for%3Dpc&fr=fengyunbang",

              "originlink": "https://baijiahao.baidu.com/s?id=1681247127765083876&wfr=spider&for=pc",

              "description": "其中,放宽小型汽车驾驶证申请年龄,取消申请小型汽车、小型自动挡汽车、轻便摩托车驾驶证70周岁的年龄上限,引发了舆论的关注。 此前,我国将申请驾驶证的年龄,限制在...",

              "pubDate": "2020-10-22 18:23",

              "source": "百家号",

              "postTime": "刚刚",

              "image": "https://b.bdstatic.com/searchbox/file/cmsuploader/20191205/1575541664351474.png"

            }

          ]

        }

      },

      {

        "name": "mobile_shixiaonews",

        "content": {

          "morelink": "http://m.baidu.com/news?fr=fengyunbang#search/%E6%AD%A6%E6%B1%89%E5%A5%B3%E5%A4%A7%E5%AD%A6%E7%94%9F%E7%9C%8B%E7%97%85%E9%81%AD%E6%A0%A1%E5%8C%BB%E7%8C%A5%E4%BA%B5",

          "data": [

            {

              "title": "武汉女大学生看病,遭校医猥亵,医生被判1年有期徒刑",

              "link": "http://m.baidu.com/news?tn=bdbody&query=%E6%AD%A6%E6%B1%89%E5%A5%B3%E5%A4%A7%E5%AD%A6%E7%94%9F%E7%9C%8B%E7%97%85%E9%81%AD%E6%A0%A1%E5%8C%BB%E7%8C%A5%E4%BA%B5&src=https%3A%2F%2Fnew.qq.com%2Fomn%2F20201022%2F20201022A0DBP700.html&fr=fengyunbang",

              "originlink": "https://new.qq.com/omn/20201022/20201022A0DBP700.html",

              "description": "据报道在武汉科技大学黄家湖校区硕士一年级有一名女学生,曾经因为身体不舒服到校医院检查,不料遭到男医生猥亵。据该女孩表示,自己在7月份的时候因身体不适曾到校医...",

              "pubDate": "2020-10-22 18:48",

              "source": "腾讯新闻",

              "postTime": "刚刚",

              "image": "https://b.bdstatic.com/searchbox/file/cmsuploader/20191205/1575541664351474.png"

            }

          ]

        }

      },

      {

        "name": "mobile_shixiaonews",

        "content": {

          "morelink": "http://m.baidu.com/news?fr=fengyunbang#search/%E7%94%B7%E5%AD%90%E8%B5%B7%E8%AF%89%E4%B8%AD%E5%9B%BD%E7%A7%BB%E5%8A%A8%E7%B4%A2%E8%B5%94%E4%B8%80%E5%85%83",

          "data": [

            {

              "title": "男子起诉中国移动索赔一元 因群发聚会短信被禁用短信",

              "link": "http://m.baidu.com/news?tn=bdbody&query=%E7%94%B7%E5%AD%90%E8%B5%B7%E8%AF%89%E4%B8%AD%E5%9B%BD%E7%A7%BB%E5%8A%A8%E7%B4%A2%E8%B5%94%E4%B8%80%E5%85%83&src=https%3A%2F%2Fbaijiahao.baidu.com%2Fs%3Fid%3D1681233089557444355%26wfr%3Dspider%26for%3Dpc&fr=fengyunbang",

              "originlink": "https://baijiahao.baidu.com/s?id=1681233089557444355&wfr=spider&for=pc",

              "description": "据国内媒体报道,日前,因为无法群发聚会短信,湖南省长沙市陈平凡律师起诉中国移动湖南有限公司长沙分公司,要求法院判令该公司赔偿经济损失1元,并承担全部诉讼费用。 该...",

              "pubDate": "2020-10-22 14:30",

              "source": "百家号",

              "postTime": "5小时前",

              "image": "https://b.bdstatic.com/searchbox/file/cmsuploader/20191205/1575541664351474.png"

            }

          ]

        }

      },

      {

        "name": "mobile_shixiaonews",

        "content": {

          "morelink": "http://m.baidu.com/news?fr=fengyunbang#search/%E9%9F%B5%E8%BE%BE%E7%94%B3%E9%80%9A%E5%9C%86%E9%80%9A%E8%81%94%E6%89%8B%E5%B0%81%E6%9D%80%E6%9E%81%E5%85%94%E9%80%9F%E9%80%92",

          "data": [

            {

              "title": "媒体报道:韵达、申通、圆通联手封杀极兔速递!后者与拼多多关系匪浅",

              "link": "http://m.baidu.com/news?tn=bdbody&query=%E9%9F%B5%E8%BE%BE%E7%94%B3%E9%80%9A%E5%9C%86%E9%80%9A%E8%81%94%E6%89%8B%E5%B0%81%E6%9D%80%E6%9E%81%E5%85%94%E9%80%9F%E9%80%92&src=https%3A%2F%2Fbaijiahao.baidu.com%2Fs%3Fid%3D1681248255462316367%26wfr%3Dspider%26for%3Dpc&fr=fengyunbang",

              "originlink": "https://baijiahao.baidu.com/s?id=1681248255462316367&wfr=spider&for=pc",

              "description": "据21世纪经济报道,近期,21世纪经济报道记者从多家韵达加盟商处确认,10月19日,韵达在内网发布了《关于全网禁止代理极兔业务的通知》,正式封杀极兔。另据多家通达...",

              "pubDate": "2020-10-22 18:37",

              "source": "百家号",

              "postTime": "刚刚",

              "image": "https://b.bdstatic.com/searchbox/file/cmsuploader/20191205/1575541664351474.png"

            }

          ]

        }

      }

    ]

  },

  "success": 1

}

OkHttpClient okHttpClient = new OkHttpClient();
Request request = new Request.Builder().url("http://top.baidu.com/mobile_v2/buzz/hotspot").build();
try {
    Response response = okHttpClient.newCall(request).execute();
    ArrayList<NewsContent> newss = new ArrayList<>();
    JsonObject a = JsonParser.parseString(response.body().string()).getAsJsonObject();
    JsonElement result = a.get("result").getAsJsonObject().get("descs");
    JsonArray jsonArray = result.getAsJsonArray();
    for (JsonElement newContent : jsonArray) {
        NewsContent newsContent = new Gson().fromJson(newContent.getAsJsonObject().get("content").getAsJsonObject().get("data").getAsJsonArray().get(0).toString(), NewsContent.class);
        newss.add(newsContent);
        Log.d("标题", newsContent.getTitle());
    }
} catch (IOException e) {
    e.printStackTrace();
}


本文地址:https://www.lanol.cn/post/419.html
版权声明:本文为原创文章,版权归 Lan 所有,欢迎分享本文,转载请保留出处!

 发表评论


表情

还没有留言,还不快点抢沙发?