爬虫概念与编程学习之如何爬取视频网站页面(三)

简介:

 

 

 

 

编写代码

 

 

 

 

 

 

 

 

运行

<!DOCTYPE html><html><head><meta http-equiv="X-UA-Compatible" content="IE=Edge" /><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><meta name="keywords" content="微微一笑很倾城 - 高清全集在线观看" /><meta name="description" content="微微一笑很倾城,微微一笑很倾城在线观看,微微一笑很倾城全集,电视剧微微一笑很倾城"/><meta name="data-spm" content="a2h1n" /><title>《微微一笑很倾城》30集全—大陆—电视剧—优酷网,视频高清在线观看—又名:《A Smile Is Beautiful》《微微一笑很倾城电视剧版》</title><link rel="stylesheet" href="//css.ykimg.com/youku/dist/css/find/g_73.css" /><link rel="stylesheet" href="//css.ykimg.com/youku/dist/css/find/program/program_10.css" /></head><body data-spm="8261147"><script>
with(document)with(body)with(insertBefore(createElement("script"),firstChild))setAttribute("exparams","userid=&aplus&sidx=dAEDx4yXeFgAAAAAKEdPU0+W0f5pv8tM&ckx=listyoukucomshowidz9cd2277647d311e5b692html|",id="beacon-aplus",src="//g.alicdn.com/alilog/mlog/aplus_o.js")
</script><script type="text/javascript"> (function(d) { var b = d.body;var c = b.className || '';var w = (d.documentElement || b).clientWidth;if( w <= 1330 && w > 1160 ){c += ' w1080 ';}else if (w <= 1160){ c += ' w860 ';}b.className = c;})(document);</script><script type="text/javascript">
// 去掉860的栅格 ipad
(function(d) { 
var isMobile = !!((navigator.userAgent.toLowerCase().match(/android/i) || [''])[0]);
/*检查移动设备是否为移动设备*/
if (navigator.userAgent.indexOf('iPad') > -1 || isMobile) {
var m = d.createElement('meta');
m.setAttribute('name', 'viewport');
m.setAttribute('content', 'width=1210px');
d.head.appendChild(m);
d.body.className += ' w1080';
}else{
var b = d.body;
var c = b.className || '';
var w = (d.documentElement || b).clientWidth;
if( w <= 1330 ){
c += ' w1080 ';
}else {
c += ' w1300 ';
}
b.className = c;
}
})(document);
var ykQHeader = {
ltrim:function(s){ return s.replace( /^(\s*| *)/, "") },
rtrim:function(s){ return s.replace( /(\s*| *)$/, "") },
trim:function(s){ return this.ltrim(this.rtrim(s));},
doSearch: function () {
this.form = document.getElementById('qheader_search');
if(!this.form){ return; }
this.input = this.form.getElementsByTagName('input')[0];
var q = this.trim(this.input.value), url = '',
stat = 'spm=a2hww.20023042.#qheader_search~10';
if (window.logPvid) {
stat += '&_rp=' + window.logPvid;
}

if (q == '') {
url = 'http://www.soku.com?inner' + ('&' + stat);
} else {
if (this.form.action.indexOf('/q_') === -1) {
q = encodeURIComponent(q);
url = this.form.action + '/q_' + q + ('?' + stat);
} else {
url = this.form.action + ('&' + stat);
}
}
window.open(url);
this.form.action = 'http://www.soku.com/search_video';
return false;
}
}
</script>

<div class="g-header g-header-fixed " id="qheader">
<div class="g-header-container">
<div class="g-box">
<div class="yk-logo">
<a href="http://www.youku.com/" title="Youku 优酷" attr="idx0"><img src="//static.youku.com/youku/dist/img/find/yk-logo-1220.png" width="140" height="50" alt="Youku 优酷" from="index"></a>
</div>
<div class="g-view">
<a href="javascript:void(0)"><i class="ico-list"></i>导视</a>
<div class="panel">
<i class="arrow"></i>
<div class="content">

<dl>
<dt>频道精选</dt>
<dd>

<a href="//tv.youku.com/" >剧集</a>

<a href="//movie.youku.com/" >电影</a>

<a href="//zy.youku.com/" >综艺</a>

<a href="//music.youku.com/" >音乐</a>

<a href="//child.youku.com/" >少儿</a>

<a href="//comic.youku.com/" >动漫</a>

<a href="//live.youku.com/" >直播</a>

<a href="http://list.youku.com/category/video/" >片库</a>
</dd>
</dl>

<dl>
<dt>全网独播</dt>
<dd>

<a href="http://list.youku.com/show/id_zd432f9ec588711e6b9bb.html" target="_blank">拜拜啦肉肉</a>

<a href="http://list.youku.com/show/id_ze4d19b7a424f11e6b32f.html" target="_blank">飞刀又见飞刀</a>

<a href="http://list.youku.com/show/id_zc275562c474811e6a080.html" target="_blank">火星情报局2</a>

<a href="http://list.youku.com/show/id_z6a4d7c5aab1d11e6b9bb.html" target="_blank">极品家丁 </a>
</dd>
</dl>

<dl>
<dt>产品大全</dt>
<dd>

<a href="http://www.youku.com/u/channelRank" target="_blank">自频道</a>

<a href="//gh.youku.com/topic_page/topic_list" target="_blank">话题</a>

<a href="//z.youku.com/?from=ykzz" target="_blank">众筹</a>

<a href="http://wan.youku.com/" target="_blank">玩游戏</a>

<a href="http://www.laifeng.com/" target="_blank">来疯直播</a>

<a href="//faxian.youku.com/products/" target="_blank">更多>></a>
</dd>
</dl>

<dl>
<dt>客户端</dt>
<dd>

<a href="//mobile.youku.com/index/wireless" target="_blank">移动APP</a>

<a href="//pd.youku.com/pc" target="_blank">PC客户端</a>

<a href="//pd.youku.com/xxyk/index" target="_blank">小小优酷</a>

<a href="http://shamigui.youku.com/" target="_blank">啥米鬼</a>

<a href="http://www.laifeng.com/app/download" target="_blank">来疯App</a>
</dd>
</dl>
</div>
</div>
</div>
<div class="g-head-center">
<ul class="g-head-nav">
<li>
<a href="http://www.youku.com/">首页</a>
</li>
<li>
<a href="//faxian.youku.com/">发现</a>
</li>
<li>
<a id="navSub" href="http://ding.youku.com/u/subscribeUpdate">订阅<span class="icon-warn" id="qheader_sub_num" style="display:none;"></span></a>
</li>
<li>
<a href="http://cps.youku.com/redirect.html?id=00014c9c">会员</a>
</li>
<li>
<a href="http://user.youku.com">我的</a>
</li>
</ul>
<div class="yk-ucenter"></div>
</div>
<div class="g-ucenter" id="uerCenter">
<div class="u-login">
<div class="login-before handle">
<a id="qheader_login" href="http://www.youku.com/user_login/"><i class="ico-user-l2"></i>登录</a>
</div>
<div class="login-after dropdown unload handle">
<a href="http://user.youku.com/page/usc/index" target="_blank">
<img class="avatar" src="//static.youku.com/v1.0.1098/index/img/sprite.gif">
<b class="caret"></b>
<span></span>
</a>
<div class="panel u-panel"><i class="arrow"></i>
<div class="content">

</div>
<div class="u-bottom">
<a href="#" class="singout">退出登录</a>
<a href="http://i.youku.com/u/setting/base_profile.html" target="_blank">账户设置</a>
</div>
</div>
</div>
</div>
<div class="u-record">
<div class="dropdown">
<div class="handle">
<a href="//faxian.youku.com/watch_record">
<i class="ico-urecord"></i>
<b class="caret"></b>
</a>
</div>
<div class="panel">
<i class="arrow"></i>
<div class="content"></div>
</div>
</div>
</div>
<div class="u-notice unload">
<div class="dropdown">
<div class="handle">
<a href="//msg.youku.com/page/msg/index?retry=1" target="_blank">
<i class="ico-notifications-l2"></i>
<b class="caret"></b>
<span class="icon-warn" id="qheader_notice_num" style="display:none;"></span>
</a>
</div>
<div class="panel">
<i class="arrow"></i>
<div class="content">
</div>
<div class="u-bottom">
<a href="//msg.youku.com/page/msg/index?retry=1" target="_blank" class="fr">查看所有消息</a>
</div>
</div>
</div>
</div>
<div class="u-upload">
<div class="dropdown ">
<div class="handle">
<a href="http://www.youku.com/v/upload" target="_blank"><i class="ico-upload-l2"></i><b class="caret"></b></a>
</div>
<div class="panel">
<i class="arrow"></i>
<div class="content">
<ul class="u-list">
<li>
<a href="http://www.youku.com/v/upload" target="_blank" class="upload-video">
<em></em> 上传视频
</a>
</li>
<li>
<a href="http://i.youku.com/u/videos" target="_blank" class="u-creat">
<em></em> 视频管理
</a>
</li>

<li>
<a href="http://i.youku.com/u/profile/" target="_blank" class="u-zpd">
<em></em> 我的自频道
</a>
</li>
<li>
<a href="http://bigvoyage.youku.com/bigvoyage/overview/index" target="_blank" class="data-analysis">
<em></em> 数据分析
</a>
</li>
</ul>
<div class="up-cnt-2">
<i> </i>
<a href="//zipindao.youku.com/zpd" target="_blank" class="mr10">自频道加油站</a>
<a href="//hz.youku.com/red/click.php?tp=1&cp=4011030&cpp=1001005&url=http://rz.youku.com/yc" target="_blank" >自频道认证</a>
</div>
</div>
<div class="u-bottom">
<a href="#" data-url="http://iku.youku.com/channelinstall/ywebuploadFloat" class="ikuDownload" target="_self"><i></i>立即下载</a>
下载PC客户端,上传视频更轻松!
</div>
</div>
</div>
</div>
</div>
<div class="g-so" data-spm="search">
<div class="g-so-box">
<form id="qheader_search" action="http://www.soku.com/search_video" method="get" target="_blank" onsubmit="
if(typeof(XBox) == 'object'){
return false;
}
else if(typeof(ykQHeader) == 'object'){
return ykQHeader.doSearch();
}
">
<i class="icon-search"></i>
<input name="q" id="headq" type="text" autocomplete="off">
<a href="http://top.youku.com/rank/" target="_blank" class="rankq" title="优酷指数排行榜"></a>
<button type="submit" data-spm="dbutton">搜库</button>
<div id="qheader_keywords" style="display:none;">
<a target="_blank" href="http://www.soku.com/search_video/q_" class=""></a>
</div>
<input type="text" style="display:none;">
</form>
</div>
</div>
</div>
</div>
</div>
<!--sub nav-->
<!--sub nav end-->
<div class="s-body"><div class="yk-content"><div class="mod mod-new"><div id="ab_101486" data-adid="101486" class="ad-flag-wrap"></div><div class="mod fix"><div class="p-post"><div class="yk-pack p-list"><div class="p-thumb"><a title="微微一笑很倾城" href="//v.youku.com/v_show/id_XMTY5NDg2MzY5Ng==.html" target="_blank" ></a><i class="bg"></i><img src="http://r4.ykimg.com/051600005768E31767BC3C120C01224D" alt="微微一笑很倾城" /><div class="p-thumb-taglt"><span class="ico-lt">独播</span></div><div class="p-thumb-tagrt"><span class="ico-SD">超清</span></div></div></div></div><div class="p-base"><ul><li class="p-row p-title"><a href="//list.youku.com/category/show/c_97.html" target="_blank">剧集</a>:微微一笑很倾城<span class="sub-title">2016</span><a class="p-sub-btn p-sub-action" style="display: none;" href="javascript:void(0)">订阅</a></li><li class="p-row p-renew">30集全 </li><li class="p-alias" title="微微一笑很倾城电视剧版/A Smile Is Beautiful">别名:微微一笑很倾城电视剧版<i class="p-s">/</i>A Smile Is Beautiful</li><li ><span class="pub"><label>上映:</label>2015-12-21</span></li><li><span class="pub"><label>优酷开播:</label>2016-08-22</span></li><li class="p-score">评分: <span class="p-star p-star-50"></span><span class="star-num">9.9</span></li><li class="p-performer" title="杨洋/郑爽/毛晓彤">主演:<a href="//list.youku.com/star/show/uid_UOTM2MjA=.html" target="_blank">杨洋</a><i class="p-s">/</i><a href="//list.youku.com/star/show/uid_UNjkwODA=.html" target="_blank">郑爽</a><i class="p-s">/</i><a href="//list.youku.com/star/show/uid_UMTU1NzAzNg==.html" target="_blank">毛晓彤</a></li><li >导演:<a href="//list.youku.com/star/show/uid_UOTAxMDQ0.html" title="林玉芬" target="_blank">林玉芬</a></li><li>地区:<a href="//list.youku.com/category/show/c_97_a_大陆.html" target="_blank">大陆</a></li><li>类型:<a target="_blank" href="//list.youku.com/category/show/c_97_g_剧情.html">剧情</a><i class="p-s">/</i><a target="_blank" href="//list.youku.com/category/show/c_97_g_都市.html">都市</a><i class="p-s">/</i><a target="_blank" href="//list.youku.com/category/show/c_97_g_言情.html">言情</a></li><li>总播放数:17,007,967,162</li><li>评论:1,256,002</li><li>顶:13,827,796</li><li>指数:<a class="p-icon p-icon-vr" title="指数" href="//hz.youku.com/red/click.php?tp=1&cp=4005347&cpp=1000536&url=http://index.youku.com/vr_show/showid_z9cd2277647d311e5b692.html" target="_blank" id="vr_id"></a></li><li class="p-row p-intro"><span class="text">简介:美女学霸贝微微,立志成为游戏工程师,化名“芦苇微微”跻身网游高手,因拒绝上传真实照片而惨遭侠侣“真水无香”无情抛弃,却意外得到江湖第一高手“一笑奈何”的垂青。为了赢得“侠侣挑战赛”,贝微微欣然答应与“一笑奈何”结盟并组队参赛。两人一路闯荡江湖早已心灵相通,可贝微微做梦也没想到,一路出生入死的伙伴竟然就是同校风云人物——师兄...</span><span class="intro-more hide">简介:美女学霸贝微微,立志成为游戏工程师,化名“芦苇微微”跻身网游高手,因拒绝上传真实照片而惨遭侠侣“真水无香”无情抛弃,却意外得到江湖第一高手“一笑奈何”的垂青。为了赢得“侠侣挑战赛”,贝微微欣然答应与“一笑奈何”结盟并组队参赛。两人一路闯荡江湖早已心灵相通,可贝微微做梦也没想到,一路出生入死的伙伴竟然就是同校风云人物——师兄肖奈。无论线上还是线下,肖奈都是能力出众的“大神”,更巧的是,他竟然就是游戏开发测试的负责人。线上是侠侣队友,线下是工作伙伴,缘分就是这么妙不可言。当贝微微发现这一真相的时候,两人就自然而然地在一起了。 </span><span class="more-default" id="pIntroMore" style="display: inline;">查看详情</span></li></ul><div class="p-interact" id="pInteract"><ul><li class="p-share"><dl><dt><span class="share-title">分享给朋友:</span></dt><dd><a href="//v.youku.com/wechatShare/?url=http://v.youku.com/v_show/id_XMTY5NDg2MzY5Ng==.html&amp;content=%E7%BB%99%E5%A4%A7%E5%AE%B6%E5%88%86%E4%BA%AB%E3%80%8A%E5%BE%AE%E5%BE%AE%E4%B8%80%E7%AC%91%E5%BE%88%E5%80%BE%E5%9F%8E%E3%80%8B%2C%E8%AF%A6%E7%BB%86%E8%B5%84%E6%96%99%E5%9C%A8%E8%BF%99%E9%87%8C" target="_blank" title="分享到微信"><i class="p-icon p-icon-weixin"></i></a></dd><dd><a href="http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=//list.youku.com/show/id_9cd2277647d311e5b692&amp;pics=&amp;title=%E7%BB%99%E5%A4%A7%E5%AE%B6%E5%88%86%E4%BA%AB%E3%80%8A%E5%BE%AE%E5%BE%AE%E4%B8%80%E7%AC%91%E5%BE%88%E5%80%BE%E5%9F%8E%E3%80%8B%2C%E8%AF%A6%E7%BB%86%E8%B5%84%E6%96%99%E5%9C%A8%E8%BF%99%E9%87%8C" target="_blank" title="分享到Qzone"><i class="p-icon p-icon-qzone"></i></a></dd><dd><a href="http://v.t.sina.com.cn/share/share.php?url=//list.youku.com/show/id_9cd2277647d311e5b692&amp;sourceUrl=//list.youku.com/show/id_9cd2277647d311e5b692&amp;pic=&amp;title=%E7%BB%99%E5%A4%A7%E5%AE%B6%E5%88%86%E4%BA%AB%E3%80%8A%E5%BE%AE%E5%BE%AE%E4%B8%80%E7%AC%91%E5%BE%88%E5%80%BE%E5%9F%8E%E3%80%8B%2C%E8%AF%A6%E7%BB%86%E8%B5%84%E6%96%99%E5%9C%A8%E8%BF%99%E9%87%8C&amp;appkey=2684493555&amp;content=utf8" target="_blank" title="分享到新浪微博"><i class="p-icon p-icon-weibo"></i></a></dd><dd><a href="http://connect.qq.com/widget/shareqq/index.html?title=%E7%BB%99%E5%A4%A7%E5%AE%B6%E5%88%86%E4%BA%AB%E3%80%8A%E5%BE%AE%E5%BE%AE%E4%B8%80%E7%AC%91%E5%BE%88%E5%80%BE%E5%9F%8E%E3%80%8B%2C%E8%AF%A6%E7%BB%86%E8%B5%84%E6%96%99%E5%9C%A8%E8%BF%99%E9%87%8C&amp;url=//list.youku.com/show/id_9cd2277647d311e5b692&amp;desc=在优酷上看见这条视频还不错哦:%E7%BB%99%E5%A4%A7%E5%AE%B6%E5%88%86%E4%BA%AB%E3%80%8A%E5%BE%AE%E5%BE%AE%E4%B8%80%E7%AC%91%E5%BE%88%E5%80%BE%E5%9F%8E%E3%80%8B%2C%E8%AF%A6%E7%BB%86%E8%B5%84%E6%96%99%E5%9C%A8%E8%BF%99%E9%87%8C&amp;pics=&amp;site=优酷" target="_blank" title="分享到QQ好友"><i class="p-icon p-icon-qq"></i></a></dd><dd id="pShareHandle"><a href="javascript:void(0)" data-panel="fn-panel-share"><i class="fn-icon fn-icon-handle"></i></a></dd></dl></li><li class="p-divide"></li><li class="p-collect " style="display: none;" ><a href="javascript:void(0)"><i class="p-icon p-icon-collect p-icon-w15"></i><span class="c999">收藏</span></a></li><li class="p-download"><a href="javascript:void(0)" data-panel="fn-panel-download"><i class="p-icon p-icon-download p-icon-w15"></i><span class="c999">下载</span></a></li><li class="p-phone-see "><a href="javascript:void(0)" data-panel="fn-panel-phone-see"><i class="p-icon p-icon-phone-see p-icon-w15"></i><span class="c999">手机看</span></a></li></ul><div class="fn-panels" id="fnPanels"><div class="fn-panel fn-panel-share" data-ref="fn-panel-share" style="display: none"><span class="pointer"><i class="fn-icon fn-icon-pointer"></i></span><div class="fn-panel-close" title="关闭"><i class="fn-icon fn-icon-close"></i></div><div class="p0"><ul><li><a href="//v.youku.com/wechatShare/?url=http://v.youku.com/v_show/id_XMTY5NDg2MzY5Ng==.html&amp;content=%E7%BB%99%E5%A4%A7%E5%AE%B6%E5%88%86%E4%BA%AB%E3%80%8A%E5%BE%AE%E5%BE%AE%E4%B8%80%E7%AC%91%E5%BE%88%E5%80%BE%E5%9F%8E%E3%80%8B%2C%E8%AF%A6%E7%BB%86%E8%B5%84%E6%96%99%E5%9C%A8%E8%BF%99%E9%87%8C" target="_blank" title="分享到微信"><i class="fn-icon fn-icon-weixin"></i></a></li><li><a href="http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=//list.youku.com/show/id_9cd2277647d311e5b692&amp;pics=&amp;title=%E7%BB%99%E5%A4%A7%E5%AE%B6%E5%88%86%E4%BA%AB%E3%80%8A%E5%BE%AE%E5%BE%AE%E4%B8%80%E7%AC%91%E5%BE%88%E5%80%BE%E5%9F%8E%E3%80%8B%2C%E8%AF%A6%E7%BB%86%E8%B5%84%E6%96%99%E5%9C%A8%E8%BF%99%E9%87%8C" target="_blank" title="分享到QQ空间"><i class="fn-icon fn-icon-qzone"></i></a></li><li><a href="http://v.t.sina.com.cn/share/share.php?url=//list.youku.com/show/id_9cd2277647d311e5b692&amp;sourceUrl=//list.youku.com/show/id_9cd2277647d311e5b692&amp;pic=&amp;title=%E7%BB%99%E5%A4%A7%E5%AE%B6%E5%88%86%E4%BA%AB%E3%80%8A%E5%BE%AE%E5%BE%AE%E4%B8%80%E7%AC%91%E5%BE%88%E5%80%BE%E5%9F%8E%E3%80%8B%2C%E8%AF%A6%E7%BB%86%E8%B5%84%E6%96%99%E5%9C%A8%E8%BF%99%E9%87%8C&amp;appkey=2684493555&amp;content=utf8" target="_blank" title="分享到微博"><i class="fn-icon fn-icon-weibo"></i></a></li><li><a href="http://connect.qq.com/widget/shareqq/index.html?title=%E7%BB%99%E5%A4%A7%E5%AE%B6%E5%88%86%E4%BA%AB%E3%80%8A%E5%BE%AE%E5%BE%AE%E4%B8%80%E7%AC%91%E5%BE%88%E5%80%BE%E5%9F%8E%E3%80%8B%2C%E8%AF%A6%E7%BB%86%E8%B5%84%E6%96%99%E5%9C%A8%E8%BF%99%E9%87%8C&amp;url=//list.youku.com/show/id_9cd2277647d311e5b692&amp;desc=在优酷上看见这条视频还不错哦:%E7%BB%99%E5%A4%A7%E5%AE%B6%E5%88%86%E4%BA%AB%E3%80%8A%E5%BE%AE%E5%BE%AE%E4%B8%80%E7%AC%91%E5%BE%88%E5%80%BE%E5%9F%8E%E3%80%8B%2C%E8%AF%A6%E7%BB%86%E8%B5%84%E6%96%99%E5%9C%A8%E8%BF%99%E9%87%8C&amp;pics=&amp;site=优酷" target="_blank" title="分享给QQ好友"><i class="fn-icon fn-icon-qq"></i></a></li><li><a href="http://tieba.baidu.com/f/commit/share/openShareApi?url=//list.youku.com/show/id_9cd2277647d311e5b692&amp;title=%E7%BB%99%E5%A4%A7%E5%AE%B6%E5%88%86%E4%BA%AB%E3%80%8A%E5%BE%AE%E5%BE%AE%E4%B8%80%E7%AC%91%E5%BE%88%E5%80%BE%E5%9F%8E%E3%80%8B%2C%E8%AF%A6%E7%BB%86%E8%B5%84%E6%96%99%E5%9C%A8%E8%BF%99%E9%87%8C&amp;desc=%E7%BB%99%E5%A4%A7%E5%AE%B6%E5%88%86%E4%BA%AB%E3%80%8A%E5%BE%AE%E5%BE%AE%E4%B8%80%E7%AC%91%E5%BE%88%E5%80%BE%E5%9F%8E%E3%80%8B%2C%E8%AF%A6%E7%BB%86%E8%B5%84%E6%96%99%E5%9C%A8%E8%BF%99%E9%87%8C&amp;pic=" target="_blank" title="分享到百度贴吧"><i class="fn-icon fn-icon-tieba"></i></a></li><li><a href="http://share.v.t.qq.com/index.php?c=share&amp;a=index&amp;title=%E7%BB%99%E5%A4%A7%E5%AE%B6%E5%88%86%E4%BA%AB%E3%80%8A%E5%BE%AE%E5%BE%AE%E4%B8%80%E7%AC%91%E5%BE%88%E5%80%BE%E5%9F%8E%E3%80%8B%2C%E8%AF%A6%E7%BB%86%E8%B5%84%E6%96%99%E5%9C%A8%E8%BF%99%E9%87%8C&amp;url=//list.youku.com/show/id_9cd2277647d311e5b692&amp;appkey=e7ad0b0199994bda85ecc0a44ce9915f&amp;site=www.youku.com&amp;assname=youku2010&amp;pic=" target="_blank" title="分享到腾讯微博"><i class="fn-icon fn-icon-qqweibo"></i></a></li><li><a href="http://widget.renren.com/dialog/share?resourceUrl=//list.youku.com/show/id_9cd2277647d311e5b692&amp;pic=&amp;title=%E7%BB%99%E5%A4%A7%E5%AE%B6%E5%88%86%E4%BA%AB%E3%80%8A%E5%BE%AE%E5%BE%AE%E4%B8%80%E7%AC%91%E5%BE%88%E5%80%BE%E5%9F%8E%E3%80%8B%2C%E8%AF%A6%E7%BB%86%E8%B5%84%E6%96%99%E5%9C%A8%E8%BF%99%E9%87%8C" target="_blank" title="分享到人人网"><i class="fn-icon fn-icon-renren"></i></a></li><li><a href="http://www.douban.com/recommend/?url=//list.youku.com/show/id_9cd2277647d311e5b692&amp;title=%E7%BB%99%E5%A4%A7%E5%AE%B6%E5%88%86%E4%BA%AB%E3%80%8A%E5%BE%AE%E5%BE%AE%E4%B8%80%E7%AC%91%E5%BE%88%E5%80%BE%E5%9F%8E%E3%80%8B%2C%E8%AF%A6%E7%BB%86%E8%B5%84%E6%96%99%E5%9C%A8%E8%BF%99%E9%87%8C" target="_blank" title="分享到豆瓣"><i class="fn-icon fn-icon-douban"></i></a></li><li><a href="//v.youku.com/yixinShare/?url=//list.youku.com/show/id_9cd2277647d311e5b692&amp;content=%E7%BB%99%E5%A4%A7%E5%AE%B6%E5%88%86%E4%BA%AB%E3%80%8A%E5%BE%AE%E5%BE%AE%E4%B8%80%E7%AC%91%E5%BE%88%E5%80%BE%E5%9F%8E%E3%80%8B%2C%E8%AF%A6%E7%BB%86%E8%B5%84%E6%96%99%E5%9C%A8%E8%BF%99%E9%87%8C" target="_blank" title="分享到易信"><i class="fn-icon fn-icon-yixin"></i></a></li></ul></div><div class="p1"><h4>把视频贴到Blog或BBS&nbsp;&nbsp;<a href="//www.youku.com/help/view/fid/4#q2" target="_blank">怎么贴?</a></h4><div class="tipinfo"><span class="ps-label">推荐</span>通用代码可以让你的视频在iPhone、iPad上播放!</div><div class="item"><span class="label">通用代码: </span><input type="text" class="s-input" id="link2" value="<iframe height=498 width=510 src='http://player.youku.com/embed/XMTY5NDg2MzY5Ng==' frameborder=0 allowfullscreen></iframe>" /><span class="s-btn">复 制</span></div><div class="item"><span class="label">html代码: </span><input type="text" class="s-input" id="link3" value="http://player.youku.com/player.php/sid/XMTY5NDg2MzY5Ng==/v.swf" /><span class="s-btn">复 制</span></div><div class="item"><span class="label">flash地址: </span><input type="text" class="s-input" id="link4" value="<embed src='http://player.youku.com/player.php/sid/XMTY5NDg2MzY5Ng==/v.swf' allowFullScreen='true' quality='high' width='480' height='400' align='middle' allowScriptAccess='always' type='application/x-shockwave-flash'></embed>" /><span class="s-btn">复 制</span></div><div class="share-item">分享视频到站外获取收益&nbsp;&nbsp;<a href="http://hz.youku.com/red/click.php?tp=1&amp;cp=4010780&amp;cpp=1000980&amp;url=http://cloud.youku.com/services/info?serid=8" target="_blank">查看详情</a></div></div><div class="p2"><p>手机扫码分享视频</p><p>二维码2小时内有效</p><div class="two-code"><img id="share_qrcode_img" src="//qr.youku.com/qr?sc=video_play&amp;ac=open&amp;ps={&quot;vid&quot;:&quot;423715924&quot;,&quot;spot&quot;:0,&quot;tp&quot;:1,&quot;cp&quot;:4010708,&quot;cpp&quot;:1000976}&amp;size=135" alt="" /></div><div class="clear"></div></div></div><div class="fn-panel fn-panel-download" id="panel_down" style="display: none;"><span class="pointer"><i class="fn-icon fn-icon-pointer"></i></span><div class="fn-panel-close" title="关闭"><i class="fn-icon fn-icon-close"></i></div><div class="panel-con clearfix"><div class="column column-left"><p class="dl-title">下载至电脑</p><div class="download-app-wrap" id="panel_down_notice"><i class="download-app-pc"></i></div><div class="download-app-btns" id="panel_down_btns"><a id="fn_pc_download_all" class="download-app-btn-blue" href="javascript:;">下载全集</a></div></div><div class="column column-right"><div class="column-con"><p class="dl-title">扫码用手机看</p><div class="v-qrcode" id="dimcode_pic"><i class="ico_play_dimcode"></i><img id="phone-qrcode-img" src="//qr.youku.com/qr?sc=video_play&amp;ac=open&amp;ps={&quot;vid&quot;:&quot;XMTY5NDg2MzY5Ng==&quot;,&quot;spot&quot;:0,&quot;tp&quot;:1,&quot;cp&quot;:4010708,&quot;cpp&quot;:1000976}&amp;size=135" alt="" /></div><p class="dl-ps">用<a href="//mobile.youku.com/index/wireless" target="_blank">优酷APP</a>或微信扫码在手机上继续观看</p><p class="dl-ps">二维码2小时内有效</p></div></div></div></div><div class="fn-panel fn-panel-phone-see" data-ref="fn-panel-phone-see" style="display: none"><span class="pointer"><i class="fn-icon fn-icon-pointer"></i></span><div class="fn-panel-close" title="关闭"><i class="fn-icon fn-icon-close"></i></div><div class="column column-left"><div class="column-con"><p class="ps-title">扫码用手机继续看</p><div class="ps-twocode"><img id="phone_qrcode_img" src="//qr.youku.com/qr?sc=video_play&amp;ac=open&amp;ps={&quot;vid&quot;:&quot;XMTY5NDg2MzY5Ng==&quot;,&quot;spot&quot;:0,&quot;tp&quot;:1,&quot;cp&quot;:4010708,&quot;cpp&quot;:1000976}&amp;size=135" alt="" /></div><p class="ps-ps">用<a href="//mobile.youku.com/index/wireless" target="_blank">优酷APP</a>或微信扫码在手机上继续观看</p><p class="ps-ps">二维码2小时内有效,扫码后可分享给好友</p></div></div><div class="column column-right"><div class="column-con"><p class="ps-title">没有优酷APP?立即下载</p><div class="ps-down-app"><span class="ico"><i class="fn-icon fn-icon-iphone"></i></span><a href="https://itunes.apple.com/cn/app/id336141475">iPhone客户端</a></div><div class="ps-down-app"><span class="ico"><i class="fn-icon fn-icon-ipad"></i></span><a href="https://itunes.apple.com/cn/app/id394075284">iPad客户端</a></div><div class="ps-down-app ps-orange"><span class="ico"><i class="fn-icon fn-icon-android"></i></span><a href="//dl.m.cc.youku.com/android/phone/Youku_Android_Pcyongshoujikan.apk">Android客户端</a></div><p class="ps-ps">请根据您的设备选择下载版本</p></div></div></div></div></div><div class="p-play"><a href="//v.youku.com/v_show/id_XMTY5NDg2MzY5Ng==.html" class="p-btn" target="_blank">立即播放</a></div></div></div></div><div class="mod-area-left"><div class="mod-new fix"><div class="h"><ul class="t_tab p-tab"><li class=""><a data-id="showInfo" class="content" href="javascript:void(0)">剧集列表</a></li><li class=""><a data-id="point" class="content" href="javascript:void(0)">分集剧情</a></li><li class=""><a data-id="around_2" class="content" href="javascript:void(0)">预告片</a></li><li class=""><a data-id="around_3" class="content" href="javascript:void(0)">花絮</a></li><li class=""><a data-id="around_4" class="content" href="javascript:void(0)">饭制</a></li><li class=""><a data-id="around_6" class="content" href="javascript:void(0)">MV</a></li><li class=""><a data-id="around_7" class="content" href="javascript:void(0)">独家</a></li><li class=""><a data-id="doubanComment" class="content" href="javascript:void(0)">豆瓣</a></li></ul></div><div class="c"><div class="tab-c" id="showInfo" ></div><div class="tab-c" id="point" ></div><div class="tab-c" id="around_2" ></div><div class="tab-c" id="around_3" ></div><div class="tab-c" id="around_4" ></div><div class="tab-c" id="around_6" ></div><div class="tab-c" id="around_7" ></div><div class="tab-c" id="doubanComment" ></div></div></div></div><div class="mod-area-right"><div class="mod-new mod-p-actor fix"><div class="p-h">演职员表</div><ul class="p-thumb-small fix"><li><dl><dt><a href="//list.youku.com/star/show/uid_UOTM2MjA=.html" target="_blank"><img src="http://r2.ykimg.com/05140000584A1D0367BC3C33220D92B5" alt="杨洋" /></a></dt><dd><a class="c555 f13" href="//list.youku.com/star/show/uid_UOTM2MjA=.html" title="杨洋" target="_blank">杨洋</a></dd><dd class="c999">肖奈</dd></dl></li><li><dl><dt><a href="//list.youku.com/star/show/uid_UNjkwODA=.html" target="_blank"><img src="http://r1.ykimg.com/0514000058537A8867BC3C40FA0DA6E3" alt="郑爽" /></a></dt><dd><a class="c555 f13" href="//list.youku.com/star/show/uid_UNjkwODA=.html" title="郑爽" target="_blank">郑爽</a></dd><dd class="c999">贝微微</dd></dl></li><li><dl><dt><a href="//list.youku.com/star/show/uid_UMTU1NzAzNg==.html" target="_blank"><img src="http://r1.ykimg.com/0514000058468ADF67BC3C57E10D3003" alt="毛晓彤" /></a></dt><dd><a class="c555 f13" href="//list.youku.com/star/show/uid_UMTU1NzAzNg==.html" title="毛晓彤" target="_blank">毛晓彤</a></dd><dd class="c999">二喜</dd></dl></li><li><dl><dt><a href="//list.youku.com/star/show/uid_UMzQ1OTkyOA==.html" target="_blank"><img src="http://r1.ykimg.com/0514000057830FFD67BC3C5E0203A09A" alt="白宇" /></a></dt><dd><a class="c555 f13" href="//list.youku.com/star/show/uid_UMzQ1OTkyOA==.html" title="白宇" target="_blank">白宇</a></dd><dd class="c999">曹光</dd></dl></li><li><dl><dt><a href="//list.youku.com/star/show/uid_UMzQ1Mzc4NA==.html" target="_blank"><img src="http://r1.ykimg.com/051400005783108767BC3C632706998F" alt="秦语" /></a></dt><dd><a class="c555 f13" href="//list.youku.com/star/show/uid_UMzQ1Mzc4NA==.html" title="秦语" target="_blank">秦语</a></dd><dd class="c999">晓玲</dd></dl></li><li><dl><dt><a href="//list.youku.com/star/show/uid_UMzU1MTI2NA==.html" target="_blank"><img src="http://r3.ykimg.com/05140000576B8F6367BC3C116105D5F0" alt="宋欣佳怡" /></a></dt><dd><a class="c555 f13" href="//list.youku.com/star/show/uid_UMzU1MTI2NA==.html" title="宋欣佳怡" target="_blank">宋欣佳怡</a></dd><dd class="c999">丝丝</dd></dl></li><li><dl><dt><a href="//list.youku.com/star/show/uid_UMzU0OTc0NA==.html" target="_blank"><img src="http://r4.ykimg.com/051400005783116B67BC3C0E8D09D1EF" alt="马春瑞" /></a></dt><dd><a class="c555 f13" href="//list.youku.com/star/show/uid_UMzU0OTc0NA==.html" title="马春瑞" target="_blank">马春瑞</a></dd><dd class="c999">孟逸然</dd></dl></li><li><dl><dt><a href="//list.youku.com/star/show/uid_UMzM0MTk2NA==.html" target="_blank"><img src="http://r1.ykimg.com/0514000054373F1567379F654F0D3564" alt="郑业成" /></a></dt><dd><a class="c555 f13" href="//list.youku.com/star/show/uid_UMzM0MTk2NA==.html" title="郑业成" target="_blank">郑业成</a></dd><dd class="c999">郝眉</dd></dl></li></ul><ul class="p-thumb-small hide fix" id="hideThumb" style="display: none;"><li><dl><dt><a href="//list.youku.com/star/show/uid_UOTE2ODg=.html" target="_blank"><img src="http://r4.ykimg.com/05140000578311F367BC3C605801C581" alt="牛骏峰" /></a></dt><dd><a class="c555 f13" href="//list.youku.com/star/show/uid_UOTE2ODg=.html" title="牛骏峰" target="_blank">牛骏峰</a></dd><dd class="c999">于半珊</dd></dl></li><li><dl><dt><a href="//list.youku.com/star/show/uid_UMTY1MjQzNg==.html" target="_blank"><img src="http://r4.ykimg.com/05140000578312D267BC3C635D0EB9B7" alt="崔航" /></a></dt><dd><a class="c555 f13" href="//list.youku.com/star/show/uid_UMTY1MjQzNg==.html" title="崔航" target="_blank">崔航</a></dd><dd class="c999">丘永侯</dd></dl></li><li><dl><dt><a href="//list.youku.com/star/show/uid_UMzQ5ODg0MA==.html" target="_blank"><img src="http://r4.ykimg.com/051400005783135567BC3C0EEF043A9B" alt="刘颖伦" /></a></dt><dd><a class="c555 f13" href="//list.youku.com/star/show/uid_UMzQ5ODg0MA==.html" title="刘颖伦" target="_blank">刘颖伦</a></dd><dd class="c999">雨瑶</dd></dl></li><li><dl><dt><a href="//list.youku.com/star/show/uid_UMjkwOTk3Mg==.html" target="_blank"><img src="http://r1.ykimg.com/05140000578313B967BC3C62E7016806" alt="张赫" /></a></dt><dd><a class="c555 f13" href="//list.youku.com/star/show/uid_UMjkwOTk3Mg==.html" title="张赫" target="_blank">张赫</a></dd><dd class="c999">甄少祥</dd></dl></li><li><dl><dt><a href="//list.youku.com/star/show/uid_UMzQ4Njc4OA==.html" target="_blank"><img src="http://r4.ykimg.com/051400005783149667BC3C64460E9E18" alt="陆妍淇" /></a></dt><dd><a class="c555 f13" href="//list.youku.com/star/show/uid_UMzQ4Njc4OA==.html" title="陆妍淇" target="_blank">陆妍淇</a></dd><dd class="c999">雷神妮妮</dd></dl></li><li><dl><dt><a href="//list.youku.com/star/show/uid_UMzU1MTI2OA==.html" target="_blank"><img src="http://r2.ykimg.com/05140000576B901067BC3C4D9B0EB2FE" alt="刘钰瑾" /></a></dt><dd><a class="c555 f13" href="//list.youku.com/star/show/uid_UMzU1MTI2OA==.html" title="刘钰瑾" target="_blank">刘钰瑾</a></dd><dd class="c999">蝶梦未醒</dd></dl></li><li><dl><dt><a href="//list.youku.com/star/show/uid_UMzQ2MTg3Mg==.html" target="_blank"><img src="http://r4.ykimg.com/0514000054C7172867379F72FC023B63" alt="周宸佳" /></a></dt><dd><a class="c555 f13" href="//list.youku.com/star/show/uid_UMzQ2MTg3Mg==.html" title="周宸佳" target="_blank">周宸佳</a></dd><dd class="c999">安娜</dd></dl></li><li><dl><dt><a href="//list.youku.com/star/show/uid_UMzQ1NjE4NA==.html" target="_blank"><img src="http://r4.ykimg.com/0514000054F81EC767379F2A6F02F979" alt="章涛" /></a></dt><dd><a class="c555 f13" href="//list.youku.com/star/show/uid_UMzQ1NjE4NA==.html" title="章涛" target="_blank">章涛</a></dd><dd class="c999">战天下</dd></dl></li><li><dl><dt><a href="//list.youku.com/star/show/uid_UMzU2NTcyMA==.html" target="_blank"><img src="http://r3.ykimg.com/0514000057CCCC2A67BC3C1584057DA9" alt="胡浩博" /></a></dt><dd><a class="c555 f13" href="//list.youku.com/star/show/uid_UMzU2NTcyMA==.html" title="胡浩博" target="_blank">胡浩博</a></dd><dd class="c999">阿爽</dd></dl></li><li><dl><dt><a href="//list.youku.com/star/show/uid_UMzUwOTk4MA==.html" target="_blank"><img src="http://r3.ykimg.com/05140000565BE81D67BC3C2C1A0CA581" alt="小小白" /></a></dt><dd><a class="c555 f13" href="//list.youku.com/star/show/uid_UMzUwOTk4MA==.html" title="小小白" target="_blank">小小白</a></dd><dd class="c999">阿力</dd></dl></li><li><dl><dt><a href="//list.youku.com/star/show/uid_UMzQ0Nzc4NA==.html" target="_blank"><img src="http://r4.ykimg.com/0514000056CEBA1167BC3C2987072A61" alt="蔡纲" /></a></dt><dd><a class="c555 f13" href="//list.youku.com/star/show/uid_UMzQ0Nzc4NA==.html" title="蔡纲" target="_blank">蔡纲</a></dd><dd class="c999">肖父</dd></dl></li><li><dl><dt><a href="//list.youku.com/star/show/uid_UMzU1NzQ0NA==.html" target="_blank"><img src="//r3.ykimg.com/051000005847AA8567BC3D0D7605442E" alt="顾凯丽" /></a></dt><dd><a class="c555 f13" href="//list.youku.com/star/show/uid_UMzU1NzQ0NA==.html" title="顾凯丽" target="_blank">顾凯丽</a></dd><dd class="c999">肖母</dd></dl></li><li><dl><dt><a href="//list.youku.com/star/show/uid_UMTYxODUzMg==.html" target="_blank"><img src="http://r2.ykimg.com/0514000050C1AE939792734CC00175B3" alt="傅隽" /></a></dt><dd><a class="c555 f13" href="//list.youku.com/star/show/uid_UMTYxODUzMg==.html" title="傅隽" target="_blank">傅隽</a></dd><dd class="c999">贝爸</dd></dl></li><li><dl><dt><a href="//list.youku.com/star/show/uid_UMzU2NTcyNA==.html" target="_blank"><img src="//r3.ykimg.com/051000005847AA8567BC3D0D7605442E" alt="杨曼琴" /></a></dt><dd><a class="c555 f13" href="//list.youku.com/star/show/uid_UMzU2NTcyNA==.html" title="杨曼琴" target="_blank">杨曼琴</a></dd><dd class="c999">贝妈</dd></dl></li><li><dl><dt><a href="//list.youku.com/star/show/uid_UMzU0NTg5Mg==.html" target="_blank"><img src="http://r1.ykimg.com/05140000574BAFC967BC3C24D904AE38" alt="杨雪莹" /></a></dt><dd><a class="c555 f13" href="//list.youku.com/star/show/uid_UMzU0NTg5Mg==.html" title="杨雪莹" target="_blank">杨雪莹</a></dd><dd class="c999">小雨青青</dd></dl></li><li><dl><dt><a href="//list.youku.com/star/show/uid_UMzU2NTcyOA==.html" target="_blank"><img src="http://r3.ykimg.com/0514000057BBA66367BC3C16B80643CA" alt="宋雨晴" /></a></dt><dd><a class="c555 f13" href="//list.youku.com/star/show/uid_UMzU2NTcyOA==.html" title="宋雨晴" target="_blank">宋雨晴</a></dd><dd class="c999">小雨霏霏</dd></dl></li><li><dl><dt><a href="//list.youku.com/star/show/uid_UMzU0MTU0MA==.html" target="_blank"><img src="http://r2.ykimg.com/0514000057DF51E067BC3C04050868A2" alt="刘倩妤" /></a></dt><dd><a class="c555 f13" href="//list.youku.com/star/show/uid_UMzU0MTU0MA==.html" title="刘倩妤" target="_blank">刘倩妤</a></dd><dd class="c999">小雨绵绵</dd></dl></li><li><dl><dt><a href="//list.youku.com/star/show/uid_UMzM0MzEzMg==.html" target="_blank"><img src="http://r2.ykimg.com/0514000057DF5A8567BC3C45290211D0" alt="张彬彬" /></a></dt><dd><a class="c555 f13" href="//list.youku.com/star/show/uid_UMzM0MzEzMg==.html" title="张彬彬" target="_blank">张彬彬</a></dd><dd class="c999">Ko</dd></dl></li><li><dl><dt><a href="//list.youku.com/star/show/uid_UMTU5NzA1Ng==.html" target="_blank"><img src="http://r4.ykimg.com/05140000583BDC7F67BC3C513C0B3E12" alt="黄柏钧" /></a></dt><dd><a class="c555 f13" href="//list.youku.com/star/show/uid_UMTU5NzA1Ng==.html" title="黄柏钧" target="_blank">黄柏钧</a></dd><dd class="c999">封总</dd></dl></li><li><dl><dt><a href="//list.youku.com/star/show/uid_UMzU2NTczMg==.html" target="_blank"><img src="//r3.ykimg.com/051000005847AA8567BC3D0D7605442E" alt="程弘" /></a></dt><dd><a class="c555 f13" href="//list.youku.com/star/show/uid_UMzU2NTczMg==.html" title="程弘" target="_blank">程弘</a></dd><dd class="c999">甄总</dd></dl></li><li><dl><dt><a href="//list.youku.com/star/show/uid_UMzI5ODczNg==.html" target="_blank"><img src="http://r2.ykimg.com/051400005728450467BC3C4E9500F4D1" alt="冷海铭" /></a></dt><dd><a class="c555 f13" href="//list.youku.com/star/show/uid_UMzI5ODczNg==.html" title="冷海铭" target="_blank">冷海铭</a></dd><dd class="c999">李总</dd></dl></li><li><dl><dt><a href="//list.youku.com/star/show/uid_UMzU0ODk5Mg==.html" target="_blank"><img src="http://r4.ykimg.com/0514000057BBA72D67BC3C293D00ADFE" alt="刘顾浩" /></a></dt><dd><a class="c555 f13" href="//list.youku.com/star/show/uid_UMzU0ODk5Mg==.html" title="刘顾浩" target="_blank">刘顾浩</a></dd><dd class="c999">王总</dd></dl></li><li><dl><dt><a href="//list.youku.com/star/show/uid_UMTU1NjE4NA==.html" target="_blank"><img src="http://r4.ykimg.com/05140000548519F467379F6EC106A76C" alt="杨雨橙" /></a></dt><dd><a class="c555 f13" href="//list.youku.com/star/show/uid_UMTU1NjE4NA==.html" title="杨雨橙" target="_blank">杨雨橙</a></dd><dd class="c999">肖舅舅</dd></dl></li><li><dl><dt><a href="//list.youku.com/star/show/uid_UMzU2NTczNg==.html" target="_blank"><img src="//r3.ykimg.com/051000005847AA8567BC3D0D7605442E" alt="边城" /></a></dt><dd><a class="c555 f13" href="//list.youku.com/star/show/uid_UMzU2NTczNg==.html" title="边城" target="_blank">边城</a></dd><dd class="c999">小阳</dd></dl></li><li><dl><dt><a href="//list.youku.com/star/show/uid_UMzU2NTc0MA==.html" target="_blank"><img src="//r3.ykimg.com/051000005847AA8567BC3D0D7605442E" alt="刘杭丽" /></a></dt><dd><a class="c555 f13" href="//list.youku.com/star/show/uid_UMzU2NTc0MA==.html" title="刘杭丽" target="_blank">刘杭丽</a></dd><dd class="c999">人事</dd></dl></li><li><dl><dt><a href="//list.youku.com/star/show/uid_UMzU2NTc0NA==.html" target="_blank"><img src="http://r4.ykimg.com/0514000057BBA83867BC3C293A091137" alt="李欣泽" /></a></dt><dd><a class="c555 f13" href="//list.youku.com/star/show/uid_UMzU2NTc0NA==.html" title="李欣泽" target="_blank">李欣泽</a></dd><dd class="c999">阿彩</dd></dl></li><li><dl><dt><a href="//list.youku.com/star/show/uid_UOTAxMDQ0.html" target="_blank"><img src="http://r1.ykimg.com/05140000558B95B667BC3C5D6D046ED5" alt="林玉芬" /></a></dt><dd><a class="c555 f13" href="//list.youku.com/star/show/uid_UOTAxMDQ0.html" title="林玉芬" target="_blank">林玉芬</a></dd><dd class="c999">导演</dd></dl></li><li><dl><dt><a href="//list.youku.com/star/show/uid_UMzQxNjY4NA==.html" target="_blank"><img src="http://r4.ykimg.com/0514000055655D4067BC3C7DCD008A66" alt="顾漫" /></a></dt><dd><a class="c555 f13" href="//list.youku.com/star/show/uid_UMzQxNjY4NA==.html" title="顾漫" target="_blank">顾漫</a></dd><dd class="c999">编剧</dd></dl></li><li><dl><dt><a href="//list.youku.com/star/show/uid_UMzQ2MDUyOA==.html" target="_blank"><img src="//r3.ykimg.com/051000005847AA8567BC3D0D7605442E" alt="沈飞弦" /></a></dt><dd><a class="c555 f13" href="//list.youku.com/star/show/uid_UMzQ2MDUyOA==.html" title="沈飞弦" target="_blank">沈飞弦</a></dd><dd class="c999">编剧</dd></dl></li><li><dl><dt><a href="//list.youku.com/star/show/uid_UMzU2NTcxMg==.html" target="_blank"><img src="//r3.ykimg.com/051000005847AA8567BC3D0D7605442E" alt="欧阳晓鋆" /></a></dt><dd><a class="c555 f13" href="//list.youku.com/star/show/uid_UMzU2NTcxMg==.html" title="欧阳晓鋆" target="_blank">欧阳晓鋆</a></dd><dd class="c999">编剧</dd></dl></li><li><dl><dt><a href="//list.youku.com/star/show/uid_UMzU2NTcxNg==.html" target="_blank"><img src="//r3.ykimg.com/051000005847AA8567BC3D0D7605442E" alt="杨文婷" /></a></dt><dd><a class="c555 f13" href="//list.youku.com/star/show/uid_UMzU2NTcxNg==.html" title="杨文婷" target="_blank">杨文婷</a></dd><dd class="c999">编剧</dd></dl></li><li><dl><dt><a href="//list.youku.com/star/show/uid_UODYwMDky.html" target="_blank"><img src="//r3.ykimg.com/051000005847AA8567BC3D0D7605442E" alt="王建军" /></a></dt><dd><a class="c555 f13" href="//list.youku.com/star/show/uid_UODYwMDky.html" title="王建军" target="_blank">王建军</a></dd><dd class="c999">监制</dd></dl></li><li><dl><dt><a href="//list.youku.com/star/show/uid_UMzIwODcxMg==.html" target="_blank"><img src="http://r4.ykimg.com/051400005632DF6367BC3C483D0B0CB5" alt="卜宇" /></a></dt><dd><a class="c555 f13" href="//list.youku.com/star/show/uid_UMzIwODcxMg==.html" title="卜宇" target="_blank">卜宇</a></dd><dd class="c999">监制</dd></dl></li><li><dl><dt><a href="//list.youku.com/star/show/uid_UMzI4Nzk4MA==.html" target="_blank"><img src="http://r1.ykimg.com/051400005729696467BC3C0D320497EF" alt="杨伟东" /></a></dt><dd><a class="c555 f13" href="//list.youku.com/star/show/uid_UMzI4Nzk4MA==.html" title="杨伟东" target="_blank">杨伟东</a></dd><dd class="c999">监制</dd></dl></li></ul><div class="p-more-actor"><span class="more-default" id="moreActor">更多演员</span></div></div><div class="mod-new p-tvc-ad"><div id="ab_855" data-adid="855"></div><span class="ad-flag hide" style="display: none;"></span></div><div class="mod-new p-tvc-ad"><div class="AD_banner" id="AD_banner"></div></div><div class="mod-new mod-p-related" id="relation"></div><div class="mod-new p-dl-ad"><div id="ab_856" data-adid="856"></div><span class="ad-flag hide" ></span></div></div></div></div><div class="g-footer">
<dl class="g-w1">
<dt>
<a target="_blank" href="//c.youku.com/aboutcn/youtu">大优酷事业群</a> 
<a target="_blank" href="//c.youku.com/aboutcn/youku">关于优酷</a> 
<a target="_blank" href="http://www.tudou.com/about/cn/">关于土豆</a>
</dt>
<dd>
<a target="_blank" href="//c.youku.com/abouteg/youtu">Youku Tudou Inc.</a>
<a target="_blank" href="//c.youku.com/abouteg/youku">Youku.com</a>
<a target="_blank" href="http://www.tudou.com/about/en/">Tudou.com</a>
</dd>
<dd>
<a target="_blank" href="//c.youku.com/link">友情链接</a>
<a target="_blank" href="//c.youku.com/aboutcn/adservice/">广告服务</a>
</dd>
</dl>
<dl class="g-w2">
<dt>
优酷热门
</dt>
<dd>
<a target="_blank" href="//tv.youku.com/">剧集</a>
<a target="_blank" href="//movie.youku.com/">电影</a>
<a target="_blank" href="//zy.youku.com/">综艺</a>
<a target="_blank" href="//music.youku.com/">音乐</a>
<a target="_blank" href="//child.youku.com/">少儿</a>
<a target="_blank" href="//news.youku.com/">资讯</a>
<a target="_blank" href="//paike.youku.com/">拍客</a>
<a target="_blank" href="//jilupian.youku.com/">纪实</a>
<a target="_blank" href="//gongyi.youku.com/">公益</a>
</dd>
<dd>
<a target="_blank" href="//sports.youku.com/">体育</a>
<a target="_blank" href="//auto.youku.com/">汽车</a>
<a target="_blank" href="//tech.youku.com/">科技</a>
<a target="_blank" href="//finance.youku.com/">财经</a>
<a target="_blank" href="//ent.youku.com/">娱乐</a>
<a target="_blank" href="//dv.youku.com/">原创</a>
<a target="_blank" href="//comic.youku.com/">动漫</a>
<a target="_blank" href="//fun.youku.com/">搞笑</a>
<a target="_blank" href="//travel.youku.com/">旅游</a>
</dd>
<dd>
<a target="_blank" href="//fashion.youku.com/">时尚</a>
<a target="_blank" href="//baby.youku.com/">亲子</a>
<a target="_blank" href="//edu.youku.com/">教育</a>
<a target="_blank" href="//game.youku.com/">游戏</a>
<a target="_blank" href="http://vip.youku.com/">会员</a>
<a target="_blank" href="//faxian.youku.com/?from=PC_main_nav">发现</a>
<a target="_blank" href="http://list.youku.com/category/video">片库</a>
</dd>
</dl>
<dl class="g-w3">
<dt>产品中心</dt>
<dd>
<a href="javascript:void(0);" class="ikuDownLoad" data-down-href="http://iku.youku.com/channelinstall/ywebbottom" data-down-mac="http://iku.youku.com/channelinstall/macyweb">PC客户端</a>
<a target="_blank" href="//pd.youku.com/ido">优酷iDo</a>
</dd>
<dd>
<a target="_blank" href="//mobile.youku.com/index/wireless">手机客户端</a>
<a target="_blank" href="//pd.youku.com/paike">拍客</a>
</dd>
<dd>
<a target="_blank" href="http://yj.youku.com/?hmsr=1119youku&hmpl=&hmcu=&hmkw=&hmci=">智能硬件</a>
<a target="_blank" href="http://cloud.youku.com/">视频云</a>
</dd>
</dl>
<dl class="g-w4">
<dt>用户</dt>
<dd>
<a target="_blank" href="//zipindao.youku.com/zpd">自频道加油站</a>
<a target="_blank" href="//hz.youku.com/red/click.php?tp=1&cp=4011029&cpp=1001005&url=http://rz.youku.com/yc">自频道认证</a>
</dd>

<dt>支持</dt>
<dd>
<a id="sttrans" href="javascript:void(0);">繁體版</a>
<a target="_blank" href="http://www.youku.com/service/feed/">在线反馈</a>
<!-- <a target="_blank" href="http://www.youku.com/help/">帮助中心 </a> -->
</dd>
</dl>
<div class="g-hr"></div>
<dl class="g-w1">
<dd><a target="_blank" href="//mapp.youku.com/service/licence/">网络文化经营许可证 京网文[2014]0934-236号</a></dd>
<dd><a target="_blank" href="//mapp.youku.com/service/20130209">京卫网审[2013]第0209号 </a> <a target="_blank" href="http://www.bj.cyberpolice.cn/index.htm">网络110报警服务</a></dd>
<dd> 药品服务许可证(京)-经营-2015-0029</dd>
<dd>
节目制作经营许可证京字670号
</dd>
</dl>
<dl class="g-w2">
<dd>请使用者仔细阅读优酷<a target="_blank" href="//mapp.youku.com/service/agreement" class="mr0">使用协议</a>、<a target="_blank" href="//mapp.youku.com/service/banquan" class="mr0">版权声明</a>、<a target="_blank" href="//mapp.youku.com/service/piracy" class="mr0">反盗版盗链声明</a></dd>
<dd>Copyright©2017 优酷 youku.com 版权所有</dd>
<dd>不良信息举报电话: 4008100580</dd>
<dd><a target="_blank" href="//mapp.youku.com/service/0108283">信息网络传播视听节目许可证0108283号</a></dd>
</dl>
<dl class="g-w3">
<dd><a target="_blank" href="http://www.miibeian.gov.cn/">京ICP证060288号</a></dd>
<dd><a target="_blank" href="//mapp.youku.com/service/chuban">新出网证(京)字160号</a></dd>
<dd><a target="_blank" href="http://www.bjjubao.org/">北京互联网举报中心</a></dd>
<dd><a target="_blank" href="http://www.bjwhzf.gov.cn/accuse.do">北京12318文化市场举报热线</a></dd>
</dl>
<dl class="g-w4">
<a class="qcode" target="_blank" href="//mobile.youku.com/index/wireless"></a>
</dl>
<div class="g-authentication">
<a class="aut-1" target="_blank" href="http://www.hd315.gov.cn/beian/view.asp?bianhao=010202006082400023">经营性网站<br/>备案信息</a>
<a class="aut-2" target="_blank" href="http://www.itrust.org.cn/yz/pjwx.asp?wm=1786197705">中国互联网<br/>诚信联盟</a>
<a class="aut-3" target="_blank" href="http://www.12377.cn/">中国互联网<br/>举报中心</a>
<a class="aut-4" target="_blank" href="http://www.12377.cn/node_548446.htm">网络举报<br/>APP下载</a>
<a class="aut-5" target="_blank" href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=11000002000017">京公网安备<br/>11000002000017</a>
<a class="aut-6" target="_blank" href="http://sq.ccm.gov.cn/ccnt/sczr/service/business/emark/toDetail/0D76560AE65141FF9FEFE3481D205C50">网络文化<br/>经营单位</a>
<a class="aut-7" target="_blank" href="http://www.12377.cn/">暴恐音视频<br/>举报专区</a>
</div>
</div>
<script>var Local={"domain":{"test":"test.youku.com","default":"www.youku.com","passport":"login.youku.com","subscribe":"ding.youku.com","uc":"i.youku.com","video":"v.youku.com","rz":"rz.youku.com","userlive":"userlive.youku.com","esign":"hetong.youku.com","listpage":"list.youku.com","xinterest":"x.youku.com","ypartner":"yp.youku.com","interact":"hudong.pl.youku.com","creation":"creation.youku.com","uctg":"uctg.youku.com","playlists":"playlists.youku.com","static":"static.youku.com","static_https":"static.youku.com","nc":"nc.youku.com","passportOld":"passport.youku.com","subscribeDataFrom":"i.youku.com","static_ext":"static.ykimg.com","static_ext_js":"js.ykimg.com","static_ext_css":"css.ykimg.com"},"service":{"push":"push.youku.com","interact":"hudong.pl.youku.com"},"debug":false};</script><script type="text/javascript"> var PageConfig = { cateId:"97", cateName:"电视剧", channelUrl:"//list.youku.com/category/show/c_97.html", showid_en:"z9cd2277647d311e5b692", showid:"300389", videoId:"423715924", doubanKey:"0afdd4e8bbca840a20f97eba335f8c1e", doubanId:"26427831", ownerId:"794898482", size:"40", copytoclip:1 };</script><script src="//js.ykimg.com/youku/dist/js/lib_12.js" id="libjsnode"></script><script src="//js.ykimg.com/youku/dist/js/g_51.js"></script><script src="//js.ykimg.com/youku/dist/js/page/find/g_86.js"></script><script src="//js.ykimg.com/youku/dist/js/page/find/program/program_15.js"></script></body></html>

 

 

 

 

 

 

 

 

 

 

附上代码

Page.java(新建一个实体类,用来存储需要爬取的数据)

package zhouls.bigdata.mySpider.entity;

/**

* @author zhouls
* created by 2017-01-11
*
*/
public class Page {

//页面内容
private String content;

//总播放量
private String allnumber;

//每日播放总量
private String daynumber;

//评论数
private String commentnumber;

//收藏数
private String collectnumber;

//赞
private String supportnumber;

//踩
private String againstnumber;

//电视剧名称
private String tvname;

//页面url
private String url;

//子集
private String episodenumber;

public String getContent() {
return content;
}

public void setContent(String content) {
this.content = content;
}

public String getAllnumber() {
return allnumber;
}

public void setAllnumber(String allnumber) {
this.allnumber = allnumber;
}

public String getDaynumber() {
return daynumber;
}

public void setDaynumber(String daynumber) {
this.daynumber = daynumber;
}

public String getCommentnumber() {
return commentnumber;
}

public void setCommentnumber(String commentnumber) {
this.commentnumber = commentnumber;
}

public String getCollectnumber() {
return collectnumber;
}

public void setCollectnumber(String collectnumber) {
this.collectnumber = collectnumber;
}

public String getSupportnumber() {
return supportnumber;
}

public void setSupportnumber(String supportnumber) {
this.supportnumber = supportnumber;
}

public String getAgainstnumber() {
return againstnumber;
}

public void setAgainstnumber(String againstnumber) {
this.againstnumber = againstnumber;
}

public String getTvname() {
return tvname;
}

public void setTvname(String tvname) {
this.tvname = tvname;
}

public String getUrl() {
return url;
}

public void setUrl(String url) {
this.url = url;
}

public String getEpisodenumber() {
return episodenumber;
}

public void setEpisodenumber(String episodenumber) {
this.episodenumber = episodenumber;
}


}

 

 set去赋值,get去取值

 

 

 

 

 

HttpClientDownLoadService.java代码(页面接口实现类HttpClientDownLoadService)

package zhouls.bigdata.mySpider.impl;

import zhouls.bigdata.mySpider.entity.Page;
import zhouls.bigdata.mySpider.service.IDownLoadService;
import zhouls.bigdata.mySpider.util.PageDownLoadUtil;

/**
* HttpClient页面下载实现类
* @author zhouls
* created by 2017-01-11
*
*/

public class HttpClientDownLoadService implements IDownLoadService {//实现页面下载接口

public Page download(String url) {

Page page = new Page();
page.setContent(PageDownLoadUtil.getPageContent(url));
return page;
}


}

 

 

 

 

 

 

 

IDownLoadService.java代码(新建一个页面下载接口,给定url,返回Page,url返回的页面          内容保存在page的content属性中。接口的目的,降低代码耦合度。)

package zhouls.bigdata.mySpider.service;


import zhouls.bigdata.mySpider.entity.Page;

/**
* 页面下载接口
* @author zhouls
* created by 2017-01-11
*
*/

//不管通过什么方式爬虫,都要实现这个接口,为了降低耦合性
public interface IDownLoadService {

public Page download(String url);
}

 

 

 

 

 

 

 

PageDownLoadUtil.java代码(在页面下载工具类的main方法中进行测试)

package zhouls.bigdata.mySpider.util;

import java.io.IOException;

import org.apache.http.HttpEntity;
import org.apache.http.client.ClientProtocolException;
import org.apache.http.client.methods.CloseableHttpResponse;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.HttpClientBuilder;
import org.apache.http.impl.client.HttpClients;
import org.apache.http.util.EntityUtils;

import zhouls.bigdata.mySpider.entity.Page;
import zhouls.bigdata.mySpider.impl.HttpClientDownLoadService;

 


/**

* @author zhouls
* created by 2017/1/11
*
*/
public class PageDownLoadUtil {
public static String getPageContent(String url){
HttpClientBuilder builder = HttpClients.custom(); //这是使用HttpClient来构造登录信息, 好的博客,见https://segmentfault.com/a/1190000003013451
CloseableHttpClient client = builder.build();

HttpGet request = new HttpGet(url);//创建一个get请求
String content = null;
try {
CloseableHttpResponse response = client.execute(request);
HttpEntity entity = response.getEntity();//获取HttpGet
content = EntityUtils.toString(entity,"utf-8");//将HttpGet转换成string
} catch (ClientProtocolException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
return content;//这个值,就是我们需要的页面内容

}

public static void main(String[] args) {
//这是直接,下载网页源代码
// String url = "http://list.youku.com/show/id_z9cd2277647d311e5b692.html?spm=a2h0j.8191423.sMain.5~5~A!2.iCUyO9";
// String content = PageDownLoadUtil.getPageContent(url);
// System.out.println(content);

String url = "http://list.youku.com/show/id_z9cd2277647d311e5b692.html?spm=a2h0j.8191423.sMain.5~5~A!2.iCUyO9";
HttpClientDownLoadService down = new HttpClientDownLoadService();
Page page = down.download(url);
System.out.println(page.getContent());

}
}

 

 

 

 

 

 

 

 

 

StartDSJCount代码(电视剧爬虫执行类)

package zhouls.bigdata.mySpider.start;//这个包是放置各种爬虫执行方法

import zhouls.bigdata.mySpider.entity.Page;
import zhouls.bigdata.mySpider.impl.HttpClientDownLoadService;
import zhouls.bigdata.mySpider.service.IDownLoadService;


/**
* 电视剧爬虫执行类
* @author zhouls
* created by 2017-01-11
*
*/
public class StartDSJCount {


private IDownLoadService downLoadService;

public static void main(String[] args) {
StartDSJCount dsj = new StartDSJCount();//dsj代表电视剧
dsj.setDownLoadService(new HttpClientDownLoadService());
String url = "http://list.youku.com/show/id_z9cd2277647d311e5b692.html?spm=a2h0j.8191423.sMain.5~5~A!2.iCUyO9";

//下载页面
Page page = dsj.downloadPage(url);
System.out.println(page.getContent());
}


public Page downloadPage(String url){
return this.downLoadService.download(url);
}



public IDownLoadService getDownLoadService() {
return downLoadService;
}

public void setDownLoadService(IDownLoadService downLoadService) {
this.downLoadService = downLoadService;
}




}

 


本文转自大数据躺过的坑博客园博客,原文链接:http://www.cnblogs.com/zlslch/p/6283440.html,如需转载请自行联系原作者

相关文章
|
2月前
|
数据采集 前端开发 NoSQL
Python编程异步爬虫实战案例
Python编程异步爬虫实战案例
62 2
|
7月前
|
数据采集 中间件 Python
Scrapy爬虫:利用代理服务器爬取热门网站数据
Scrapy爬虫:利用代理服务器爬取热门网站数据
|
2月前
|
数据采集 JSON 网络协议
Python编程异步爬虫——aiohttp的使用
Python编程异步爬虫——aiohttp的使用
29 0
|
2月前
|
数据采集 调度 Python
Python编程异步爬虫——协程的基本原理(一)
Python编程异步爬虫——协程的基本原理(一)
18 0
|
2月前
|
数据采集 Python
Python编程异步爬虫——协程的基本原理(二)
Python编程异步爬虫——协程的基本原理(二)
23 0
|
3月前
|
数据采集 Java
爬虫系统学习
爬虫系统学习
|
3月前
|
数据采集
爬虫之bs4学习
爬虫之bs4学习
|
4月前
|
数据采集 网络协议 索引
Python 爬虫技巧:百度页面重定向的自动跟踪与处理
Python 爬虫技巧:百度页面重定向的自动跟踪与处理
|
5月前
|
数据采集 大数据 关系型数据库
如何使用 PHP 爬虫爬取大数据
**摘要:** 本文探讨了如何使用PHP爬虫处理大数据。从爬虫基本概念出发,讨论了PHP爬虫框架如Goutte和PHP-Crawler。在爬取大数据时,需明确目标网站、数据类型和量,编写爬虫程序,包括数据提取、反爬策略如设置User-Agent和访问频率控制。同时,采用并发处理(多线程)和分布式爬虫策略提升效率。最后,强调了合法合规使用爬虫技术的重要性。
|
6月前
|
数据采集 存储 NoSQL
Java爬虫-爬取疫苗批次信息
为了解决疫苗批号查询难题,作者因个人情况需查询脊髓灰质炎灭活疫苗信息,发现官网查询系统不便使用。于是,技术大展身手,编写了一个Java爬虫,利用Hutool、Jsoup和Spring Boot的MongoDB库,抓取并存储了中国食品药品检定研究院等多家机构近十年的疫苗批次信息。代码示例展示了如何爬取数据并存入MongoDB,方便按需查询。
83 0