nodeJS实现简单网页爬虫功能

前面的话

  本文将使用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=送考车要讲究 毛坦厂中学送考规模庞大&amp;ie=utf-8&amp;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=送考车要讲究 毛坦厂中学送考规模庞大&amp;ie=utf-8&amp;tn=sitehao123_03" class="slider-title" target="_blank">送考车要讲究 毛坦厂中学送考规模庞大</a></div></div><div class="slider-page"><a href="https://www.baidu.com/s?wd=江苏"拇指西瓜"上市 可连皮食用&amp;ie=utf-8&amp;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=江苏"拇指西瓜"上市 可连皮食用&amp;ie=utf-8&amp;tn=sitehao123_03" class="slider-title" target="_blank">江苏&quot;拇指西瓜&quot;上市 可连皮食用</a></div></div><div class="slider-page"><a href="https://www.baidu.com/s?wd=非洲女子嫁中国郎 2年后成广场舞明星&amp;ie=utf-8&amp;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年后成广场舞明星&amp;ie=utf-8&amp;tn=sitehao123_03" class="slider-title" target="_blank">非洲女子嫁中国郎 2年后成广场舞明星</a></div></div><div class="slider-page"><a href="https://www.baidu.com/s?wd=广州一考生去错考场 交警蜀黍紧急送考&amp;ie=utf-8&amp;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=广州一考生去错考场 交警蜀黍紧急送考&amp;ie=utf-8&amp;tn=sitehao123_03" class="slider-title" target="_blank">广州一考生去错考场 交警蜀黍紧急送考</a></div></div><div class="slider-page"><a href="https://www.baidu.com/s?wd=福建小伙南非建安保公司 持AK47与劫匪激战&amp;ie=utf-8&amp;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与劫匪激战&amp;ie=utf-8&amp;tn=sitehao123_03" class="slider-title" target="_blank">福建小伙南非建安保公司 持AK47与劫匪激战</a></div></div><div class="slider-page"><a href="https://www.baidu.com/s?wd=老师拔河搞怪表情走红 拔河如戏全靠演技&amp;ie=utf-8&amp;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=老师拔河搞怪表情走红 拔河如戏全靠演技&amp;ie=utf-8&amp;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=男子上山寻宝 挖出这物吓坏了!&amp;ie=utf-8&amp;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=千年巨蛇镇守古墓竟借尸还魂&amp;ie=utf-8&amp;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=地球是个监狱人类只是试验品!&amp;ie=utf-8&amp;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检测是叔叔的可爸爸是独子&amp;ie=utf-8&amp;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=出差两月打开电饭锅后惊呆了&amp;ie=utf-8&amp;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年后怒告彩票公司&amp;ie=utf-8&amp;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多颗钻石!&amp;ie=utf-8&amp;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岁男孩吞云吐雾成烟雾之神!&amp;ie=utf-8&amp;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孩子喝农药,继女死亡&amp;ie=utf-8&amp;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=惊呆!实拍假鸡蛋制作的全过程&amp;ie=utf-8&amp;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=美国逮捕女斯诺登&amp;ie=utf-8&amp;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=美国逮捕女斯诺登&amp;ie=utf-8&amp;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=成都隐秘母乳买卖&amp;ie=utf-8&amp;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=成都隐秘母乳买卖&amp;ie=utf-8&amp;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=曝周杰伦青涩旧照&amp;ie=utf-8&amp;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=曝周杰伦青涩旧照&amp;ie=utf-8&amp;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=老头公交强吻女孩&amp;ie=utf-8&amp;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=老头公交强吻女孩&amp;ie=utf-8&amp;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=王传君恋情曝光&amp;ie=utf-8&amp;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=王传君恋情曝光&amp;ie=utf-8&amp;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=杭州现奇葩窗口&amp;ie=utf-8&amp;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=杭州现奇葩窗口&amp;ie=utf-8&amp;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=忘带全班准考证&amp;ie=utf-8&amp;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=忘带全班准考证&amp;ie=utf-8&amp;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=未成年持械拍网红&amp;ie=utf-8&amp;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=未成年持械拍网红&amp;ie=utf-8&amp;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拳&amp;ie=utf-8&amp;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拳&amp;ie=utf-8&amp;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=戴耳机穿轨道被撞&amp;ie=utf-8&amp;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=戴耳机穿轨道被撞&amp;ie=utf-8&amp;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=北京回龙观大火&amp;ie=utf-8&amp;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=北京回龙观大火&amp;ie=utf-8&amp;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=选美冠军车祸身亡&amp;ie=utf-8&amp;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=选美冠军车祸身亡&amp;ie=utf-8&amp;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高考&amp;ie=utf-8&amp;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高考&amp;ie=utf-8&amp;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=成都老火锅店被查&amp;ie=utf-8&amp;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=成都老火锅店被查&amp;ie=utf-8&amp;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=陈浩民娇妻秀身材&amp;ie=utf-8&amp;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=陈浩民娇妻秀身材&amp;ie=utf-8&amp;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=海边直播发现浮尸&amp;ie=utf-8&amp;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=海边直播发现浮尸&amp;ie=utf-8&amp;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=曝印小天遭妻骗婚&amp;ie=utf-8&amp;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=曝印小天遭妻骗婚&amp;ie=utf-8&amp;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=苹果开发者大会&amp;ie=utf-8&amp;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=苹果开发者大会&amp;ie=utf-8&amp;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万斤鱼缺氧死亡&amp;ie=utf-8&amp;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万斤鱼缺氧死亡&amp;ie=utf-8&amp;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=安以轩夏威夷大婚&amp;ie=utf-8&amp;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=安以轩夏威夷大婚&amp;ie=utf-8&amp;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=北京回龙观大火&amp;ie=utf-8&amp;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=北京回龙观大火&amp;ie=utf-8&amp;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高考&amp;ie=utf-8&amp;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高考&amp;ie=utf-8&amp;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=成都老火锅店被查&amp;ie=utf-8&amp;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=成都老火锅店被查&amp;ie=utf-8&amp;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=海边直播发现浮尸&amp;ie=utf-8&amp;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=海边直播发现浮尸&amp;ie=utf-8&amp;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=苹果开发者大会&amp;ie=utf-8&amp;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=苹果开发者大会&amp;ie=utf-8&amp;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万斤鱼缺氧死亡&amp;ie=utf-8&amp;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万斤鱼缺氧死亡&amp;ie=utf-8&amp;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=北控外援训练猝死&amp;ie=utf-8&amp;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=北控外援训练猝死&amp;ie=utf-8&amp;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=武汉男子裸体捅人&amp;ie=utf-8&amp;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=武汉男子裸体捅人&amp;ie=utf-8&amp;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=多国与卡塔尔断交&amp;ie=utf-8&amp;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=多国与卡塔尔断交&amp;ie=utf-8&amp;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=美驻华外交官辞职&amp;ie=utf-8&amp;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=美驻华外交官辞职&amp;ie=utf-8&amp;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=神奇女侠&amp;ie=utf-8&amp;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=神奇女侠&amp;ie=utf-8&amp;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=异星觉醒&amp;ie=utf-8&amp;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=异星觉醒&amp;ie=utf-8&amp;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=新木乃伊&amp;ie=utf-8&amp;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=新木乃伊&amp;ie=utf-8&amp;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=中国推销员&amp;ie=utf-8&amp;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=中国推销员&amp;ie=utf-8&amp;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=荡寇风云&amp;ie=utf-8&amp;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=荡寇风云&amp;ie=utf-8&amp;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=异兽来袭&amp;ie=utf-8&amp;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=异兽来袭&amp;ie=utf-8&amp;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=李雷和韩梅梅&amp;ie=utf-8&amp;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=李雷和韩梅梅&amp;ie=utf-8&amp;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=北极星&amp;ie=utf-8&amp;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=北极星&amp;ie=utf-8&amp;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=美好的意外&amp;ie=utf-8&amp;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=美好的意外&amp;ie=utf-8&amp;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岁的肖像&amp;ie=utf-8&amp;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岁的肖像&amp;ie=utf-8&amp;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=龙珠传奇&amp;ie=utf-8&amp;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=龙珠传奇&amp;ie=utf-8&amp;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=楚乔传&amp;ie=utf-8&amp;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=楚乔传&amp;ie=utf-8&amp;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&amp;ie=utf-8&amp;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&amp;ie=utf-8&amp;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=欢乐颂&amp;ie=utf-8&amp;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=欢乐颂&amp;ie=utf-8&amp;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=职场是个技术活&amp;ie=utf-8&amp;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=职场是个技术活&amp;ie=utf-8&amp;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=择天记&amp;ie=utf-8&amp;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=择天记&amp;ie=utf-8&amp;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=美食大冒险&amp;ie=utf-8&amp;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=美食大冒险&amp;ie=utf-8&amp;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=废柴兄弟&amp;ie=utf-8&amp;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=废柴兄弟&amp;ie=utf-8&amp;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=人民的名义&amp;ie=utf-8&amp;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=人民的名义&amp;ie=utf-8&amp;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=三生三世十里桃花&amp;ie=utf-8&amp;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=三生三世十里桃花&amp;ie=utf-8&amp;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=变形计&amp;ie=utf-8&amp;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=变形计&amp;ie=utf-8&amp;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=来吧冠军&amp;ie=utf-8&amp;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=来吧冠军&amp;ie=utf-8&amp;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=拜托了冰箱&amp;ie=utf-8&amp;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=拜托了冰箱&amp;ie=utf-8&amp;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=昆仑决&amp;ie=utf-8&amp;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=昆仑决&amp;ie=utf-8&amp;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=天生是优我&amp;ie=utf-8&amp;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=天生是优我&amp;ie=utf-8&amp;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=姐姐好饿&amp;ie=utf-8&amp;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=姐姐好饿&amp;ie=utf-8&amp;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=脑力男人时代&amp;ie=utf-8&amp;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=脑力男人时代&amp;ie=utf-8&amp;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=奔跑吧兄弟&amp;ie=utf-8&amp;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=奔跑吧兄弟&amp;ie=utf-8&amp;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=我想和你唱&amp;ie=utf-8&amp;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=我想和你唱&amp;ie=utf-8&amp;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=玫瑰之旅&amp;ie=utf-8&amp;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=玫瑰之旅&amp;ie=utf-8&amp;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>
View Code

 

筛选数据

  以网页中的综艺热点部分

  相关源代码如下

  通过分析可知,‘综艺’模块与其他模块都位于<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

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/363021.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

JavaFX技巧6:使用透明颜色

为用户界面元素选择正确的颜色始终是一个很大的挑战&#xff0c;但是当您开发可重用的框架控件时&#xff0c;开发人员就无法控制使用它们的应用程序的外观和感觉&#xff0c;这甚至更具挑战性。 尽管您可能总是将元素添加到默认的灰色背景之上&#xff0c;但是嵌入控件的开发人…

38.QT-QAxObject快速写入EXCEL示例

参考链接: https://blog.csdn.net/czyt1988/article/details/52121360 http://blog.sina.com.cn/s/blog_a6fb6cc90101gv2p.html 1. QAxObject介绍 在QT中,有个自带的QAxObject类,可以直接操作EXCEL 除此之外,当我们操作某个文件夹下的EXCEL的时候,都会在该文件夹下出现一个隐藏…

EA常见画图(类图、包图、构件图、状态图、顺序图、活动图)

EA常见活动图&#xff0c;状态图画法 类图:111&#xff08;1&#xff09;给关系添加注释&#xff08;2&#xff09;设置关系线样式 包图&#xff1a;&#xff08;1&#xff09;创建包图&#xff08;2&#xff09;在包中添加子包&#xff1a;&#xff08;3&#xff09;在包中添加…

我最喜欢的IntelliJ IDEA功能

我已经是IntelliJ IDEA的长期用户&#xff08;和客户&#xff09;。 我想我是在2005年或2006年&#xff08;版本5.0&#xff09;左右开始使用它的。 那时我是Eclipse用户。 我的一些同事向我推荐了它&#xff0c;起初我没有被说服&#xff0c;但是在尝试之后我印象深刻。 现在…

selenium 常见问题

启动selenium时报错如下异常&#xff1a; selenium.common.exceptions.WebDriverException: Message: geckodriver executable needs to be in PATH. 解决方式&#xff1a;需要下载geckodriver&#xff0c;并放在path的环境变量下&#xff0c;下载地址&#xff1a;https://gith…

通过示例了解挥发

我们已经花了几个月的时间来稳定Plumbr中的锁定检测功能 。 在此期间&#xff0c;我们遇到了许多棘手的并发问题。 许多问题是独特的&#xff0c;但是一种特殊类型的问题一直反复出现。 您可能已经猜到了–滥用volatile关键字。 我们已经发现并解决了许多问题&#xff0c;其中…

HDU 1212 Big Number

题意&#xff1a;给一数字字符串s ( ns.size()<1000 ) 和数字m (<1e5) 求s%m 模拟除法&#xff0c; k初值0&#xff0c;按s[0]...累乘相加&#xff0c;把字符串还原成数字&#xff0c;比m大时-m&#xff0c;继续按位还原到s[n-1] 此时剩下的k再%m即为所求 #include<…

BOM之navigator对象和用户代理检测

前面的话 navigator对象现在已经成为识别客户端浏览器的事实标准&#xff0c;navigator对象是所有支持javascript的浏览器所共有的。本文将详细介绍navigator对象和用户代理检测 属性 与其他BOM对象的情况一样&#xff0c;每个浏览器中的navigator对象也都有一套自己的属性。下…

智能自动PPR更改事件策略

ADF开发人员普遍认为&#xff0c;将迭代器绑定更改事件策略设置为ppr在性能方面不是一件好事&#xff0c;因为此策略会强制框架刷新每个请求上绑定到此迭代器的所有属性绑定。 这不是真的&#xff01; 框架仅刷新在请求期间已更改的属性和依赖于已更改属性的属性。 让我们考虑…

装饰器设计模式的应用

嗨&#xff0c;您好&#xff01; 今天&#xff0c;我将展示装饰设计模式的实际应用。 装饰器设计模式是一种广泛使用的设计模式&#xff0c;同时在运行期间处理图形&#xff0c;树木和动态更改。 如果您正在寻找或尝试进行递归&#xff0c;这也是一个不错的选择。 我喜欢它。…

构造函数 基本使用

相关知识点&#xff1a; 构造函数、原型对象、实例对象 <!DOCTYPE html> <html lang"en"><head><meta charset"UTF-8"><meta name"viewport" content"widthdevice-width, initial-scale1.0"><meta h…

Vista,Windows7中给IIS7添加PHP支持

截止到发文时&#xff08;2009年9月25日&#xff09;&#xff0c;PHP是最新版本为5.3.0&#xff0c;但是5.3.0在IIS中的运行方式是FastCGI&#xff0c;要在Vista的IIS7上实现这一点我始终没弄成。最后我还是用的老方法&#xff0c;ISAPI&#xff0c;选用了一个5.3以前的版本&am…

python画手绘图

第一步&#xff1a;插入代码 #e17.1HandDrawPic.py from PIL import Image import numpy as np vec_el np.pi/2.2 # 光源的俯视角度&#xff0c;弧度值 vec_az np.pi/4. # 光源的方位角度&#xff0c;弧度值 depth 10. # (0-100) im Image.open(C:\\Users\\Thinkpad\\Deskt…

解读阿里巴巴集团的“大中台、小前台”组织战略

解读阿里巴巴集团的“大中台、小前台”组织战略 https://www.iyiou.com/p/92012.html 亿欧导读 ] 阿里的“中台战略” 不是一个简单的组织变革&#xff0c;还有业务变革、机制变革、技术架构变革的一次全面转型。 【编者按】阿里巴巴“大中台小前台”的中台战略的官方提法源自2…

深入理解DOM节点关系

前面的话 DOM可以将任何HTML描绘成一个由多层节点构成的结构。节点分为12种不同类型&#xff0c;每种类型分别表示文档中不同的信息及标记。每个节点都拥有各自的特点、数据和方法&#xff0c;也与其他节点存在某种关系。节点之间的关系构成了层次&#xff0c;而所有页面标记则…

分布式锁(基于redis和zookeeper)详解

分布式锁&#xff08;基于redis和zookeeper&#xff09;详解 https://blog.csdn.net/a15835774652/article/details/81775044 为什么写这篇文章&#xff1f; 目前网上大部分的基于zookeeper&#xff0c;和redis的分布式锁的文章都不够全面。要么就是特意避开集群的情况&#xf…

JavaFX技巧12:在CSS中定义图标

当您是像我这样来自Swing的UI开发人员时&#xff0c;您很有可能仍在代码中直接设置图像/图标。 最可能是这样的&#xff1a; import javafx.scene.control.Label; import javafx.scene.image.ImageView;public class MyLabel extends Label {public MyLabel() {setGraphic(new…

第八次点评

本周心得&#xff1a; 本周没有作业 &#xff0c;批改的上周的作业。需求分析以及团队的明确分工是开发前准备的要素。本次批改主要侧重于需求分析的调研。 博客园地址https://www.cnblogs.com/zhaojh123/ 博客园点评博客&#xff1a; https://www.cnblogs.com/yanqignkui-123/…

JDBC、Tomcat为什么要破坏双亲委派模型?

问题一&#xff1a;双亲委派模型是什么 如果一个类加载器收到了加载某个类的请求&#xff0c;则该类加载器并不会去加载该类&#xff0c;而是把这个请求委派给父类加载器&#xff0c;每一个层次的类加载器都是如此&#xff0c;因此所有的类加载请求最终都会传送到顶端的启动类加…

dpdk之路-环境部署

dpdk实验环境部署 1、实验环境说明 vmware workstatioin 12 centos 7.5.1804 dpdk-stable-18.11.1 2、实验步骤 &#xff08;1&#xff09;虚拟机安装 http://vault.centos.org/7.5.1804/isos/x86_64/从链接下载CentOS-7-x86_64-DVD-1804.iso&#xff0c;安装时需要准备3张虚拟…