前面的话
本文将使用nodeJS实现一个简单的网页爬虫功能
网页源码
使用http.get()方法获取网页源码,以hao123网站的头条页面为例
http://tuijian.hao123.com/hotrank
var http = require('http');
http.get('http://tuijian.hao123.com/hotrank',function(res){
var data = '';
res.on('data',function(chunk){
data = chunk;
});
res.on('end',function(){
console.log(data);
})
});
获得的结果如下所示:
<!DOCTYPE html><html lang="zh_CN" bigrender="fe:widget/js/lib/bigRender.js">
<head><noscript><meta http-equiv="refresh" content="0; URL='/tuijian/hotrank?__noscript__-=1'" /></noscript>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<meta name="referrer" content="always">
<meta name="baidu-site-verification" content="cCHudceyEP" />
<meta name="baidu_union_verify" content="d7d644c8a5cb51b46c900d802d906116">
<meta name="keywords" content="头条,新闻,推荐,国内,国际,本地,财经,军事,娱乐,体育,社会,汽车,网站,新闻导航,今日头条,头条新闻,最新新闻,2017最新新闻,新闻名站,新闻大全,新闻门户" />
<meta name="description" content="hao123新闻频道,聚合全网最新的新闻,最热点的新闻,实时新闻热搜词,热门新闻报刊;更有军事新闻,娱乐新闻,体育新闻,图片新闻,汽车新闻,女性新闻,财经新闻,国内新闻,国际新闻等分类新闻" />
<title>热点排行榜-头条新闻-hao123新闻导航_hao123上网导航</title>
<link rel="shortcut icon" href="//www.hao123.com/favicon.ico" />
<script>
window.pageId = window.pageId || "hao123-xinwen-tuijian-hotrank";
window.pageVP = window.pageVP || "hao123-xinwen-tuijian-hotrank";
</script>
<!--[if lt IE 7]>
<script src="http://s0.hao123img.com/res/js/common/dd_belatedpng.min.js"></script>
<script>
DD_belatedPNG.fix('#channelTitle');
</script>
<![endif]-->
<script>window.HAO=window.HAO||{};window.HAO.https = false;window.HAO.httpsTrans = function(url){return url};</script>
<link rel="stylesheet" type="text/css" href="http://s1.hao123img.com/resource/fe/pkg/aio-eef856ab5.231bb088c.css" /><link rel="stylesheet" type="text/css" href="http://s2.hao123img.com/resource/tuijian/css/hotrank.38645dd.css" /><link rel="stylesheet" type="text/css" href="http://s1.hao123img.com/resource/fe/widget/ui/header/common/v2/header.8d1d978b0.css" /><link rel="stylesheet" type="text/css" href="http://s0.hao123img.com/resource/fe/widget/ui/header/common/v2/logo/logo.6cca09af6.css" /><link rel="stylesheet" type="text/css" href="http://s1.hao123img.com/resource/fe/widget/ui/header/common/v2/sitemap/sitemap.a0832ac19.css" /><link rel="stylesheet" type="text/css" href="http://s2.hao123img.com/resource/fe/widget/ui/header/common/v2/adv/adv.25330c25d.css" /><link rel="stylesheet" type="text/css" href="http://s0.hao123img.com/resource/fe/widget/ui/header/common/v2/form/form.deba0d4c0.css" /><link rel="stylesheet" type="text/css" href="http://s0.hao123img.com/resource/fe/widget/ui/header/common/v2/tools/tools.1c81d5fc6.css" /><link rel="stylesheet" type="text/css" href="http://s2.hao123img.com/resource/fe/widget/ui/header/common/v2/nav/nav.0c7877e81.css" /><link rel="stylesheet" type="text/css" href="http://s2.hao123img.com/resource/fe/widget/ui/header/common/v2/tuiguang/tuiguang.6e9548c75.css" /><link rel="stylesheet" type="text/css" href="http://s0.hao123img.com/resource/tuijian/widget/index/hotrank/hotrank.38645dd.css" /><link rel="stylesheet" type="text/css" href="http://s2.hao123img.com/resource/tuijian/widget/index/hotrank/index/slider/slider.3f6d691.css" /><link rel="stylesheet" type="text/css" href="http://s0.hao123img.com/resource/tuijian/widget/index/hotrank/common/slider/slider.4d7a174.css" /><link rel="stylesheet" type="text/css" href="http://s0.hao123img.com/resource/tuijian/widget/index/hotrank/index/news/news.9e71d5b.css" /><link rel="stylesheet" type="text/css" href="http://s1.hao123img.com/resource/tuijian/widget/index/hotrank/index/fyb/fyb.b016c1d.css" /><link rel="stylesheet" type="text/css" href="http://s0.hao123img.com/resource/tuijian/widget/index/hotrank/index/top/top.e073b71.css" /><link rel="stylesheet" type="text/css" href="http://s0.hao123img.com/resource/tuijian/widget/lift/lift.77f7c66.css" /><link rel="stylesheet" type="text/css" href="http://s2.hao123img.com/resource/fe/pkg/aio-8155b5719.3dd99d32e.css" /><script type="text/javascript">window.aid = "nWRkrj61PjnYriYYrHfsrHbsnHb";</script></head><body>
<div id="erjiV2Header" class="erji-v2-header w1190 v2-fixed" monkey="erji-daohang"><div class="header"><div class="header-container clearfix"><div class="v2-logo "><a href="https://www.hao123.com" class="hao123" title="hao123网址导航" target="_blank">hao123</a><a href="http://tuijian.hao123.com" class="channel" title="推荐"><img src="http://s0.hao123img.com/res/img/xinwen.png" alt="推荐" id="channelTitle"></a></div><div class="v2-sitemap " data-hook="sitemap"><a href="javascript:void(0)" class="map"><i class="icon-grid"></i><em>导航</em><i class="icon-triangle"></i></a><div class="map-popup" data-hook="map-popup"><div class="item first"><h3 class="title">休闲娱乐</h3><div class="list clearfix"><a target="_blank" href="http://video.hao123.com/dianying/" class="">电影</a><a target="_blank" href="http://v.hao123.com/dongman/" class="">动漫</a><a target="_blank" href="http://video.hao123.com/zongyi/" class="">综艺</a><a target="_blank" href="http://www.hao123.com/gaoxiao" class="">搞笑</a><a target="_blank" href="http://live.hao123.com" class="">直播</a><a target="_blank" href="http://www.hao123.com/video" class="">视频</a><a target="_blank" href="http://wyyx.hao123.com/" class="">页游</a><a target="_blank" href="http://www.hao123.com/star" class="">明星</a><a target="_blank" href="http://www.hao123.com/love" class="">交友</a><a target="_blank" href="http://www.hao123.com/sport" class="">体育</a><a target="_blank" href="http://news.hao123.com/soccer" class="">足球</a><a target="_blank" href="http://www.hao123.com/nba" class="">NBA</a><a target="_blank" href="http://www.hao123.com/xingzuonew.html" class="">星座</a><a target="_blank" href="http://v.hao123.com/tv/" class="">电视剧</a><a target="_blank" href="http://xyx.hao123.com/" class="">小游戏</a></div></div><div class="item "><h3 class="title">生活服务</h3><div class="list clearfix"><a target="_blank" href="http://tuan.baidu.com/" class="">团购</a><a target="_blank" href="http://www.hao123.com/bank" class="">银行</a><a target="_blank" href="http://www.hao123.com/junshi" class="">军事</a><a target="_blank" href="http://www.hao123.com/fangchan" class="">房产</a><a target="_blank" href="http://www.hao123.com/stocknew.htm" class="">股票</a><a target="_blank" href="http://www.hao123.com/stock" class="">基金</a><a target="_blank" href="http://www.hao123.com/tianqi" class="">天气</a><a target="_blank" href="http://www.hao123.com/menu" class="">菜谱</a><a target="_blank" href="http://www.hao123.com/auto" class="">汽车</a><a target="_blank" href="http://www.hao123.com/map" class="">地图</a><a target="_blank" href="http://www.hao123.com/zhaopin" class="">招聘</a><a target="_blank" href="http://www.hao123.com/child" class="">儿童</a><a target="_blank" href="http://www.hao123.com/muying" class="">母婴</a><a target="_blank" href="http://www.hao123.com/health" class="">健康</a><a target="_blank" href="http://www.hao123.com/edu" class="">大学</a><a target="_blank" href="http://www.hao123.com/mobile" class="">手机</a></div></div><div class="item last"><h3 class="title">其他类别</h3><div class="list clearfix"><a target="_blank" href="http://life.hao123.com/soft.html" class="">软件</a><a target="_blank" href="http://www.hao123.com/mail" class="">邮箱</a><a target="_blank" href="http://www.hao123.com/weibo" class="">微博</a><a target="_blank" href="http://www.hao123.com/gongyi" class="">公益</a><a target="_blank" href="http://www.hao123.com/chongwu" class="">宠物</a><a target="_blank" href="http://www.hao123.com/harcksafe" class="">杀毒</a><a target="_blank" href="http://www.hao123.com/sheji" class="">设计</a><a target="_blank" href="http://www.hao123.com/hardware" class="">电脑</a><a target="_blank" href="http://www.hao123.com/desktop" class="">桌面</a><a target="_blank" href="http://www.hao123.com/zhiye" class="">行业</a><a target="_blank" href="http://www.hao123.com/sheying" class="">摄影</a><a target="_blank" href="http://www.hao123.com/campuseng" class="">英语</a><a target="_blank" href="http://www.hao123.com/exam" class="">考试</a><a target="_blank" href="http://www.hao123.com/eduhtm_qyqx" class="">学习</a><a target="_blank" href="http://www.hao123.com/xiaoqingxin" class="">小清新</a></div></div></div></div><div class="v2-form "><form class="search-form clearfix" target="_blank" data-hook="search-form"><input type="text" class="text" data-hook="search-input"><button type="submit" class="submit" data-hook="search-submit"></button><div class="search-query" data-hook="search-query"></div><div class="search-sug" data-hook="search-sug"></div></form></div><div class="v2-tools "><div class="login" data-hook="c-header-login"><a href="javascript:;" class="key" data-hook="login"><i class="icon-bear"></i><em class="word text-overflow">一键登录</em><i class="icon-triangle"></i></a><div class="popup" js-hook="popup-list"><a href="http://vip.hao123.com" class="vip" target="_blank"><i></i><em class="word">VIP俱乐部</em></a><a href="" class="logout" data-hook="logout" target="_self"><em class="word">退出</em></a></div></div><div class="qrcode" data-hhok="qrcode"><a href="http://dl.hao123.com/waphao123/n_apk/hao1231019956r.apk" title="二维码"><i></i></a><div class="qrcode-img"><img src="http://s0.hao123img.com/res/r/image/2017-05-02/8efec295cd5f4ab991383422af14dcb8.png" alt="二维码" width="80" height="80"/></div></div><a href="" data-hook="setHome" title="" target="_blank" class="home"><i></i></a></div></div></div><div class="nav" id="normalNav"><div id="fixedNav"><div class="nav-container clearfix"><div class="v2-nav "><ul class="clearfix"><li ><a href="http://tuijian.hao123.com/" title="头条" >头条</a></li><li ><a href="http://tuijian.hao123.com/ent" title="娱乐" >娱乐</a></li><li ><a href="http://tuijian.hao123.com/sports" title="体育" >体育</a></li><li ><a href="http://tuijian.hao123.com/finance" title="财经" >财经</a></li><li ><a href="http://tuijian.hao123.com/military" title="军事" >军事</a></li><li ><a href="http://tuijian.hao123.com/domestic" title="国内" >国内</a></li><li ><a href="http://tuijian.hao123.com/intl" title="国际" >国际</a></li><li ><a href="http://tuijian.hao123.com/history" title="历史" >历史</a></li><li ><a href="http://tuijian.hao123.com/tech" title="科技" >科技</a></li><li ><a href="http://tuijian.hao123.com/cars" title="汽车" >汽车</a></li><li ><a href="http://tuijian.hao123.com/edu" title="教育" >教育</a></li><li ><a href="http://tuijian.hao123.com/games" title="游戏" >游戏</a></li><li ><a href="http://tuijian.hao123.com/estate" title="房产" >房产</a></li><li ><a href="http://tuijian.hao123.com/fashion" title="时尚" >时尚</a></li><li class="cur"><a href="http://tuijian.hao123.com/hotrank" title="热点排行" >热点排行</a></li></ul></div></div></div></div></div>
<div id="tuijian" monkey="news-tuijian-hotrank">
<div class="mains">
<div id="bd" class="mt8" monkey="hao123-ssfengyunbang"><div class="mt10 clearfix"><div class="fl flb"><div id="slider" monkey="slider"><div class="slider"><div class="slider-page-wrap" data-slider="page-wrap"><div class="slider-page slider-page-cur"><a href="https://www.baidu.com/s?wd=送考车要讲究 毛坦厂中学送考规模庞大&ie=utf-8&tn=sitehao123_03" class="slider-img-wrap" target="_blank"><img src="https://gss0.bdstatic.com/5bVWsj_p_tVS5dKfpU_Y_D3/res/r/image/2017-06-07/b1e7252d66852c27dd6c924b12290017.jpg" class="slider-img" /></a><div class="slider-title-mask"></div><div class="slider-title-wrap"><a href="https://www.baidu.com/s?wd=送考车要讲究 毛坦厂中学送考规模庞大&ie=utf-8&tn=sitehao123_03" class="slider-title" target="_blank">送考车要讲究 毛坦厂中学送考规模庞大</a></div></div><div class="slider-page"><a href="https://www.baidu.com/s?wd=江苏"拇指西瓜"上市 可连皮食用&ie=utf-8&tn=sitehao123_03" class="slider-img-wrap" target="_blank"><img src="https://gss0.bdstatic.com/5bVWsj_p_tVS5dKfpU_Y_D3/res/r/image/2017-06-07/008195cae4d1336af0b63b31e5b01cdb.jpg" class="slider-img" /></a><div class="slider-title-mask"></div><div class="slider-title-wrap"><a href="https://www.baidu.com/s?wd=江苏"拇指西瓜"上市 可连皮食用&ie=utf-8&tn=sitehao123_03" class="slider-title" target="_blank">江苏"拇指西瓜"上市 可连皮食用</a></div></div><div class="slider-page"><a href="https://www.baidu.com/s?wd=非洲女子嫁中国郎 2年后成广场舞明星&ie=utf-8&tn=sitehao123_03" class="slider-img-wrap" target="_blank"><img src="https://gss0.bdstatic.com/5bVWsj_p_tVS5dKfpU_Y_D3/res/r/image/2017-06-07/74f7b5a74615892839e3b21de8017bc8.jpg" class="slider-img" /></a><div class="slider-title-mask"></div><div class="slider-title-wrap"><a href="https://www.baidu.com/s?wd=非洲女子嫁中国郎 2年后成广场舞明星&ie=utf-8&tn=sitehao123_03" class="slider-title" target="_blank">非洲女子嫁中国郎 2年后成广场舞明星</a></div></div><div class="slider-page"><a href="https://www.baidu.com/s?wd=广州一考生去错考场 交警蜀黍紧急送考&ie=utf-8&tn=sitehao123_03" class="slider-img-wrap" target="_blank"><img src="https://gss0.bdstatic.com/5bVWsj_p_tVS5dKfpU_Y_D3/res/r/image/2017-06-07/5a85d3e78965666eb616b41e2981d24d.jpg" class="slider-img" /></a><div class="slider-title-mask"></div><div class="slider-title-wrap"><a href="https://www.baidu.com/s?wd=广州一考生去错考场 交警蜀黍紧急送考&ie=utf-8&tn=sitehao123_03" class="slider-title" target="_blank">广州一考生去错考场 交警蜀黍紧急送考</a></div></div><div class="slider-page"><a href="https://www.baidu.com/s?wd=福建小伙南非建安保公司 持AK47与劫匪激战&ie=utf-8&tn=sitehao123_03" class="slider-img-wrap" target="_blank"><img src="https://gss0.bdstatic.com/5bVWsj_p_tVS5dKfpU_Y_D3/res/r/image/2017-06-07/ea646c52aa9197228d5d2f42899221ec.jpg" class="slider-img" /></a><div class="slider-title-mask"></div><div class="slider-title-wrap"><a href="https://www.baidu.com/s?wd=福建小伙南非建安保公司 持AK47与劫匪激战&ie=utf-8&tn=sitehao123_03" class="slider-title" target="_blank">福建小伙南非建安保公司 持AK47与劫匪激战</a></div></div><div class="slider-page"><a href="https://www.baidu.com/s?wd=老师拔河搞怪表情走红 拔河如戏全靠演技&ie=utf-8&tn=sitehao123_03" class="slider-img-wrap" target="_blank"><img src="https://gss0.bdstatic.com/5bVWsj_p_tVS5dKfpU_Y_D3/res/r/image/2017-06-07/b4331032b6375b7b6db10f7cdf19e86c.jpg" class="slider-img" /></a><div class="slider-title-mask"></div><div class="slider-title-wrap"><a href="https://www.baidu.com/s?wd=老师拔河搞怪表情走红 拔河如戏全靠演技&ie=utf-8&tn=sitehao123_03" class="slider-title" target="_blank">老师拔河搞怪表情走红 拔河如戏全靠演技</a></div></div></div><div class="slider-pagination-wrap" data-slider="pagination-wrap"><a class="slider-pagination active" href="javascript:;"></a><a class="slider-pagination" href="javascript:;"></a><a class="slider-pagination" href="javascript:;"></a><a class="slider-pagination" href="javascript:;"></a><a class="slider-pagination" href="javascript:;"></a><a class="slider-pagination" href="javascript:;"></a></div><a class="slider-controller controller-prev" data-slider="controller-prev" href="javascript:;"></a><a class="slider-controller slider-controller-next" data-slider="controller-next" href="javascript:;"></a></div></div></div><div class="ovh"><div class="ml15"><div id="news" class="clearfix" monkey="news"><div class="hd"><h2 class="title">八卦热点</h2><a href="http://www.hao123.com/star" target="_blank" class="more">更多八卦>></a></div><div class="bd"><div class="news-img" monkey="img"><ul class="imglinks"><li class="imglink-wrap0"><a class="imglink" target="_blank" href="https://www.baidu.com/s?wd=男子上山寻宝 挖出这物吓坏了!&ie=utf-8&tn=sitehao123_03" title="男子上山寻宝 挖出这物吓坏了!"><img src="http://s0.hao123img.com/res/r/image/2017-04-12/1be8ce1a1520e75f17f3299532855b56.jpg" class="imglink-img" /><span class="imglink-title">男子上山寻宝 挖出这物吓坏了!</span></a></li><li class="imglink-wrap1"><a class="imglink" target="_blank" href="https://www.baidu.com/s?wd=千年巨蛇镇守古墓竟借尸还魂&ie=utf-8&tn=sitehao123_03" title="千年巨蛇镇守古墓竟借尸还魂"><img src="http://s0.hao123img.com/res/r/image/2017-04-14/55d08df0d7d1023179fca92200a96ce4.jpg" class="imglink-img" /><span class="imglink-title">千年巨蛇镇守古墓竟借尸还魂</span></a></li></ul></div><div class="news-txt" monkey="txt"><ul class="txtlinks"><li class="txtlink-wrap txtlink-wrap0"><a class="txtlink" target="_blank" href="https://www.baidu.com/s?wd=地球是个监狱人类只是试验品!&ie=utf-8&tn=sitehao123_03" title="地球是个监狱人类只是试验品!">地球是个监狱人类只是试验品!</a></li><li class="txtlink-wrap txtlink-wrap1"><a class="txtlink" target="_blank" href="https://www.baidu.com/s?wd=DNA检测是叔叔的可爸爸是独子&ie=utf-8&tn=sitehao123_03" title="DNA检测是叔叔的可爸爸是独子">DNA检测是叔叔的可爸爸是独子</a></li><li class="txtlink-wrap txtlink-wrap2"><a class="txtlink" target="_blank" href="https://www.baidu.com/s?wd=出差两月打开电饭锅后惊呆了&ie=utf-8&tn=sitehao123_03" title="出差两月打开电饭锅后惊呆了">出差两月打开电饭锅后惊呆了</a></li><li class="txtlink-wrap txtlink-wrap3"><a class="txtlink" target="_blank" href="https://www.baidu.com/s?wd=女孩中大奖4年后怒告彩票公司&ie=utf-8&tn=sitehao123_03" title="女孩中大奖4年后怒告彩票公司">女孩中大奖4年后怒告彩票公司</a></li><li class="txtlink-wrap txtlink-wrap4"><a class="txtlink" target="_blank" href="https://www.baidu.com/s?wd=印度神牛竟拉出300多颗钻石!&ie=utf-8&tn=sitehao123_03" title="印度神牛竟拉出300多颗钻石!">印度神牛竟拉出300多颗钻石!</a></li><li class="txtlink-wrap txtlink-wrap5"><a class="txtlink" target="_blank" href="https://www.baidu.com/s?wd=21岁男孩吞云吐雾成烟雾之神!&ie=utf-8&tn=sitehao123_03" title="21岁男孩吞云吐雾成烟雾之神!">21岁男孩吞云吐雾成烟雾之神!</a></li><li class="txtlink-wrap txtlink-wrap6"><a class="txtlink" target="_blank" href="https://www.baidu.com/s?wd=继母让3孩子喝农药,继女死亡&ie=utf-8&tn=sitehao123_03" title="继母让3孩子喝农药,继女死亡">继母让3孩子喝农药,继女死亡</a></li><li class="txtlink-wrap txtlink-wrap7"><a class="txtlink" target="_blank" href="https://www.baidu.com/s?wd=惊呆!实拍假鸡蛋制作的全过程&ie=utf-8&tn=sitehao123_03" title="惊呆!实拍假鸡蛋制作的全过程">惊呆!实拍假鸡蛋制作的全过程</a></li></ul></div></div></div></div></div></div><div class="mt17"><div id="fyb"><script type="BAIDU_HH">{di:"u0000",tn:"sitehao123_03",rsi0:"1190",rsi1:"150",type:"metro",version:"201",style:"lichun"}</script></div></div><div class="mt20"><div id="tops" class="clearfix" monkey="tops"><div class="top-wrap"><div class="top first-col" monkey="ss"><h2 class="title">实时热点</h2><div class="points"><div class="point-hd clearfix"><span class="point-rank">排名</span><span class="point-title">关键词</span><span class="point-index">搜索指数</span></div><div class="point-bd"><div class="point clearfix"><span class="point-rank point-rank-top3">1</span><span class="point-title"><a href="https://www.baidu.com/s?wd=美国逮捕女斯诺登&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-title-link">美国逮捕女斯诺登</a></span><span class="point-state point-state-rise"></span><span class="point-index">35388</span><a href="https://www.baidu.com/s?wd=美国逮捕女斯诺登&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-detail"></a></div><div class="point clearfix"><span class="point-rank point-rank-top3">2</span><span class="point-title"><a href="https://www.baidu.com/s?wd=成都隐秘母乳买卖&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-title-link">成都隐秘母乳买卖</a></span><span class="point-state point-state-fall"></span><span class="point-index">34497</span><a href="https://www.baidu.com/s?wd=成都隐秘母乳买卖&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-detail"></a></div><div class="point clearfix"><span class="point-rank point-rank-top3">3</span><span class="point-title"><a href="https://www.baidu.com/s?wd=曝周杰伦青涩旧照&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-title-link">曝周杰伦青涩旧照</a></span><span class="point-state point-state-fall"></span><span class="point-index">1457</span><a href="https://www.baidu.com/s?wd=曝周杰伦青涩旧照&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-detail"></a></div><div class="point clearfix"><span class="point-rank">4</span><span class="point-title"><a href="https://www.baidu.com/s?wd=老头公交强吻女孩&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-title-link">老头公交强吻女孩</a></span><span class="point-state point-state-rise"></span><span class="point-index">103307</span><a href="https://www.baidu.com/s?wd=老头公交强吻女孩&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-detail"></a></div><div class="point clearfix"><span class="point-rank">5</span><span class="point-title"><a href="https://www.baidu.com/s?wd=王传君恋情曝光&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-title-link">王传君恋情曝光</a></span><span class="point-state point-state-fall"></span><span class="point-index">26616</span><a href="https://www.baidu.com/s?wd=王传君恋情曝光&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-detail"></a></div><div class="point clearfix"><span class="point-rank">6</span><span class="point-title"><a href="https://www.baidu.com/s?wd=杭州现奇葩窗口&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-title-link">杭州现奇葩窗口</a></span><span class="point-state point-state-rise"></span><span class="point-index">26837</span><a href="https://www.baidu.com/s?wd=杭州现奇葩窗口&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-detail"></a></div><div class="point clearfix"><span class="point-rank">7</span><span class="point-title"><a href="https://www.baidu.com/s?wd=忘带全班准考证&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-title-link">忘带全班准考证</a></span><span class="point-state point-state-fall"></span><span class="point-index">125127</span><a href="https://www.baidu.com/s?wd=忘带全班准考证&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-detail"></a></div><div class="point clearfix"><span class="point-rank">8</span><span class="point-title"><a href="https://www.baidu.com/s?wd=未成年持械拍网红&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-title-link">未成年持械拍网红</a></span><span class="point-state point-state-fall"></span><span class="point-index">1672</span><a href="https://www.baidu.com/s?wd=未成年持械拍网红&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-detail"></a></div><div class="point clearfix"><span class="point-rank">9</span><span class="point-title"><a href="https://www.baidu.com/s?wd=9秒揍儿子8拳&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-title-link">9秒揍儿子8拳</a></span><span class="point-state point-state-rise"></span><span class="point-index">93193</span><a href="https://www.baidu.com/s?wd=9秒揍儿子8拳&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-detail"></a></div><div class="point clearfix"><span class="point-rank">10</span><span class="point-title"><a href="https://www.baidu.com/s?wd=戴耳机穿轨道被撞&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-title-link">戴耳机穿轨道被撞</a></span><span class="point-state point-state-rise"></span><span class="point-index">195745</span><a href="https://www.baidu.com/s?wd=戴耳机穿轨道被撞&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-detail"></a></div></div></div></div></div><div class="top-wrap"><div class="top top-blue" monkey="jr"><h2 class="title">今日热点</h2><div class="points"><div class="point-hd clearfix"><span class="point-rank">排名</span><span class="point-title">关键词</span><span class="point-index">搜索指数</span></div><div class="point-bd"><div class="point clearfix"><span class="point-rank point-rank-top3">1</span><span class="point-title"><a href="https://www.baidu.com/s?wd=北京回龙观大火&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-title-link">北京回龙观大火</a></span><span class="point-state point-state-rise"></span><span class="point-index">174225</span><a href="https://www.baidu.com/s?wd=北京回龙观大火&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-detail"></a></div><div class="point clearfix"><span class="point-rank point-rank-top3">2</span><span class="point-title"><a href="https://www.baidu.com/s?wd=选美冠军车祸身亡&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-title-link">选美冠军车祸身亡</a></span><span class="point-state point-state-rise"></span><span class="point-index">172447</span><a href="https://www.baidu.com/s?wd=选美冠军车祸身亡&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-detail"></a></div><div class="point clearfix"><span class="point-rank point-rank-top3">3</span><span class="point-title"><a href="https://www.baidu.com/s?wd=2017高考&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-title-link">2017高考</a></span><span class="point-state point-state-rise"></span><span class="point-index">136806</span><a href="https://www.baidu.com/s?wd=2017高考&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-detail"></a></div><div class="point clearfix"><span class="point-rank">4</span><span class="point-title"><a href="https://www.baidu.com/s?wd=成都老火锅店被查&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-title-link">成都老火锅店被查</a></span><span class="point-state point-state-rise"></span><span class="point-index">121729</span><a href="https://www.baidu.com/s?wd=成都老火锅店被查&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-detail"></a></div><div class="point clearfix"><span class="point-rank">5</span><span class="point-title"><a href="https://www.baidu.com/s?wd=陈浩民娇妻秀身材&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-title-link">陈浩民娇妻秀身材</a></span><span class="point-state point-state-rise"></span><span class="point-index">115877</span><a href="https://www.baidu.com/s?wd=陈浩民娇妻秀身材&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-detail"></a></div><div class="point clearfix"><span class="point-rank">6</span><span class="point-title"><a href="https://www.baidu.com/s?wd=海边直播发现浮尸&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-title-link">海边直播发现浮尸</a></span><span class="point-state point-state-fall"></span><span class="point-index">86157</span><a href="https://www.baidu.com/s?wd=海边直播发现浮尸&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-detail"></a></div><div class="point clearfix"><span class="point-rank">7</span><span class="point-title"><a href="https://www.baidu.com/s?wd=曝印小天遭妻骗婚&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-title-link">曝印小天遭妻骗婚</a></span><span class="point-state point-state-fall"></span><span class="point-index">83749</span><a href="https://www.baidu.com/s?wd=曝印小天遭妻骗婚&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-detail"></a></div><div class="point clearfix"><span class="point-rank">8</span><span class="point-title"><a href="https://www.baidu.com/s?wd=苹果开发者大会&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-title-link">苹果开发者大会</a></span><span class="point-state point-state-rise"></span><span class="point-index">78140</span><a href="https://www.baidu.com/s?wd=苹果开发者大会&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-detail"></a></div><div class="point clearfix"><span class="point-rank">9</span><span class="point-title"><a href="https://www.baidu.com/s?wd=6万斤鱼缺氧死亡&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-title-link">6万斤鱼缺氧死亡</a></span><span class="point-state point-state-rise"></span><span class="point-index">68984</span><a href="https://www.baidu.com/s?wd=6万斤鱼缺氧死亡&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-detail"></a></div><div class="point clearfix"><span class="point-rank">10</span><span class="point-title"><a href="https://www.baidu.com/s?wd=安以轩夏威夷大婚&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-title-link">安以轩夏威夷大婚</a></span><span class="point-state point-state-rise"></span><span class="point-index">56675</span><a href="https://www.baidu.com/s?wd=安以轩夏威夷大婚&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-detail"></a></div></div></div></div></div><div class="top-wrap"><div class="top top-yellow" monkey="ms"><h2 class="title">民生热点</h2><div class="points"><div class="point-hd clearfix"><span class="point-rank">排名</span><span class="point-title">关键词</span><span class="point-index">搜索指数</span></div><div class="point-bd"><div class="point clearfix"><span class="point-rank point-rank-top3">1</span><span class="point-title"><a href="https://www.baidu.com/s?wd=北京回龙观大火&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-title-link">北京回龙观大火</a></span><span class="point-state point-state-rise"></span><span class="point-index">174225</span><a href="https://www.baidu.com/s?wd=北京回龙观大火&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-detail"></a></div><div class="point clearfix"><span class="point-rank point-rank-top3">2</span><span class="point-title"><a href="https://www.baidu.com/s?wd=2017高考&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-title-link">2017高考</a></span><span class="point-state point-state-rise"></span><span class="point-index">136806</span><a href="https://www.baidu.com/s?wd=2017高考&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-detail"></a></div><div class="point clearfix"><span class="point-rank point-rank-top3">3</span><span class="point-title"><a href="https://www.baidu.com/s?wd=成都老火锅店被查&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-title-link">成都老火锅店被查</a></span><span class="point-state point-state-rise"></span><span class="point-index">121729</span><a href="https://www.baidu.com/s?wd=成都老火锅店被查&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-detail"></a></div><div class="point clearfix"><span class="point-rank">4</span><span class="point-title"><a href="https://www.baidu.com/s?wd=海边直播发现浮尸&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-title-link">海边直播发现浮尸</a></span><span class="point-state point-state-fall"></span><span class="point-index">86157</span><a href="https://www.baidu.com/s?wd=海边直播发现浮尸&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-detail"></a></div><div class="point clearfix"><span class="point-rank">5</span><span class="point-title"><a href="https://www.baidu.com/s?wd=苹果开发者大会&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-title-link">苹果开发者大会</a></span><span class="point-state point-state-rise"></span><span class="point-index">78140</span><a href="https://www.baidu.com/s?wd=苹果开发者大会&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-detail"></a></div><div class="point clearfix"><span class="point-rank">6</span><span class="point-title"><a href="https://www.baidu.com/s?wd=6万斤鱼缺氧死亡&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-title-link">6万斤鱼缺氧死亡</a></span><span class="point-state point-state-rise"></span><span class="point-index">68984</span><a href="https://www.baidu.com/s?wd=6万斤鱼缺氧死亡&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-detail"></a></div><div class="point clearfix"><span class="point-rank">7</span><span class="point-title"><a href="https://www.baidu.com/s?wd=北控外援训练猝死&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-title-link">北控外援训练猝死</a></span><span class="point-state point-state-rise"></span><span class="point-index">50687</span><a href="https://www.baidu.com/s?wd=北控外援训练猝死&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-detail"></a></div><div class="point clearfix"><span class="point-rank">8</span><span class="point-title"><a href="https://www.baidu.com/s?wd=武汉男子裸体捅人&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-title-link">武汉男子裸体捅人</a></span><span class="point-state point-state-fall"></span><span class="point-index">45810</span><a href="https://www.baidu.com/s?wd=武汉男子裸体捅人&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-detail"></a></div><div class="point clearfix"><span class="point-rank">9</span><span class="point-title"><a href="https://www.baidu.com/s?wd=多国与卡塔尔断交&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-title-link">多国与卡塔尔断交</a></span><span class="point-state point-state-fall"></span><span class="point-index">44475</span><a href="https://www.baidu.com/s?wd=多国与卡塔尔断交&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-detail"></a></div><div class="point clearfix"><span class="point-rank">10</span><span class="point-title"><a href="https://www.baidu.com/s?wd=美驻华外交官辞职&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-title-link">美驻华外交官辞职</a></span><span class="point-state point-state-rise"></span><span class="point-index">44394</span><a href="https://www.baidu.com/s?wd=美驻华外交官辞职&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-detail"></a></div></div></div></div></div><div class="top-wrap"><div class="top first-col" monkey="dy"><h2 class="title">电影</h2><div class="points"><div class="point-hd clearfix"><span class="point-rank">排名</span><span class="point-title">关键词</span><span class="point-index">搜索指数</span></div><div class="point-bd"><div class="point clearfix"><span class="point-rank point-rank-top3">1</span><span class="point-title"><a href="https://www.baidu.com/s?wd=神奇女侠&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-title-link">神奇女侠</a></span><span class="point-state point-state-fall"></span><span class="point-index">40981</span><a href="https://www.baidu.com/s?wd=神奇女侠&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-detail"></a></div><div class="point clearfix"><span class="point-rank point-rank-top3">2</span><span class="point-title"><a href="https://www.baidu.com/s?wd=异星觉醒&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-title-link">异星觉醒</a></span><span class="point-state point-state-fall"></span><span class="point-index">15245</span><a href="https://www.baidu.com/s?wd=异星觉醒&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-detail"></a></div><div class="point clearfix"><span class="point-rank point-rank-top3">3</span><span class="point-title"><a href="https://www.baidu.com/s?wd=新木乃伊&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-title-link">新木乃伊</a></span><span class="point-state point-state-rise"></span><span class="point-index">7183</span><a href="https://www.baidu.com/s?wd=新木乃伊&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-detail"></a></div><div class="point clearfix"><span class="point-rank">4</span><span class="point-title"><a href="https://www.baidu.com/s?wd=中国推销员&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-title-link">中国推销员</a></span><span class="point-state point-state-rise"></span><span class="point-index">5890</span><a href="https://www.baidu.com/s?wd=中国推销员&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-detail"></a></div><div class="point clearfix"><span class="point-rank">5</span><span class="point-title"><a href="https://www.baidu.com/s?wd=荡寇风云&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-title-link">荡寇风云</a></span><span class="point-state point-state-fall"></span><span class="point-index">3006</span><a href="https://www.baidu.com/s?wd=荡寇风云&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-detail"></a></div><div class="point clearfix"><span class="point-rank">6</span><span class="point-title"><a href="https://www.baidu.com/s?wd=异兽来袭&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-title-link">异兽来袭</a></span><span class="point-state point-state-fall"></span><span class="point-index">2566</span><a href="https://www.baidu.com/s?wd=异兽来袭&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-detail"></a></div><div class="point clearfix"><span class="point-rank">7</span><span class="point-title"><a href="https://www.baidu.com/s?wd=李雷和韩梅梅&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-title-link">李雷和韩梅梅</a></span><span class="point-state point-state-rise"></span><span class="point-index">1636</span><a href="https://www.baidu.com/s?wd=李雷和韩梅梅&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-detail"></a></div><div class="point clearfix"><span class="point-rank">8</span><span class="point-title"><a href="https://www.baidu.com/s?wd=北极星&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-title-link">北极星</a></span><span class="point-state point-state-fall"></span><span class="point-index">1139</span><a href="https://www.baidu.com/s?wd=北极星&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-detail"></a></div><div class="point clearfix"><span class="point-rank">9</span><span class="point-title"><a href="https://www.baidu.com/s?wd=美好的意外&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-title-link">美好的意外</a></span><span class="point-state point-state-fall"></span><span class="point-index">971</span><a href="https://www.baidu.com/s?wd=美好的意外&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-detail"></a></div><div class="point clearfix"><span class="point-rank">10</span><span class="point-title"><a href="https://www.baidu.com/s?wd=夏天19岁的肖像&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-title-link">夏天19岁的肖像</a></span><span class="point-state point-state-rise"></span><span class="point-index">783</span><a href="https://www.baidu.com/s?wd=夏天19岁的肖像&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-detail"></a></div></div></div></div></div><div class="top-wrap"><div class="top top-blue" monkey="dsj"><h2 class="title">电视剧</h2><div class="points"><div class="point-hd clearfix"><span class="point-rank">排名</span><span class="point-title">关键词</span><span class="point-index">搜索指数</span></div><div class="point-bd"><div class="point clearfix"><span class="point-rank point-rank-top3">1</span><span class="point-title"><a href="https://www.baidu.com/s?wd=龙珠传奇&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-title-link">龙珠传奇</a></span><span class="point-state point-state-fair"></span><span class="point-index">999788</span><a href="https://www.baidu.com/s?wd=龙珠传奇&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-detail"></a></div><div class="point clearfix"><span class="point-rank point-rank-top3">2</span><span class="point-title"><a href="https://www.baidu.com/s?wd=楚乔传&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-title-link">楚乔传</a></span><span class="point-state point-state-rise"></span><span class="point-index">538848</span><a href="https://www.baidu.com/s?wd=楚乔传&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-detail"></a></div><div class="point clearfix"><span class="point-rank point-rank-top3">3</span><span class="point-title"><a href="https://www.baidu.com/s?wd=欢乐颂2&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-title-link">欢乐颂2</a></span><span class="point-state point-state-fall"></span><span class="point-index">257015</span><a href="https://www.baidu.com/s?wd=欢乐颂2&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-detail"></a></div><div class="point clearfix"><span class="point-rank">4</span><span class="point-title"><a href="https://www.baidu.com/s?wd=欢乐颂&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-title-link">欢乐颂</a></span><span class="point-state point-state-fall"></span><span class="point-index">176799</span><a href="https://www.baidu.com/s?wd=欢乐颂&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-detail"></a></div><div class="point clearfix"><span class="point-rank">5</span><span class="point-title"><a href="https://www.baidu.com/s?wd=职场是个技术活&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-title-link">职场是个技术活</a></span><span class="point-state point-state-rise"></span><span class="point-index">73102</span><a href="https://www.baidu.com/s?wd=职场是个技术活&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-detail"></a></div><div class="point clearfix"><span class="point-rank">6</span><span class="point-title"><a href="https://www.baidu.com/s?wd=择天记&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-title-link">择天记</a></span><span class="point-state point-state-fall"></span><span class="point-index">67290</span><a href="https://www.baidu.com/s?wd=择天记&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-detail"></a></div><div class="point clearfix"><span class="point-rank">7</span><span class="point-title"><a href="https://www.baidu.com/s?wd=美食大冒险&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-title-link">美食大冒险</a></span><span class="point-state point-state-rise"></span><span class="point-index">61792</span><a href="https://www.baidu.com/s?wd=美食大冒险&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-detail"></a></div><div class="point clearfix"><span class="point-rank">8</span><span class="point-title"><a href="https://www.baidu.com/s?wd=废柴兄弟&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-title-link">废柴兄弟</a></span><span class="point-state point-state-rise"></span><span class="point-index">50419</span><a href="https://www.baidu.com/s?wd=废柴兄弟&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-detail"></a></div><div class="point clearfix"><span class="point-rank">9</span><span class="point-title"><a href="https://www.baidu.com/s?wd=人民的名义&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-title-link">人民的名义</a></span><span class="point-state point-state-fall"></span><span class="point-index">46353</span><a href="https://www.baidu.com/s?wd=人民的名义&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-detail"></a></div><div class="point clearfix"><span class="point-rank">10</span><span class="point-title"><a href="https://www.baidu.com/s?wd=三生三世十里桃花&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-title-link">三生三世十里桃花</a></span><span class="point-state point-state-rise"></span><span class="point-index">24386</span><a href="https://www.baidu.com/s?wd=三生三世十里桃花&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-detail"></a></div></div></div></div></div><div class="top-wrap"><div class="top top-yellow" monkey="zy"><h2 class="title">综艺</h2><div class="points"><div class="point-hd clearfix"><span class="point-rank">排名</span><span class="point-title">关键词</span><span class="point-index">搜索指数</span></div><div class="point-bd"><div class="point clearfix"><span class="point-rank point-rank-top3">1</span><span class="point-title"><a href="https://www.baidu.com/s?wd=变形计&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-title-link">变形计</a></span><span class="point-state point-state-fall"></span><span class="point-index">223319</span><a href="https://www.baidu.com/s?wd=变形计&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-detail"></a></div><div class="point clearfix"><span class="point-rank point-rank-top3">2</span><span class="point-title"><a href="https://www.baidu.com/s?wd=来吧冠军&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-title-link">来吧冠军</a></span><span class="point-state point-state-fall"></span><span class="point-index">151641</span><a href="https://www.baidu.com/s?wd=来吧冠军&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-detail"></a></div><div class="point clearfix"><span class="point-rank point-rank-top3">3</span><span class="point-title"><a href="https://www.baidu.com/s?wd=拜托了冰箱&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-title-link">拜托了冰箱</a></span><span class="point-state point-state-rise"></span><span class="point-index">149596</span><a href="https://www.baidu.com/s?wd=拜托了冰箱&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-detail"></a></div><div class="point clearfix"><span class="point-rank">4</span><span class="point-title"><a href="https://www.baidu.com/s?wd=昆仑决&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-title-link">昆仑决</a></span><span class="point-state point-state-fall"></span><span class="point-index">139633</span><a href="https://www.baidu.com/s?wd=昆仑决&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-detail"></a></div><div class="point clearfix"><span class="point-rank">5</span><span class="point-title"><a href="https://www.baidu.com/s?wd=天生是优我&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-title-link">天生是优我</a></span><span class="point-state point-state-fall"></span><span class="point-index">124472</span><a href="https://www.baidu.com/s?wd=天生是优我&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-detail"></a></div><div class="point clearfix"><span class="point-rank">6</span><span class="point-title"><a href="https://www.baidu.com/s?wd=姐姐好饿&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-title-link">姐姐好饿</a></span><span class="point-state point-state-rise"></span><span class="point-index">99619</span><a href="https://www.baidu.com/s?wd=姐姐好饿&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-detail"></a></div><div class="point clearfix"><span class="point-rank">7</span><span class="point-title"><a href="https://www.baidu.com/s?wd=脑力男人时代&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-title-link">脑力男人时代</a></span><span class="point-state point-state-fall"></span><span class="point-index">68735</span><a href="https://www.baidu.com/s?wd=脑力男人时代&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-detail"></a></div><div class="point clearfix"><span class="point-rank">8</span><span class="point-title"><a href="https://www.baidu.com/s?wd=奔跑吧兄弟&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-title-link">奔跑吧兄弟</a></span><span class="point-state point-state-fall"></span><span class="point-index">61903</span><a href="https://www.baidu.com/s?wd=奔跑吧兄弟&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-detail"></a></div><div class="point clearfix"><span class="point-rank">9</span><span class="point-title"><a href="https://www.baidu.com/s?wd=我想和你唱&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-title-link">我想和你唱</a></span><span class="point-state point-state-rise"></span><span class="point-index">59249</span><a href="https://www.baidu.com/s?wd=我想和你唱&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-detail"></a></div><div class="point clearfix"><span class="point-rank">10</span><span class="point-title"><a href="https://www.baidu.com/s?wd=玫瑰之旅&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-title-link">玫瑰之旅</a></span><span class="point-state point-state-rise"></span><span class="point-index">50425</span><a href="https://www.baidu.com/s?wd=玫瑰之旅&ie=utf-8&tn=sitehao123_03" target="_blank" class="point-detail"></a></div></div></div></div></div></div></div></div>
</div>
</div>
<div class="lift-fixed" id="lift"><div class="item feedback"><div class="feedbackbg"></div><div class="infotxt"><a href="http://www.hao123.com/feedback" target="_blank">意见反馈</a></div></div><div class="item gototop"><div class="gototopbg"></div><div class="infotxt"><a href="#" id="returntop">返回顶部</a></div></div></div>
<div class="c-footer w1190 " monkey="erji-footer"><div class="container"><div class="left-wrap clearfix"><a href="https://www.hao123.com" class="logo" target="_blank" monkey="logo">hao123 上网导航第一品牌</a><div class="bottom-nav" monkey="nav"><a href="http://www.hao123.com/abouthao123.htm" class="item" target="_target">关于我们</a><a href="http://www.hao123.com/redian/problem.htm" class="item" target="_taregt">常见问题</a><a href="http://www.hao123.com/feedback" class="item" target="_blank">反馈意见</a><a href="http://www.hao123.com/sitemap" class="item" target="_blank">全站地图</a><span class="item">京ICP证030173号</span></div></div><div class="right-wrap"><div class="extend-nav clearfix" monkey="tools"><a href="http://www.hao123.com/shouji" class="item" target="_blank"><i class="icon-phone"></i><span>下载<br>手机端</span></a><a href="javascript:;" class="item" target="_black" data-hook="addBookmark"><i class="icon-collect"></i><span>收藏<br>本站</span></a></div></div></div></div>
<script type="text/javascript" src="http://s0.hao123img.com/res/js/common/as.min.js?_=2434"></script>
<script src="http://s2.hao123img.com/resource/fe/js/lib/main.5a7c104a8.js"></script>
<script>BigPipe.lazyPagelets = [];</script>
<script>BigPipe.loadedResource(["5a7c104a8_7959","d8b3cc9ac_29e3","38645dd_f7dd","8d1d978b0_a316","6cca09af6_f07f","a0832ac19_fb25","25330c25d_ce62","deba0d4c0_c8fe","1c81d5fc6_a695","0c7877e81_8719","6e9548c75_e646","38645dd_0f3e","3f6d691_9321","4d7a174_ccfc","9e71d5b_bed3","b016c1d_d1a3","e073b71_9403","77f7c66_45f3","95a138325_0731"]);</script><script>BigPipe.hooks["__cb_0_1"]=function(){'use strict';
var $ = require('fe:widget/js/base/jquery.js');
var fixreferrer = require('fe:widget/js/base/fixreferrer.js');
HAO.https && fixreferrer.init($(document));
};</script>
<script>BigPipe.hooks["__cb_0_2"]=function(){'use strict';
var $ = require('fe:widget/js/base/jquery.js');$('div[data-hook="sitemap"]').on('mouseenter', function (e) {$(this).addClass('sitemap-hover');}).on('mouseleave', function (e) {$(this).removeClass('sitemap-hover');});};</script>
<script>BigPipe.hooks["__cb_0_3"]=function(){'use strict';
var $ = require('fe:widget/js/base/jquery.js');var Search = require('fe:widget/js/base/search.js');var headerSearchInstance = new Search($('form[data-hook="search-form"]'));};</script>
<script>BigPipe.hooks["__cb_0_4"]=function(){'use strict';
var $ = require('fe:widget/js/base/jquery.js');var events = require('fe:widget/js/lib/events.js');var login = require('fe:widget/js/base/login.js');var sethome = require('fe:widget/js/base/sethome.js');var $loginCon = $('div[data-hook="c-header-login"]');var $loginDrop = $('div[js-hook="popup-list"]');login.init();events.on('loginSuccess', function(userinfo) {$loginCon.addClass('success');$loginCon.find('.key .word').html(userinfo.userName);/* if ($loginCon.find('.key .word').width() >= 60) {$loginCon.find('.key .word').width(50);$loginDrop.outerWidth($loginCon.outerWidth());}*/$('[data-hook=login]').removeAttr('data-hook');});$loginCon.mouseenter(function() {if($(this).hasClass('success')) {$(this).addClass('hover');}}).mouseleave(function() {$(this).removeClass('hover');});$('div[data-hhok="qrcode"]').on('mouseenter', function () {$(this).children('div').show();}).on('mouseleave', function () {$(this).children('div').hide();}).on('click', function (ev) {if ($(this).children('div').length > 0) {return false;}});if($('[data-hook=setHome]').length) {sethome.init();}};</script>
<script>BigPipe.hooks["__cb_0_5"]=function(){'use strict';
var $ = require('fe:widget/js/base/jquery.js');var popupWidth;$('div[data-hook="nav-more"]').on('mouseenter', function () {popupWidth = $(this).children('div').width();$(this).addClass('nav-more-hover');}).on('mouseleave', function () {$(this).removeClass('nav-more-hover');});};</script>
<script>BigPipe.hooks["__cb_0_6"]=function(){'use strict';
var $ = require('fe:widget/js/base/jquery.js');var $v2Header = $('#erjiV2Header');var $fixedNav = $('#fixedNav');if ($v2Header.hasClass('v2-fixed') && !($.browser.msie && $.browser.version < 7)) {var offHeight = 0;$(window).scroll(function () {offHeight = $v2Header.offset().top 60;if ($(window).scrollTop() >= offHeight) {if (!$fixedNav.hasClass('nav-v2-fixed')) {$fixedNav.addClass('nav-v2-fixed').find('li.cur').removeClass('cur').addClass('cur');}}else if ($fixedNav.hasClass('nav-v2-fixed')) {$fixedNav.removeClass('nav-v2-fixed').find('li.cur').removeClass('cur').addClass('cur');}});}};</script>
<script>BigPipe.hooks["__cb_0_7"]=function(){'use strict';
var $ = require('fe:widget/js/base/jquery.js');var Slider = require('fe:widget/js/util/slider.js');new Slider($('.slider'));};</script>
<script>BigPipe.hooks["__cb_0_8"]=function(){'use strict';
if(typeof BAIDU_SS_HHRUN!='function'){var d=document;(d.getElementsByTagName('head')[0]||d.body).appendChild(d.createElement('script')).src='http://su.bdimg.com/static/dspui/js/ls.js?v=' ~(-new Date()/5600e5)}else{BAIDU_SS_HHRUN()}};</script>
<script>BigPipe.hooks["__cb_0_9"]=function(){'use strict';
var lifttop = require('tuijian:widget/lift/lifttop.js');lifttop();};</script>
<script>BigPipe.hooks["__cb_0_10"]=function(){'use strict';
window._bd_share_config = {
common : {
bdText : '',
bdDesc : '',
bdUrl : '',
bdPic : ''
},
share : {
"bdSize" : 24
},
selectShare : [{
"bdselectMiniList" : ['tsina','weixin','qzone']
}]
};
(document.getElementsByTagName('head')[0]||document.body)
.appendChild(document.createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion=' ~(-new Date());
var shareEvent = require('tuijian:widget/index/content/shareEvent.js');
shareEvent();
};</script>
<script>BigPipe.hooks["__cb_0_11"]=function(){'use strict';
var addBookmark = require('fe:widget/js/base/addbookmark.js');addBookmark.init();};</script>
<script>BigPipe.hooks["__cb_0_12"]=function(){'use strict';
(function initTrack(o){
var d = document;
var x = d.createElement("script");
x.src = HAO.httpsTrans('http://s0.hao123img.com/res/js/track.js') '?' ~(new Date/36e5);
var a=[];
if(o){
for(var i in o){
a.push(i ":" (o[i]))
}
var config = a.join(";");
x.setAttribute("data-log-config", config);
var s = d.getElementsByTagName("script")[0].parentNode;
var p= s || d.head;
if(p) {
setTimeout(function() {
p.appendChild(x)
}, 0);
}
}
})({
pageId: window.pageId,
page: window.pageId,
level: 2,
vp: window.pageVP || window.pageId,
aid: window.aid || ''
});
window.js_track_loaded = function (success) {
if (success) {
window.js_track_loaded = null;
if (window.aid) {
/* globals Monkey */
Monkey && Monkey.set && Monkey.set('aid', window.aid);
}
}
};
// 跨站资源统计
/* (function (doc) {
var s = doc.createElement('script');
s.src = HAO.httpsTrans('http://s0.hao123img.com/res/js/fe/cspalog.js') '?t=' ( new Date);
var parent = doc.getElementsByTagName('script')[0].parentNode;
parent.appendChild(s);
})(document); */
};</script>
<script>BigPipe.hooks["__cb_0_13"]=function(){'use strict';
require.defer(["fe:widget/js/base/jquery.js","fe:widget/js/base/detect.js","tuijian:widget/index/kuaixun.js"], function ($, detect, kuaixun) {
$(document).ready(function() {
detect();
kuaixun.init();
});
});
};</script>
<script>BigPipe.setResourceMap({"d8b3cc9ac_29e3":{"src":"http:\/\/s1.hao123img.com\/resource\/fe\/pkg\/aio-eef856ab5.231bb088c.css","type":"css","deps":[],"mods":["fe:resource\/css\/base.less"]},"38645dd_f7dd":{"src":"http:\/\/s2.hao123img.com\/resource\/tuijian\/css\/hotrank.38645dd.css","type":"css","deps":[],"mods":["tuijian:resource\/css\/hotrank.less"]},"8d1d978b0_a316":{"src":"http:\/\/s1.hao123img.com\/resource\/fe\/widget\/ui\/header\/common\/v2\/header.8d1d978b0.css","type":"css","deps":[],"mods":["fe:widget\/ui\/header\/common\/v2\/header.less"]},"6cca09af6_f07f":{"src":"http:\/\/s0.hao123img.com\/resource\/fe\/widget\/ui\/header\/common\/v2\/logo\/logo.6cca09af6.css","type":"css","deps":[],"mods":["fe:widget\/ui\/header\/common\/v2\/logo\/logo.less"]},"a0832ac19_fb25":{"src":"http:\/\/s1.hao123img.com\/resource\/fe\/widget\/ui\/header\/common\/v2\/sitemap\/sitemap.a0832ac19.css","type":"css","deps":[],"mods":["fe:widget\/ui\/header\/common\/v2\/sitemap\/sitemap.less"]},"25330c25d_ce62":{"src":"http:\/\/s2.hao123img.com\/resource\/fe\/widget\/ui\/header\/common\/v2\/adv\/adv.25330c25d.css","type":"css","deps":[],"mods":["fe:widget\/ui\/header\/common\/v2\/adv\/adv.less"]},"deba0d4c0_c8fe":{"src":"http:\/\/s0.hao123img.com\/resource\/fe\/widget\/ui\/header\/common\/v2\/form\/form.deba0d4c0.css","type":"css","deps":[],"mods":["fe:widget\/ui\/header\/common\/v2\/form\/form.less"]},"1c81d5fc6_a695":{"src":"http:\/\/s0.hao123img.com\/resource\/fe\/widget\/ui\/header\/common\/v2\/tools\/tools.1c81d5fc6.css","type":"css","deps":[],"mods":["fe:widget\/ui\/header\/common\/v2\/tools\/tools.less"]},"0c7877e81_8719":{"src":"http:\/\/s2.hao123img.com\/resource\/fe\/widget\/ui\/header\/common\/v2\/nav\/nav.0c7877e81.css","type":"css","deps":[],"mods":["fe:widget\/ui\/header\/common\/v2\/nav\/nav.less"]},"6e9548c75_e646":{"src":"http:\/\/s2.hao123img.com\/resource\/fe\/widget\/ui\/header\/common\/v2\/tuiguang\/tuiguang.6e9548c75.css","type":"css","deps":[],"mods":["fe:widget\/ui\/header\/common\/v2\/tuiguang\/tuiguang.less"]},"38645dd_0f3e":{"src":"http:\/\/s0.hao123img.com\/resource\/tuijian\/widget\/index\/hotrank\/hotrank.38645dd.css","type":"css","deps":[],"mods":["tuijian:widget\/index\/hotrank\/hotrank.less"]},"3f6d691_9321":{"src":"http:\/\/s2.hao123img.com\/resource\/tuijian\/widget\/index\/hotrank\/index\/slider\/slider.3f6d691.css","type":"css","deps":[],"mods":["tuijian:widget\/index\/hotrank\/index\/slider\/slider.less"]},"4d7a174_ccfc":{"src":"http:\/\/s0.hao123img.com\/resource\/tuijian\/widget\/index\/hotrank\/common\/slider\/slider.4d7a174.css","type":"css","deps":[],"mods":["tuijian:widget\/index\/hotrank\/common\/slider\/slider.less"]},"9e71d5b_bed3":{"src":"http:\/\/s0.hao123img.com\/resource\/tuijian\/widget\/index\/hotrank\/index\/news\/news.9e71d5b.css","type":"css","deps":[],"mods":["tuijian:widget\/index\/hotrank\/index\/news\/news.less"]},"b016c1d_d1a3":{"src":"http:\/\/s1.hao123img.com\/resource\/tuijian\/widget\/index\/hotrank\/index\/fyb\/fyb.b016c1d.css","type":"css","deps":[],"mods":["tuijian:widget\/index\/hotrank\/index\/fyb\/fyb.less"]},"e073b71_9403":{"src":"http:\/\/s0.hao123img.com\/resource\/tuijian\/widget\/index\/hotrank\/index\/top\/top.e073b71.css","type":"css","deps":[],"mods":["tuijian:widget\/index\/hotrank\/index\/top\/top.less"]},"77f7c66_45f3":{"src":"http:\/\/s0.hao123img.com\/resource\/tuijian\/widget\/lift\/lift.77f7c66.css","type":"css","deps":[],"mods":["tuijian:widget\/lift\/lift.less"]},"95a138325_0731":{"src":"http:\/\/s2.hao123img.com\/resource\/fe\/pkg\/aio-8155b5719.3dd99d32e.css","type":"css","deps":[],"mods":["fe:widget\/ui\/footer\/common\/footer.less"]},"ed29b1dff_99f2":{"src":"http:\/\/s1.hao123img.com\/resource\/fe\/pkg\/aio-752ba7752.ed29b1dff.js","type":"js","deps":[],"mods":["fe:widget\/js\/base\/jquery.js"]},"499abaa0e_acda":{"src":"http:\/\/s0.hao123img.com\/resource\/fe\/pkg\/aio-eef856ab5.499abaa0e.js","type":"js","deps":["ed29b1dff_99f2","15f327f0a_5d72"],"mods":["fe:widget\/js\/base\/browser.js","fe:widget\/js\/base\/fixreferrer.js"]},"15f327f0a_5d72":{"src":"http:\/\/s0.hao123img.com\/resource\/fe\/pkg\/aio-95cc3013d.15f327f0a.js","type":"js","deps":["ed29b1dff_99f2"],"mods":["fe:widget\/js\/base\/cookie.js"]},"331938377_b942":{"src":"http:\/\/s0.hao123img.com\/resource\/fe\/pkg\/aio-1c2d6f9f2.2b182a527.css","type":"css","deps":[],"mods":["fe:widget\/ui\/header\/common\/header.less"]},"2009b1512_46d0":{"src":"http:\/\/s0.hao123img.com\/resource\/fe\/pkg\/aio-1c2d6f9f2.2009b1512.js","type":"js","deps":["ed29b1dff_99f2","15f327f0a_5d72","331938377_b942"],"mods":["fe:widget\/js\/base\/sethome.js","fe:widget\/js\/lib\/events.js","fe:widget\/js\/base\/login.js","fe:widget\/js\/third\/arttemplate\/template-native.js","fe:widget\/js\/base\/autocomplete.js","fe:widget\/js\/base\/search.js","fe:widget\/ui\/header\/common\/header.js"]},"9a092a7f1_2a6f":{"src":"http:\/\/s0.hao123img.com\/resource\/fe\/widget\/js\/util\/slider.9a092a7f1.js","type":"js","deps":["ed29b1dff_99f2"],"mods":["fe:widget\/js\/util\/slider.js"]},"f271c78_c7d7":{"src":"http:\/\/s0.hao123img.com\/resource\/tuijian\/widget\/lift\/lifttop.f271c78.js","type":"js","deps":["ed29b1dff_99f2"],"mods":["tuijian:widget\/lift\/lifttop.js"]},"4d39d64_93de":{"src":"http:\/\/s1.hao123img.com\/resource\/tuijian\/widget\/index\/content\/shareEvent.4d39d64.js","type":"js","deps":["ed29b1dff_99f2"],"mods":["tuijian:widget\/index\/content\/shareEvent.js"]},"3ac67f28c_b365":{"src":"http:\/\/s2.hao123img.com\/resource\/fe\/pkg\/aio-8155b5719.3ac67f28c.js","type":"js","deps":["ed29b1dff_99f2"],"mods":["fe:widget\/js\/base\/addbookmark.js"]},"67402ee5d_d72b":{"src":"http:\/\/s2.hao123img.com\/resource\/fe\/widget\/js\/base\/track.67402ee5d.js","type":"js","deps":["ed29b1dff_99f2"],"mods":["fe:widget\/js\/base\/track.js"]},"f97e9ecfd_31c5":{"src":"http:\/\/s1.hao123img.com\/resource\/fe\/widget\/js\/base\/detect.f97e9ecfd.js","type":"js","deps":["67402ee5d_d72b"],"mods":["fe:widget\/js\/base\/detect.js"]},"2e29525_fe44":{"src":"http:\/\/s1.hao123img.com\/resource\/tuijian\/widget\/index\/kuaixun.2e29525.js","type":"js","deps":["ed29b1dff_99f2"],"mods":["tuijian:widget\/index\/kuaixun.js"]},"5a7c104a8_7959":{"src":"http:\/\/s2.hao123img.com\/resource\/fe\/js\/lib\/main.5a7c104a8.js","type":"js","deps":[],"mods":["fe:resource\/js\/lib\/main.js"]}});</script>
<script>BigPipe.onPageletArrive({"id":null,"children":[],"renderMode":"default","parent":null,"deps":{"beforedisplay":["d8b3cc9ac_29e3","38645dd_f7dd","8d1d978b0_a316","6cca09af6_f07f","a0832ac19_fb25","25330c25d_ce62","deba0d4c0_c8fe","1c81d5fc6_a695","0c7877e81_8719","6e9548c75_e646","38645dd_0f3e","3f6d691_9321","4d7a174_ccfc","9e71d5b_bed3","b016c1d_d1a3","e073b71_9403","77f7c66_45f3","95a138325_0731"],"load":["ed29b1dff_99f2","499abaa0e_acda","2009b1512_46d0","9a092a7f1_2a6f","f271c78_c7d7","4d39d64_93de","3ac67f28c_b365"]},"hooks":{"load":["__cb_0_1","__cb_0_2","__cb_0_3","__cb_0_4","__cb_0_5","__cb_0_6","__cb_0_7","__cb_0_8","__cb_0_9","__cb_0_10","__cb_0_11","__cb_0_12","__cb_0_13"]}});</script>
</body></html><!--24343361510346110218060803-->
<script> var _trace_page_logid = 2434336151; </script>
筛选数据
以网页中的综艺热点部分
相关源代码如下
通过分析可知,‘综艺’模块与其他模块都位于<div class="top-wrap">中,其中,综艺模块的内层div的monkey='zy',综艺模块的10条综艺节目的信息都位于<div class="poinr clearfix">中,综艺节目的名称位于<span class="point-title">中
cheerio
我们怎么从源代码中获取到有用的数据呢?首先,nodeJS不支持document对象。如果要使用笨办法,只能使用正则表达式来处理
cheerio 是nodejs特别为服务端定制的,能够快速灵活的对JQuery核心进行实现。它工作于DOM模型上,且解析、操作、呈送都很高效
【安装】
【使用】
它的使用方法和jQuery相当类似,上手非常容易。以获取综艺热度前10名的节目名称为例
var http = require('http');
var cheerio = require('cheerio');
http.get('http://tuijian.hao123.com/hotrank',function(res){
var data = '';
res.on('data',function(chunk){
data = chunk;
});
res.on('end',function(){
filter(data);
})
});
function filter(data){
//保存搜索量前10的综艺节目标题
var result = [];
//将页面源代码转换为$对象
var $ = cheerio.load(data);
//查找每个综艺节目标题的外层div
var temp_arr = $('[monkey = "zy"]').find('.point-bd').find('.point-title');
//将综艺节目标题依次保存到结果数组中
temp_arr.each(function(index,item){
result.push($(item).text());
})
//[ '变形计','来吧冠军','拜托了冰箱','昆仑决','天生是优我','姐姐好饿','脑力男人时代','奔跑吧兄弟','我想和你唱','玫瑰之旅' ]
console.log(result);
}
爬虫代码
下面将hao123网页中的'实时热点'、'今日热点'、'民生热点'、'电影'、'电视剧'、'综艺'这6部分的排名爬下来,分别到对象名为'result'中的数组中,分别命令为'ss'、'jr'、'ms'、'dy'、'dsj'、'zy'
【代码如下】
var http = require('http');
var cheerio = require('cheerio');
http.get('http://tuijian.hao123.com/hotrank',function(res){
var data = '';
res.on('data',function(chunk){
data = chunk;
});
res.on('end',function(){
filter(data);
})
});
function filter(data){
//保存各部分搜索量前10的名称
//对象名为榜单名,如'实时热点'
//对象内容为10个标题名称组成的数组
var result = {};
//将页面源代码转换为$对象
var $ = cheerio.load(data);
//查找'实时热点'、'今日热点'、'民生热点'、'电影'、'电视剧'、'综艺'这6个榜单所在的div
var temp_div = $('.top-wrap');
//保存榜单名称
var temp_title = [];
temp_div.each(function(index,item){
//查找榜单名,并保存到temp_title文件夹中
temp_title.push($(item).find('h2').text());
//查找每类下每个标题的外层div
var temp_arr = $(item).find('.point-bd').find('.point-title');
//将result下的每个榜单初始化为一个数组
var innerResult = result[temp_title[index]] = [];
//将节目标题依次保存到相应榜单的数组中
temp_arr.each(function(_index,_item){
innerResult.push($(_item).text())
})
})
console.log(result);
}
【结果如下】
{ '实时热点':
[ '美国逮捕女斯诺登',
'成都隐秘母乳买卖',
'曝周杰伦青涩旧照',
'老头公交强吻女孩',
'王传君恋情曝光',
'杭州现奇葩窗口',
'忘带全班准考证',
'未成年持械拍网红',
'9秒揍儿子8拳',
'戴耳机穿轨道被撞' ],
'今日热点':
[ '北京回龙观大火',
'选美冠军车祸身亡',
'2017高考',
'成都老火锅店被查',
'陈浩民娇妻秀身材',
'海边直播发现浮尸',
'曝印小天遭妻骗婚',
'苹果开发者大会',
'6万斤鱼缺氧死亡',
'安以轩夏威夷大婚' ],
'民生热点':
[ '北京回龙观大火',
'2017高考',
'成都老火锅店被查',
'海边直播发现浮尸',
'苹果开发者大会',
'6万斤鱼缺氧死亡',
'北控外援训练猝死',
'武汉男子裸体捅人',
'多国与卡塔尔断交',
'美驻华外交官辞职' ],
'电影':
[ '神奇女侠',
'异星觉醒',
'新木乃伊',
'中国推销员',
'荡寇风云',
'异兽来袭',
'李雷和韩梅梅',
'北极星',
'美好的意外',
'夏天19岁的肖像' ],
'电视剧':
[ '龙珠传奇',
'楚乔传',
'欢乐颂2',
'欢乐颂',
'职场是个技术活',
'择天记',
'美食大冒险',
'废柴兄弟',
'人民的名义',
'三生三世十里桃花' ],
'综艺':
[ '变形计',
'来吧冠军',
'拜托了冰箱',
'昆仑决',
'天生是优我',
'姐姐好饿',
'脑力男人时代',
'奔跑吧兄弟',
'我想和你唱',
'玫瑰之旅' ] }
[Finished in 0.7s]
更多专业前端知识,请上 【猿2048】www.mk2048.com