nodeJS实现简单网页爬虫功能的实例(分享)

前端之家收集整理的这篇文章主要介绍了nodeJS实现简单网页爬虫功能的实例(分享)前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

本文将使用nodeJS实现一个简单的网页爬虫功能

网页源码

使用http.get()方法获取网页源码,以hao123网站的头条页面为例

http://tuijian.hao123.com/hotrank

获得的结果如下所示:

<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_union_verify" content="d7d644c8a5cb51b46c900d802d906116"> 热点<a href="https://www.jb51.cc/tag/paixingbang/" target="_blank" class="keywords">排行榜</a>-头条新闻-hao123新闻导航_hao123上网导航
<div class="mt20"><div id="tops" class="clearfix" monkey="tops"><div class="top-wrap"><div class="top first-col" monkey="ss"><h2 class="title">实时热点<div class="points"><div class="point-hd clearfix"><span class="point-rank">排名<span class="point-title">关键词<span class="point-index">搜索指数
<div class="point-bd"><div class="point clearfix"><span class="point-rank point-rank-top3">1<span class="point-title"><a href="https://www.baidu.com/s?wd=%E7%BE%8E%E5%9B%BD%E9%80%AE%E6%8D%95%E5%A5%B3%E6%96%AF%E8%AF%BA%E7%99%BB&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" target="_blank" class="point-title-link">美国逮捕女斯诺登<span class="point-state point-state-rise"><span class="point-index">35388<a href="https://www.baidu.com/s?wd=%E7%BE%8E%E5%9B%BD%E9%80%AE%E6%8D%95%E5%A5%B3%E6%96%AF%E8%AF%BA%E7%99%BB&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" target="_blank" class="point-detail">
<div class="point clearfix"><span class="point-rank point-rank-top3">2<span class="point-title"><a href="https://www.baidu.com/s?wd=%E6%88%90%E9%83%BD%E9%9A%90%E7%A7%98%E6%AF%8D%E4%B9%B3%E4%B9%B0%E5%8D%96&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" target="_blank" class="point-title-link">成都隐秘母乳买卖<span class="point-state point-state-fall"><span class="point-index">34497<a href="https://www.baidu.com/s?wd=%E6%88%90%E9%83%BD%E9%9A%90%E7%A7%98%E6%AF%8D%E4%B9%B3%E4%B9%B0%E5%8D%96&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" target="_blank" class="point-detail">
<div class="point clearfix"><span class="point-rank point-rank-top3">3<span class="point-title"><a href="https://www.baidu.com/s?wd=%E6%9B%9D%E5%91%A8%E6%9D%B0%E4%BC%A6%E9%9D%92%E6%B6%A9%E6%97%A7%E7%85%A7&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" target="_blank" class="point-title-link">曝周杰伦青涩旧照<span class="point-state point-state-fall"><span class="point-index">1457<a href="https://www.baidu.com/s?wd=%E6%9B%9D%E5%91%A8%E6%9D%B0%E4%BC%A6%E9%9D%92%E6%B6%A9%E6%97%A7%E7%85%A7&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" target="_blank" class="point-detail">
<div class="point clearfix"><span class="point-rank">4<span class="point-title"><a href="https://www.baidu.com/s?wd=%E8%80%81%E5%A4%B4%E5%85%AC%E4%BA%A4%E5%BC%BA%E5%90%BB%E5%A5%B3%E5%AD%A9&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" target="_blank" class="point-title-link">老头公交强吻女孩<span class="point-state point-state-rise"><span class="point-index">103307<a href="https://www.baidu.com/s?wd=%E8%80%81%E5%A4%B4%E5%85%AC%E4%BA%A4%E5%BC%BA%E5%90%BB%E5%A5%B3%E5%AD%A9&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" target="_blank" class="point-detail">
<div class="point clearfix"><span class="point-rank">5<span class="point-title"><a href="https://www.baidu.com/s?wd=%E7%8E%8B%E4%BC%A0%E5%90%9B%E6%81%8B%E6%83%85%E6%9B%9D%E5%85%89&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" target="_blank" class="point-title-link">王传君恋情曝光<span class="point-state point-state-fall"><span class="point-index">26616<a href="https://www.baidu.com/s?wd=%E7%8E%8B%E4%BC%A0%E5%90%9B%E6%81%8B%E6%83%85%E6%9B%9D%E5%85%89&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" target="_blank" class="point-detail">
<div class="point clearfix"><span class="point-rank">6<span class="point-title"><a href="https://www.baidu.com/s?wd=%E6%9D%AD%E5%B7%9E%E7%8E%B0%E5%A5%87%E8%91%A9%E7%AA%97%E5%8F%A3&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" target="_blank" class="point-title-link">杭州现奇葩窗口<span class="point-state point-state-rise"><span class="point-index">26837<a href="https://www.baidu.com/s?wd=%E6%9D%AD%E5%B7%9E%E7%8E%B0%E5%A5%87%E8%91%A9%E7%AA%97%E5%8F%A3&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" target="_blank" class="point-detail"><div class="point clearfix"><span class="point-rank">7<span class="point-title"><a href="https://www.baidu.com/s?wd=%E5%BF%98%E5%B8%A6%E5%85%A8%E7%8F%AD%E5%87%86%E8%80%83%E8%AF%81&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" target="_blank" class="point-title-link">忘带全班准考证<span class="point-state point-state-fall"><span class="point-index">125127<a href="https://www.baidu.com/s?wd=%E5%BF%98%E5%B8%A6%E5%85%A8%E7%8F%AD%E5%87%86%E8%80%83%E8%AF%81&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" target="_blank" class="point-detail"><div class="point clearfix"><span class="point-rank">8<span class="point-title"><a href="https://www.baidu.com/s?wd=%E6%9C%AA%E6%88%90%E5%B9%B4%E6%8C%81%E6%A2%B0%E6%8B%8D%E7%BD%91%E7%BA%A2&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" target="_blank" class="point-title-link">未成年持械拍网红<span class="point-state point-state-fall"><span class="point-index">1672<a href="https://www.baidu.com/s?wd=%E6%9C%AA%E6%88%90%E5%B9%B4%E6%8C%81%E6%A2%B0%E6%8B%8D%E7%BD%91%E7%BA%A2&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" target="_blank" class="point-detail"><div class="point clearfix"><span class="point-rank">9<span class="point-title"><a href="https://www.baidu.com/s?wd=9%E7%A7%92%E6%8F%8D%E5%84%BF%E5%AD%908%E6%8B%B3&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" target="_blank" class="point-title-link">9秒揍儿子8拳<span class="point-state point-state-rise"><span class="point-index">93193<a href="https://www.baidu.com/s?wd=9%E7%A7%92%E6%8F%8D%E5%84%BF%E5%AD%908%E6%8B%B3&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" target="_blank" class="point-detail"><div class="point clearfix"><span class="point-rank">10<span class="point-title"><a href="https://www.baidu.com/s?wd=%E6%88%B4%E8%80%B3%E6%9C%BA%E7%A9%BF%E8%BD%A8%E9%81%93%E8%A2%AB%E6%92%9E&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" target="_blank" class="point-title-link">戴耳机穿轨道被撞<span class="point-state point-state-rise"><span class="point-index">195745<a href="https://www.baidu.com/s?wd=%E6%88%B4%E8%80%B3%E6%9C%BA%E7%A9%BF%E8%BD%A8%E9%81%93%E8%A2%AB%E6%92%9E&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" target="_blank" class="point-detail"><div class="top-wrap"><div class="top top-blue" monkey="jr"><h2 class="title">今日热点<div class="points"><div class="point-hd clearfix"><span class="point-rank">排名<span class="point-title">关键词<span class="point-index">搜索指数<div class="point-bd"><div class="point clearfix"><span class="point-rank point-rank-top3">1<span class="point-title"><a href="https://www.baidu.com/s?wd=%E5%8C%97%E4%BA%AC%E5%9B%9E%E9%BE%99%E8%A7%82%E5%A4%A7%E7%81%AB&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" target="_blank" class="point-title-link">北京回龙观大火<span class="point-state point-state-rise"><span class="point-index">174225<a href="https://www.baidu.com/s?wd=%E5%8C%97%E4%BA%AC%E5%9B%9E%E9%BE%99%E8%A7%82%E5%A4%A7%E7%81%AB&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" target="_blank" class="point-detail"><div class="point clearfix"><span class="point-rank point-rank-top3">2<span class="point-title"><a href="https://www.baidu.com/s?wd=%E9%80%89%E7%BE%8E%E5%86%A0%E5%86%9B%E8%BD%A6%E7%A5%B8%E8%BA%AB%E4%BA%A1&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" target="_blank" class="point-title-link">选美冠军车祸身亡<span class="point-state point-state-rise"><span class="point-index">172447<a href="https://www.baidu.com/s?wd=%E9%80%89%E7%BE%8E%E5%86%A0%E5%86%9B%E8%BD%A6%E7%A5%B8%E8%BA%AB%E4%BA%A1&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" target="_blank" class="point-detail"><div class="point clearfix"><span class="point-rank point-rank-top3">3<span class="point-title"><a href="https://www.baidu.com/s?wd=2017%E9%AB%98%E8%80%83&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" target="_blank" class="point-title-link">2017高考<span class="point-state point-state-rise"><span class="point-index">136806<a href="https://www.baidu.com/s?wd=2017%E9%AB%98%E8%80%83&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" target="_blank" class="point-detail"><div class="point clearfix"><span class="point-rank">4<span class="point-title"><a href="https://www.baidu.com/s?wd=%E6%88%90%E9%83%BD%E8%80%81%E7%81%AB%E9%94%85%E5%BA%97%E8%A2%AB%E6%9F%A5&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" target="_blank" class="point-title-link">成都老火锅店被查<span class="point-state point-state-rise"><span class="point-index">121729<a href="https://www.baidu.com/s?wd=%E6%88%90%E9%83%BD%E8%80%81%E7%81%AB%E9%94%85%E5%BA%97%E8%A2%AB%E6%9F%A5&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" target="_blank" class="point-detail"><div class="point clearfix"><span class="point-rank">5<span class="point-title"><a href="https://www.baidu.com/s?wd=%E9%99%88%E6%B5%A9%E6%B0%91%E5%A8%87%E5%A6%BB%E7%A7%80%E8%BA%AB%E6%9D%90&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" target="_blank" class="point-title-link">陈浩民娇妻秀身材<span class="point-state point-state-rise"><span class="point-index">115877<a href="https://www.baidu.com/s?wd=%E9%99%88%E6%B5%A9%E6%B0%91%E5%A8%87%E5%A6%BB%E7%A7%80%E8%BA%AB%E6%9D%90&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" target="_blank" class="point-detail"><div class="point clearfix"><span class="point-rank">6<span class="point-title"><a href="https://www.baidu.com/s?wd=%E6%B5%B7%E8%BE%B9%E7%9B%B4%E6%92%AD%E5%8F%91%E7%8E%B0%E6%B5%AE%E5%B0%B8&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" target="_blank" class="point-title-link">海边直播发现浮尸<span class="point-state point-state-fall"><span class="point-index">86157<a href="https://www.baidu.com/s?wd=%E6%B5%B7%E8%BE%B9%E7%9B%B4%E6%92%AD%E5%8F%91%E7%8E%B0%E6%B5%AE%E5%B0%B8&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" target="_blank" class="point-detail"><div class="point clearfix"><span class="point-rank">7<span class="point-title"><a href="https://www.baidu.com/s?wd=%E6%9B%9D%E5%8D%B0%E5%B0%8F%E5%A4%A9%E9%81%AD%E5%A6%BB%E9%AA%97%E5%A9%9A&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" target="_blank" class="point-title-link">曝印小天遭妻骗婚<span class="point-state point-state-fall"><span class="point-index">83749<a href="https://www.baidu.com/s?wd=%E6%9B%9D%E5%8D%B0%E5%B0%8F%E5%A4%A9%E9%81%AD%E5%A6%BB%E9%AA%97%E5%A9%9A&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" target="_blank" class="point-detail"><div class="point clearfix"><span class="point-rank">8<span class="point-title"><a href="https://www.baidu.com/s?wd=%E8%8B%B9%E6%9E%9C%E5%BC%80%E5%8F%91%E8%80%85%E5%A4%A7%E4%BC%9A&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" target="_blank" class="point-title-link">苹果开发者大会<span class="point-state point-state-rise"><span class="point-index">78140<a href="https://www.baidu.com/s?wd=%E8%8B%B9%E6%9E%9C%E5%BC%80%E5%8F%91%E8%80%85%E5%A4%A7%E4%BC%9A&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" target="_blank" class="point-detail"><div class="point clearfix"><span class="point-rank">9<span class="point-title"><a href="https://www.baidu.com/s?wd=6%E4%B8%87%E6%96%A4%E9%B1%BC%E7%BC%BA%E6%B0%A7%E6%AD%BB%E4%BA%A1&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" target="_blank" class="point-title-link">6万斤鱼缺氧死亡<span class="point-state point-state-rise"><span class="point-index">68984<a href="https://www.baidu.com/s?wd=6%E4%B8%87%E6%96%A4%E9%B1%BC%E7%BC%BA%E6%B0%A7%E6%AD%BB%E4%BA%A1&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" target="_blank" class="point-detail"><div class="point clearfix"><span class="point-rank">10<span class="point-title"><a href="https://www.baidu.com/s?wd=%E5%AE%89%E4%BB%A5%E8%BD%A9%E5%A4%8F%E5%A8%81%E5%A4%B7%E5%A4%A7%E5%A9%9A&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" target="_blank" class="point-title-link">安以轩夏威夷大婚<span class="point-state point-state-rise"><span class="point-index">56675<a href="https://www.baidu.com/s?wd=%E5%AE%89%E4%BB%A5%E8%BD%A9%E5%A4%8F%E5%A8%81%E5%A4%B7%E5%A4%A7%E5%A9%9A&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" target="_blank" class="point-detail"><div class="top-wrap"><div class="top top-yellow" monkey="ms"><h2 class="title">民生热点<div class="points"><div class="point-hd clearfix"><span class="point-rank">排名<span class="point-title">关键词<span class="point-index">搜索指数<div class="point-bd"><div class="point clearfix"><span class="point-rank point-rank-top3">1<span class="point-title"><a href="https://www.baidu.com/s?wd=%E5%8C%97%E4%BA%AC%E5%9B%9E%E9%BE%99%E8%A7%82%E5%A4%A7%E7%81%AB&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" target="_blank" class="point-title-link">北京回龙观大火<span class="point-state point-state-rise"><span class="point-index">174225<a href="https://www.baidu.com/s?wd=%E5%8C%97%E4%BA%AC%E5%9B%9E%E9%BE%99%E8%A7%82%E5%A4%A7%E7%81%AB&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" target="_blank" class="point-detail"><div class="point clearfix"><span class="point-rank point-rank-top3">2<span class="point-title"><a href="https://www.baidu.com/s?wd=2017%E9%AB%98%E8%80%83&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" target="_blank" class="point-title-link">2017高考<span class="point-state point-state-rise"><span class="point-index">136806<a href="https://www.baidu.com/s?wd=2017%E9%AB%98%E8%80%83&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" target="_blank" class="point-detail"><div class="point clearfix"><span class="point-rank point-rank-top3">3<span class="point-title"><a href="https://www.baidu.com/s?wd=%E6%88%90%E9%83%BD%E8%80%81%E7%81%AB%E9%94%85%E5%BA%97%E8%A2%AB%E6%9F%A5&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" target="_blank" class="point-title-link">成都老火锅店被查<span class="point-state point-state-rise"><span class="point-index">121729<a href="https://www.baidu.com/s?wd=%E6%88%90%E9%83%BD%E8%80%81%E7%81%AB%E9%94%85%E5%BA%97%E8%A2%AB%E6%9F%A5&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" target="_blank" class="point-detail"><div class="point clearfix"><span class="point-rank">4<span class="point-title"><a href="https://www.baidu.com/s?wd=%E6%B5%B7%E8%BE%B9%E7%9B%B4%E6%92%AD%E5%8F%91%E7%8E%B0%E6%B5%AE%E5%B0%B8&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" target="_blank" class="point-title-link">海边直播发现浮尸<span class="point-state point-state-fall"><span class="point-index">86157<a href="https://www.baidu.com/s?wd=%E6%B5%B7%E8%BE%B9%E7%9B%B4%E6%92%AD%E5%8F%91%E7%8E%B0%E6%B5%AE%E5%B0%B8&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" target="_blank" class="point-detail"><div class="point clearfix"><span class="point-rank">5<span class="point-title"><a href="https://www.baidu.com/s?wd=%E8%8B%B9%E6%9E%9C%E5%BC%80%E5%8F%91%E8%80%85%E5%A4%A7%E4%BC%9A&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" target="_blank" class="point-title-link">苹果开发者大会<span class="point-state point-state-rise"><span class="point-index">78140<a href="https://www.baidu.com/s?wd=%E8%8B%B9%E6%9E%9C%E5%BC%80%E5%8F%91%E8%80%85%E5%A4%A7%E4%BC%9A&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" target="_blank" class="point-detail"><div class="point clearfix"><span class="point-rank">6<span class="point-title"><a href="https://www.baidu.com/s?wd=6%E4%B8%87%E6%96%A4%E9%B1%BC%E7%BC%BA%E6%B0%A7%E6%AD%BB%E4%BA%A1&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" target="_blank" class="point-title-link">6万斤鱼缺氧死亡<span class="point-state point-state-rise"><span class="point-index">68984<a href="https://www.baidu.com/s?wd=6%E4%B8%87%E6%96%A4%E9%B1%BC%E7%BC%BA%E6%B0%A7%E6%AD%BB%E4%BA%A1&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" target="_blank" class="point-detail"><div class="point clearfix"><span class="point-rank">7<span class="point-title"><a href="https://www.baidu.com/s?wd=%E5%8C%97%E6%8E%A7%E5%A4%96%E6%8F%B4%E8%AE%AD%E7%BB%83%E7%8C%9D%E6%AD%BB&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" target="_blank" class="point-title-link">北控外援训练猝死<span class="point-state point-state-rise"><span class="point-index">50687<a href="https://www.baidu.com/s?wd=%E5%8C%97%E6%8E%A7%E5%A4%96%E6%8F%B4%E8%AE%AD%E7%BB%83%E7%8C%9D%E6%AD%BB&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" target="_blank" class="point-detail"><div class="point clearfix"><span class="point-rank">8<span class="point-title"><a href="https://www.baidu.com/s?wd=%E6%AD%A6%E6%B1%89%E7%94%B7%E5%AD%90%E8%A3%B8%E4%BD%93%E6%8D%85%E4%BA%BA&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" target="_blank" class="point-title-link">武汉男子裸体捅人<span class="point-state point-state-fall"><span class="point-index">45810<a href="https://www.baidu.com/s?wd=%E6%AD%A6%E6%B1%89%E7%94%B7%E5%AD%90%E8%A3%B8%E4%BD%93%E6%8D%85%E4%BA%BA&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" target="_blank" class="point-detail"><div class="point clearfix"><span class="point-rank">9<span class="point-title"><a href="https://www.baidu.com/s?wd=%E5%A4%9A%E5%9B%BD%E4%B8%8E%E5%8D%A1%E5%A1%94%E5%B0%94%E6%96%AD%E4%BA%A4&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" target="_blank" class="point-title-link">多国与卡塔尔断交<span class="point-state point-state-fall"><span class="point-index">44475<a href="https://www.baidu.com/s?wd=%E5%A4%9A%E5%9B%BD%E4%B8%8E%E5%8D%A1%E5%A1%94%E5%B0%94%E6%96%AD%E4%BA%A4&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" target="_blank" class="point-detail"><div class="point clearfix"><span class="point-rank">10<span class="point-title"><a href="https://www.baidu.com/s?wd=%E7%BE%8E%E9%A9%BB%E5%8D%8E%E5%A4%96%E4%BA%A4%E5%AE%98%E8%BE%9E%E8%81%8C&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" target="_blank" class="point-title-link">美驻华外交官辞职<span class="point-state point-state-rise"><span class="point-index">44394<a href="https://www.baidu.com/s?wd=%E7%BE%8E%E9%A9%BB%E5%8D%8E%E5%A4%96%E4%BA%A4%E5%AE%98%E8%BE%9E%E8%81%8C&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" target="_blank" class="point-detail"><div class="top-wrap"><div class="top first-col" monkey="dy"><h2 class="title">电影<div class="points"><div class="point-hd clearfix"><span class="point-rank">排名<span class="point-title">关键词<span class="point-index">搜索指数<div class="point-bd"><div class="point clearfix"><span class="point-rank point-rank-top3">1<span class="point-title"><a href="https://www.baidu.com/s?wd=%E7%A5%9E%E5%A5%87%E5%A5%B3%E4%BE%A0&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" target="_blank" class="point-title-link">神奇女侠<span class="point-state point-state-fall"><span class="point-index">40981<a href="https://www.baidu.com/s?wd=%E7%A5%9E%E5%A5%87%E5%A5%B3%E4%BE%A0&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" target="_blank" class="point-detail"><div class="point clearfix"><span class="point-rank point-rank-top3">2<span class="point-title"><a href="https://www.baidu.com/s?wd=%E5%BC%82%E6%98%9F%E8%A7%89%E9%86%92&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" target="_blank" class="point-title-link">异星觉醒<span class="point-state point-state-fall"><span class="point-index">15245<a href="https://www.baidu.com/s?wd=%E5%BC%82%E6%98%9F%E8%A7%89%E9%86%92&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" target="_blank" class="point-detail"><div class="point clearfix"><span class="point-rank point-rank-top3">3<span class="point-title"><a href="https://www.baidu.com/s?wd=%E6%96%B0%E6%9C%A8%E4%B9%83%E4%BC%8A&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" target="_blank" class="point-title-link">新木乃伊<span class="point-state point-state-rise"><span class="point-index">7183<a href="https://www.baidu.com/s?wd=%E6%96%B0%E6%9C%A8%E4%B9%83%E4%BC%8A&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" target="_blank" class="point-detail"><div class="point clearfix"><span class="point-rank">4<span class="point-title"><a href="https://www.baidu.com/s?wd=%E4%B8%AD%E5%9B%BD%E6%8E%A8%E9%94%80%E5%91%98&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" target="_blank" class="point-title-link">中国推销员<span class="point-state point-state-rise"><span class="point-index">5890<a href="https://www.baidu.com/s?wd=%E4%B8%AD%E5%9B%BD%E6%8E%A8%E9%94%80%E5%91%98&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" target="_blank" class="point-detail"><div class="point clearfix"><span class="point-rank">5<span class="point-title"><a href="https://www.baidu.com/s?wd=%E8%8D%A1%E5%AF%87%E9%A3%8E%E4%BA%91&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" target="_blank" class="point-title-link">荡寇风云<span class="point-state point-state-fall"><span class="point-index">3006<a href="https://www.baidu.com/s?wd=%E8%8D%A1%E5%AF%87%E9%A3%8E%E4%BA%91&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" target="_blank" class="point-detail"><div class="point clearfix"><span class="point-rank">6<span class="point-title"><a href="https://www.baidu.com/s?wd=%E5%BC%82%E5%85%BD%E6%9D%A5%E8%A2%AD&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" target="_blank" class="point-title-link">异兽来袭<span class="point-state point-state-fall"><span class="point-index">2566<a href="https://www.baidu.com/s?wd=%E5%BC%82%E5%85%BD%E6%9D%A5%E8%A2%AD&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" target="_blank" class="point-detail"><div class="point clearfix"><span class="point-rank">7<span class="point-title"><a href="https://www.baidu.com/s?wd=%E6%9D%8E%E9%9B%B7%E5%92%8C%E9%9F%A9%E6%A2%85%E6%A2%85&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" target="_blank" class="point-title-link">李雷和韩梅梅<span class="point-state point-state-rise"><span class="point-index">1636<a href="https://www.baidu.com/s?wd=%E6%9D%8E%E9%9B%B7%E5%92%8C%E9%9F%A9%E6%A2%85%E6%A2%85&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" target="_blank" class="point-detail"><div class="point clearfix"><span class="point-rank">8<span class="point-title"><a href="https://www.baidu.com/s?wd=%E5%8C%97%E6%9E%81%E6%98%9F&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" target="_blank" class="point-title-link">北极星<span class="point-state point-state-fall"><span class="point-index">1139<a href="https://www.baidu.com/s?wd=%E5%8C%97%E6%9E%81%E6%98%9F&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" target="_blank" class="point-detail"><div class="point clearfix"><span class="point-rank">9<span class="point-title"><a href="https://www.baidu.com/s?wd=%E7%BE%8E%E5%A5%BD%E7%9A%84%E6%84%8F%E5%A4%96&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" target="_blank" class="point-title-link">美好的意外<span class="point-state point-state-fall"><span class="point-index">971<a href="https://www.baidu.com/s?wd=%E7%BE%8E%E5%A5%BD%E7%9A%84%E6%84%8F%E5%A4%96&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" target="_blank" class="point-detail"><div class="point clearfix"><span class="point-rank">10<span class="point-title"><a href="https://www.baidu.com/s?wd=%E5%A4%8F%E5%A4%A919%E5%B2%81%E7%9A%84%E8%82%96%E5%83%8F&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" target="_blank" class="point-title-link">夏天19岁的肖像<span class="point-state point-state-rise"><span class="point-index">783<a href="https://www.baidu.com/s?wd=%E5%A4%8F%E5%A4%A919%E5%B2%81%E7%9A%84%E8%82%96%E5%83%8F&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" target="_blank" class="point-detail"><div class="top-wrap"><div class="top top-blue" monkey="dsj"><h2 class="title">电视剧<div class="points"><div class="point-hd clearfix"><span class="point-rank">排名<span class="point-title">关键词<span class="point-index">搜索指数<div class="point-bd"><div class="point clearfix"><span class="point-rank point-rank-top3">1<span class="point-title"><a href="https://www.baidu.com/s?wd=%E9%BE%99%E7%8F%A0%E4%BC%A0%E5%A5%87&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" target="_blank" class="point-title-link">龙珠传奇<span class="point-state point-state-fair"><span class="point-index">999788<a href="https://www.baidu.com/s?wd=%E9%BE%99%E7%8F%A0%E4%BC%A0%E5%A5%87&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" target="_blank" class="point-detail"><div class="point clearfix"><span class="point-rank point-rank-top3">2<span class="point-title"><a href="https://www.baidu.com/s?wd=%E6%A5%9A%E4%B9%94%E4%BC%A0&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" target="_blank" class="point-title-link">楚乔传<span class="point-state point-state-rise"><span class="point-index">538848<a href="https://www.baidu.com/s?wd=%E6%A5%9A%E4%B9%94%E4%BC%A0&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" target="_blank" class="point-detail"><div class="point clearfix"><span class="point-rank point-rank-top3">3<span class="point-title"><a href="https://www.baidu.com/s?wd=%E6%AC%A2%E4%B9%90%E9%A2%822&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" target="_blank" class="point-title-link">欢乐颂2<span class="point-state point-state-fall"><span class="point-index">257015<a href="https://www.baidu.com/s?wd=%E6%AC%A2%E4%B9%90%E9%A2%822&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" target="_blank" class="point-detail"><div class="point clearfix"><span class="point-rank">4<span class="point-title"><a href="https://www.baidu.com/s?wd=%E6%AC%A2%E4%B9%90%E9%A2%82&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" target="_blank" class="point-title-link">欢乐颂<span class="point-state point-state-fall"><span class="point-index">176799<a href="https://www.baidu.com/s?wd=%E6%AC%A2%E4%B9%90%E9%A2%82&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" target="_blank" class="point-detail"><div class="point clearfix"><span class="point-rank">5<span class="point-title"><a href="https://www.baidu.com/s?wd=%E8%81%8C%E5%9C%BA%E6%98%AF%E4%B8%AA%E6%8A%80%E6%9C%AF%E6%B4%BB&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" target="_blank" class="point-title-link">职场是个技术活<span class="point-state point-state-rise"><span class="point-index">73102<a href="https://www.baidu.com/s?wd=%E8%81%8C%E5%9C%BA%E6%98%AF%E4%B8%AA%E6%8A%80%E6%9C%AF%E6%B4%BB&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" target="_blank" class="point-detail"><div class="point clearfix"><span class="point-rank">6<span class="point-title"><a href="https://www.baidu.com/s?wd=%E6%8B%A9%E5%A4%A9%E8%AE%B0&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" target="_blank" class="point-title-link">择天记<span class="point-state point-state-fall"><span class="point-index">67290<a href="https://www.baidu.com/s?wd=%E6%8B%A9%E5%A4%A9%E8%AE%B0&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" target="_blank" class="point-detail"><div class="point clearfix"><span class="point-rank">7<span class="point-title"><a href="https://www.baidu.com/s?wd=%E7%BE%8E%E9%A3%9F%E5%A4%A7%E5%86%92%E9%99%A9&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" target="_blank" class="point-title-link">美食大冒险<span class="point-state point-state-rise"><span class="point-index">61792<a href="https://www.baidu.com/s?wd=%E7%BE%8E%E9%A3%9F%E5%A4%A7%E5%86%92%E9%99%A9&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" target="_blank" class="point-detail"><div class="point clearfix"><span class="point-rank">8<span class="point-title"><a href="https://www.baidu.com/s?wd=%E5%BA%9F%E6%9F%B4%E5%85%84%E5%BC%9F&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" target="_blank" class="point-title-link">废柴兄弟<span class="point-state point-state-rise"><span class="point-index">50419<a href="https://www.baidu.com/s?wd=%E5%BA%9F%E6%9F%B4%E5%85%84%E5%BC%9F&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" target="_blank" class="point-detail"><div class="point clearfix"><span class="point-rank">9<span class="point-title"><a href="https://www.baidu.com/s?wd=%E4%BA%BA%E6%B0%91%E7%9A%84%E5%90%8D%E4%B9%89&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" target="_blank" class="point-title-link">人民的名义<span class="point-state point-state-fall"><span class="point-index">46353<a href="https://www.baidu.com/s?wd=%E4%BA%BA%E6%B0%91%E7%9A%84%E5%90%8D%E4%B9%89&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" target="_blank" class="point-detail"><div class="point clearfix"><span class="point-rank">10<span class="point-title"><a href="https://www.baidu.com/s?wd=%E4%B8%89%E7%94%9F%E4%B8%89%E4%B8%96%E5%8D%81%E9%87%8C%E6%A1%83%E8%8A%B1&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" target="_blank" class="point-title-link">三生三世十里桃花<span class="point-state point-state-rise"><span class="point-index">24386<a href="https://www.baidu.com/s?wd=%E4%B8%89%E7%94%9F%E4%B8%89%E4%B8%96%E5%8D%81%E9%87%8C%E6%A1%83%E8%8A%B1&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" target="_blank" class="point-detail"><div class="top-wrap"><div class="top top-yellow" monkey="zy"><h2 class="title">综艺<div class="points"><div class="point-hd clearfix"><span class="point-rank">排名<span class="point-title">关键词<span class="point-index">搜索指数<div class="point-bd"><div class="point clearfix"><span class="point-rank point-rank-top3">1<span class="point-title"><a href="https://www.baidu.com/s?wd=%E5%8F%98%E5%BD%A2%E8%AE%A1&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" target="_blank" class="point-title-link">变形计<span class="point-state point-state-fall"><span class="point-index">223319<a href="https://www.baidu.com/s?wd=%E5%8F%98%E5%BD%A2%E8%AE%A1&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" target="_blank" class="point-detail"><div class="point clearfix"><span class="point-rank point-rank-top3">2<span class="point-title"><a href="https://www.baidu.com/s?wd=%E6%9D%A5%E5%90%A7%E5%86%A0%E5%86%9B&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" target="_blank" class="point-title-link">来吧冠军<span class="point-state point-state-fall"><span class="point-index">151641<a href="https://www.baidu.com/s?wd=%E6%9D%A5%E5%90%A7%E5%86%A0%E5%86%9B&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" target="_blank" class="point-detail"><div class="point clearfix"><span class="point-rank point-rank-top3">3<span class="point-title"><a href="https://www.baidu.com/s?wd=%E6%8B%9C%E6%89%98%E4%BA%86%E5%86%B0%E7%AE%B1&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" target="_blank" class="point-title-link">拜托了冰箱<span class="point-state point-state-rise"><span class="point-index">149596<a href="https://www.baidu.com/s?wd=%E6%8B%9C%E6%89%98%E4%BA%86%E5%86%B0%E7%AE%B1&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" target="_blank" class="point-detail"><div class="point clearfix"><span class="point-rank">4<span class="point-title"><a href="https://www.baidu.com/s?wd=%E6%98%86%E4%BB%91%E5%86%B3&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" target="_blank" class="point-title-link">昆仑决<span class="point-state point-state-fall"><span class="point-index">139633<a href="https://www.baidu.com/s?wd=%E6%98%86%E4%BB%91%E5%86%B3&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" target="_blank" class="point-detail"><div class="point clearfix"><span class="point-rank">5<span class="point-title"><a href="https://www.baidu.com/s?wd=%E5%A4%A9%E7%94%9F%E6%98%AF%E4%BC%98%E6%88%91&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" target="_blank" class="point-title-link">天生是优我<span class="point-state point-state-fall"><span class="point-index">124472<a href="https://www.baidu.com/s?wd=%E5%A4%A9%E7%94%9F%E6%98%AF%E4%BC%98%E6%88%91&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" target="_blank" class="point-detail"><div class="point clearfix"><span class="point-rank">6<span class="point-title"><a href="https://www.baidu.com/s?wd=%E5%A7%90%E5%A7%90%E5%A5%BD%E9%A5%BF&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" target="_blank" class="point-title-link">姐姐好饿<span class="point-state point-state-rise"><span class="point-index">99619<a href="https://www.baidu.com/s?wd=%E5%A7%90%E5%A7%90%E5%A5%BD%E9%A5%BF&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" target="_blank" class="point-detail"><div class="point clearfix"><span class="point-rank">7<span class="point-title"><a href="https://www.baidu.com/s?wd=%E8%84%91%E5%8A%9B%E7%94%B7%E4%BA%BA%E6%97%B6%E4%BB%A3&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" target="_blank" class="point-title-link">脑力男人时代<span class="point-state point-state-fall"><span class="point-index">68735<a href="https://www.baidu.com/s?wd=%E8%84%91%E5%8A%9B%E7%94%B7%E4%BA%BA%E6%97%B6%E4%BB%A3&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" target="_blank" class="point-detail"><div class="point clearfix"><span class="point-rank">8<span class="point-title"><a href="https://www.baidu.com/s?wd=%E5%A5%94%E8%B7%91%E5%90%A7%E5%85%84%E5%BC%9F&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" target="_blank" class="point-title-link">奔跑吧兄弟<span class="point-state point-state-fall"><span class="point-index">61903<a href="https://www.baidu.com/s?wd=%E5%A5%94%E8%B7%91%E5%90%A7%E5%85%84%E5%BC%9F&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" target="_blank" class="point-detail"><div class="point clearfix"><span class="point-rank">9<span class="point-title"><a href="https://www.baidu.com/s?wd=%E6%88%91%E6%83%B3%E5%92%8C%E4%BD%A0%E5%94%B1&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" target="_blank" class="point-title-link">我想和你唱<span class="point-state point-state-rise"><span class="point-index">59249<a href="https://www.baidu.com/s?wd=%E6%88%91%E6%83%B3%E5%92%8C%E4%BD%A0%E5%94%B1&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" target="_blank" class="point-detail"><div class="point clearfix"><span class="point-rank">10<span class="point-title"><a href="https://www.baidu.com/s?wd=%E7%8E%AB%E7%91%B0%E4%B9%8B%E6%97%85&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" target="_blank" class="point-title-link">玫瑰之旅<span class="point-state point-state-rise"><span class="point-index">50425<a href="https://www.baidu.com/s?wd=%E7%8E%AB%E7%91%B0%E4%B9%8B%E6%97%85&amp;ie=utf-8&amp;tn=sitehao123_03" rel="external nofollow" rel="external nofollow" target="_blank" class="point-detail">

Feedback">
Feedbackbg">

<div class="c-footer w1190 " monkey="erji-footer"><div class="container"><div class="left-wrap clearfix"><a href="https://www.hao123.com" rel="external nofollow" rel="external nofollow" class="logo" target="_blank" monkey="logo">hao123 上网导航第一品牌<div class="bottom-nav" monkey="nav"><a href="http://www.hao123.com/abouthao123.htm" rel="external nofollow" class="item" target="_target">关于我们<a href="http://www.hao123.com/redian/problem.htm" rel="external nofollow" class="item" target="_taregt">常见问题<a href="http://www.hao123.com/feedback" rel="external nofollow" rel="external nofollow" class="item" target="_blank">反馈意见<a href="http://www.hao123.com/sitemap" rel="external nofollow" class="item" target="_blank">全站地图<span class="item">京ICP证030173号<div class="right-wrap"><div class="extend-nav clearfix" monkey="tools"><a href="http://www.hao123.com/shouji" rel="external nofollow" class="item" target="_blank"><i class="icon-phone">下载
手机端
<a href="javascript:;" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" class="item" target="_black" data-hook="addBookmark"><i class="icon-collect">收藏
本站

<script type="text/javascript" src="http://s0.hao123img.com/res/js/common/as.min.js?_=2434"&gt;

<script src="http://s2.hao123img.com/resource/fe/js/lib/main.5a7c104a8.js"&gt;

筛选数据

以网页中的综艺热点部分

相关源代码如下

  通过分析可知,‘综艺'模块与其他模块都位于

名称位于

cheerio

我们怎么从源代码获取到有用的数据呢?首先,nodeJS不支持document对象。如果要使用笨办法,只能使用正则表达式来处理

cheerio 是nodejs特别为服务端定制的,能够快速灵活的对JQuery核心进行实现。它工作于DOM模型上,且解析、操作、呈送都很高效

【安装】

@H_886_403@

【使用】

它的使用方法和jQuery相当类似,上手非常容易。以获取综艺热度前10名的节目名称为例

搜索量前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'

代码如下】

搜索量前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);
}

【结果如下】

以上这篇nodeJS实现简单网页爬虫功能的实例(分享)就是小编分享给大家的全部内容了,希望能给大家一个参考,也希望大家多多支持编程之家。

原文链接:https://www.f2er.com/nodejs/38785.html
nodeJS实现网页爬虫

猜你在找的Node.js相关文章