Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[发布] 【视频展厅采集器 V2.2.1】优酷、土豆采集问题 2012-1-18

  [复制链接]
 楼主| tt67 发表于 2012-9-18 09:31:27 | 显示全部楼层
jlahui 发表于 2012-9-18 07:04
3.0正式版啥时发啊

都未整理,和去调整呢.
其实现在的V4采集是基本够用的..     
回复

使用道具 举报

jlahui 发表于 2012-10-5 16:39:36 | 显示全部楼层
tt67 发表于 2012-9-18 09:31
都未整理,和去调整呢.
其实现在的V4采集是基本够用的..

老大,你送我的内测版,现在还在用,视频展厅还是3.1的,没更新,习惯了,不想更新了。
现在内测版的问题是土豆网的采出来的不能在CMP4中播放,不知道为什么,我也没编辑过采集土豆单视频规则,是软件自带的吗?
具体情况如下:

土豆网视频地址:
  1. http://www.tudou.com/albumplay/72-Sl8fcuHQ.html
复制代码
采集出来是这样的
  1. 标题:空白
  2. URL:http://www.tudou.com/v/J7457e5RnO4/v.swf&flvid=151529991
  3. ,cdnType:1
  4. ,cartoonType:0
  5. ,kw:"车在囧途"
  6. ,icode:"J7457e5RnO4"
  7. ,cid:"22"
  8. ,oid:"61994755"
  9. ,hd:1
  10. ,sh:"0.0000",st:"0.0000",tict:1
  11. ,dl:1
  12. ,np:0
  13. ,pic:"http://i2.tdimg.com/151/529/991/p.jpg"
  14. ,time:"01:31:57"
  15. ,opic:"http://u1.tdimg.com/2/43/231/105234955301390247126356684698149648372.jpg"
  16. ,onic:"拜爵"
  17. ,pub:""
  18. ,oname:"_61994755"
  19. ,nm:0
  20. ,scale:1
  21. ,csc6:"0"
  22. ,nc:0
  23. ,nls:0
  24. ,ol:0
  25. ,olw:-1
  26. ,olh:-1
  27. ,olr:-1
  28. }
  29. ]
  30. varisDisney=false;
  31. (function(icode,data,w){
  32. varfound=false;
  33. for(vari=0,j=data.length;i<j;i++){
  34. data[i]['title']=data[i]['kw'];
  35. if(data[i].icode==icode){
  36. initItemMeta(w,data[i]);
  37. w.index=i;
  38. found=true;
  39. }
  40. }
  41. if(!found)
  42. initItemMeta(w,data[0]||{});functioninitItemMeta(w,d){
  43. varc;
  44. for(varnind){
  45. c=d[n];
  46. if(c!==undefined)
  47. w[n]=c;
  48. }
  49. w.needCount=w.nc;
  50. w.thumbnail=w.bigItemUrl=w.pic;
  51. }
  52. })(icode,listData,window);
  53. </script>
  54. <divclass="g-minig-mini-play"id="gTop"><divclass="g-mini-main"><divclass="logo"><atitle="土豆网tudou.com每个人都是生活的导演">土豆网</a></div><divclass="g-mini-nav"><ulclass="g-link"><liclass="first"><atarget="_blank">原创</a></li><li><atarget="_blank">电视剧</a></li><li><atarget="_blank">电影</a></li><li><atarget="_blank">综艺</a></li><liclass="g-link-more"><spanclass="handle"><ahref="#">更多</a></span><divclass="g-more-nav"><divclass="more-top"></div><divclass="more-item"><h3>频道</h3><ul><li><atarget="_blank">动漫</a></li><liclass="clear"><atarget="_blank">全部</a></li><li><atarget="_blank">热点</a></li><li><atarget="_blank">财富</a></li><li><atarget="_blank">汽车</a></li><li><atarget="_blank">科技</a></li><li><atarget="_blank">体育</a></li><li><atarget="_blank">娱乐</a></li><li><atarget="_blank">音乐</a></li><li><atarget="_blank">游戏</a></li><li><atarget="_blank">搞笑</a></li><li><atarget="_blank">风尚</a></li><li><atarget="_blank">美容</a></li><li><atarget="_blank">女性</a></li><li><atarget="_blank">乐活</a></li><li><atarget="_blank">健康</a></li><li><atarget="_blank">教育</a></li><li><atarget="_blank">城市</a></li></ul></div><divclass="more-item"><h3>产品</h3><ul><li><atarget="_blank">广场</a></li></ul></div></div></li></ul></div><divclass="g-mini-searchg-search"><formaction="http://www.soku.com/t/nisearch.do"method="get"target="_blank"><divclass="g-search-box"><inputclass="g-search-texttui_searchint"type="text"accesskey="s"value=""name="kw"autocomplete="off"onfocus="this['_gs_focus']=1"onblur="this['_gs_focus']=0"/></div><inputclass="g-search-submit"type="submit"value="搜索"/><inputtype="hidden"value="td.t"name="cid"disabled="disabled"/></form></div><divclass="g-mini-user"><ulclass="g-user"id="uInfo"><liclass="g-viewlistview_record"id="viewRecordNav"><spanclass="handle"><bclass="view_icon"></b><atarget="_blank">观看历史</a></span><divclass="g-viewlist-nav"id="viewRecordWrap"><divclass="sub_tp"></div><divclass="sub_bd"><pid="viewRecordNotify"class="viewRecord_notify"><imgsrc="http://css.tudouui.com/skin/__g/img/loading3.gif"></p><divid="viewRecordContainer"class="viewRecord_container"></div><divid="viewRecordDo"class="viewRecord_do"><aid="viewRecordSave"target="_blank"class="save">永久保存观看记录</a></div></div><divclass="sub_ft"><atarget="_blank">我的点播单(<emid="quickNum">0</em>)</a></div></div></li><li><atarget="_blank"id="reg">注册</a></li><li><atarget="_blank"id="login">登录</a></li></ul><aclass="g-upload"target="_blank">上传视频</a></div></div></div><divclass="videowrap"><divclass="auto"><divclass="vcate_2"><divclass="vct"><h4class="vcate_title"id="vcate_title"></h4><ahref="#"class="pop_player"id="popPlayer">小窗口播放</a></div><ulclass="vci"><li><atitle="电影频道"target="_blank"coords="LLA">电影</a></li><li><atarget="_blank">大陆</a></li><li><atarget="_blank">喜剧</a><atarget="_blank">爱情</a></li><li><atarget="_blank"title="车在囧途">车在囧途</a></li></ul></div><divid="player"class="player"><h1>车在囧途</h1><divid="playerPlaceholder"></div><script>/*
  55. *@modified$Author:wkli$
  56. *@version$Rev:25700$
  57. *@pathSTATIC/js/fn/flashloader2.js
  58. */
  59. functionMash(){varb=4022871197;vara=function(e){e=e.toString();for(varc=0;c<e.length;c++){b+=e.charCodeAt(c);vard=0.02519603282416938*b;b=d>>>0;d-=b;d*=b;b=d>>>0;d-=b;b+=d*4294967296}return(b>>>0)*2.3283064365386963e-10};a.version="Mash0.9";returna}functionMRG32k3a(){return(function(h){varn=4294967087;varm=4294944443;varl=12345,k=12345,j=123,g=12345,f=12345,e=123;if(h.length===0){h=[+newDate()]}vara=Mash();for(vard=0;d<h.length;d++){l+=a(h[d])*4294967296;k+=a(h[d])*4294967296;j+=a(h[d])*4294967296;g+=a(h[d])*4294967296;f+=a(h[d])*4294967296;e+=a(h[d])*4294967296}l%=n;k%=n;j%=n;g%=m;f%=m;e%=m;a=null;varc=function(){varw=4294967087;varv=4294944443;vars=1403580;varq=810728;varp=527612;vari=1370589;varo,u,r;u=s*k-q*l;o=u/w|0;u-=o*w;if(u<0){u+=w}l=k;k=j;j=u;r=p*e-i*g;o=r/v|0;r-=o*v;if(r<0){r+=v}g=f;f=e;e=r;if(u<=r){returnu-r+w}else{returnu-r}};varb=function(){returnc()*2.3283064365386963e-10};b.uint32=c;b.fract53=function(){returnb()+(c()&2097151)*1.1102230246251565e-16};b.version="MRG32k3a0.9";b.args=h;returnb}(Array.prototype.slice.call(arguments)))}varTUI={browser:(function(){vara=navigator.userAgent.toLowerCase();return{webkit:/webkit/.test(a)?(a.match(/webkit\/(\d+)/)||[])[1]:0,ie:!+"\v1",iOS:(a.match(/(ipad|iphone|ipod)/)||[])[0],iOSVersion:(a.match(/os\s+([\d_]+)\s+like\s+mac\s+os/)||[0,"0_0_0"])[1].split("_"),wphone:parseFloat((a.match(/windows\sphone\sos\s([\d.]+)/)||["","0"])[1]),android:parseFloat((a.match(/android\s([\d.]+)/)||["","0"])[1])}})(),renderTpl:function(a,b){returna.replace(/<%\=(\w+)%>/g,function(d,c){returnb[c]!=null?b[c]:""})},cookie:function(g,c,h,f){if(typeofg=="string"){f=h;h=c;c=g;g=window}if(h!==undefined){f=f||{};vard,b="";if(f.expires){if(f.expires.constructor==Date){d=f.expires}else{d=newDate();d.setTime(d.getTime()+(f.expires*24*60*60*1000))}b=";expires="+d.toGMTString()}vari=f.path?";path="+f.path:"";vare=f.domain?";domain="+f.domain:"";vara=f.secure?";secure":"";g.document.cookie=[c,"=",encodeURIComponent(h),b,i,e,a].join("")}else{h=g.document.cookie.match(newRegExp("(?:\\s|^)"+c+"\\=([^;]*)"));returnh?decodeURIComponent(h[1]):null}},getRequest:function(b,e){vara=newImage(),d=[];a.onload=function(){};if(e){for(varcine){d.push(c+"="+e[c])}d=d.join("&")}a.src=!d.length?b:[b,b.match(/\?/)?"&":"?",d].join("")},getScript:function(a){varc=document.createElement("script"),b=document.getElementsByTagName("head")[0];c.type="text/javascript";c.async=true;c.src=a;b.appendChild(c)},juid:function(){return(+newDate*10000+Math.random(1)*10000).toString(32)},getFlashMC:function(a){returnTUI.browser.ie?window[a]:document[a]}};var$=jQuery={extend:function(b,a){vard;for(varcina){d=a[c];if(d!==undefined){b[c]=d}}returnb},cookie:TUI.cookie};varAopStat=(function(h){varc=TUI.browser,d=c.iOS,f=c.wphone,a=c.android,e=d&&c.iOSVersion.join(".")||a||f||0,g=d||(a&&"android")||(f&&"wphone")||"desktop",b=({"1":96001,"2":96002,"3":96003,"4":96003,"5":96003,"6":96004})[pageId],j=(h.cdnType==2?{"1":31100,"2":31000,"3":31200,"4":31200,"5":31200,"6":31300}:{"1":11000,"2":10000,"3":10200,"4":10200,"5":10200,"6":10300})[pageId];vari=!!d||(h.orientation!=undefined)||false;functionk(o,p,n,m){if(o>=5700&&!i&&pageId==1&&!m){k(5897,o,null,true);return}varl=[o,encodeURIComponent(navigator.userAgent)];if(p){l.push(p)}l.push(n||+newDate());TUI.getRequest("http://stat.tudou.com/aopstat/aop3",{pvid:h.pvid,ocvid:"",cvid:h.cvid||0,ppid:h.ppid||"",juid:juidStr,iid:iid,srcid:i?b:j,log:l.join("|"),fast:"",pcnt:0,pscnt:0,adcnt:0,prcnt:0,player:i?(g+"|"+e):(h.playerUrl?playerUrl.split("/")[5]:""),url:encodeURIComponent(location.href),referUrl:encodeURIComponent(document.referrer)})}return{send:k,srcid:i?b:j}})(window);(function(){if(window.ComboStat){return}window.ComboStat={cookie:function(c,d,a){if(typeofd=="undefined"){returnTUI.cookie(c)}varb={domain:"tudou.com",path:"/"};if(!a){b.expires=36500}TUI.cookie(c,d,b)},uuid:function(a){a=a||6;varb=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"];vare="";varf=b.length;for(vard=0;d<a;d++){varc=parseInt(Math.random()*Math.pow(10,6))%f;e+=b[c]}returnnewDate().getTime()+e},init:function(){varj=this;if(j.pvid){return}varf=j.cookie("ypvid")||"";varg=j.uuid();j.cookie("ypvid",g,true);varb=j.cookie("yseid");vara=1;vare=1;if(!b||newDate().getTime()>(parseInt(j.cookie("yseidtimeout"))||0)){b=j.uuid();j.cookie("yseid",b,true);j.cookie("ysestep",1);e=parseInt(j.cookie("yseidcount")||0)+1;j.cookie("yseidcount",e)}else{a=parseInt(j.cookie("ysestep")||0)+1;j.cookie("ysestep",a)}vard=newDate().getTime()+120*60000;j.cookie("yseidtimeout",d,true);vari=j.cookie("ycid")||"";varh=window.cid||0;j.cookie("ycid",h,true);varc=parseInt(j.cookie("ystep")||0)+1;j.cookie("ystep",c);j.juid=j.cookie("yjuid")||"";j.seid=b;j.pvid=g;j.cid=h;j.referPvid=f;j.referCid=i;j.step=c;j.seStep=a;j.seidTimeout=d;j.seidCount=e;j.isFrame=top.location!=window.location?1:0;j.noCookie=!navigator.cookieEnabled?1:0}}})();varPinBack=(function(d){varc,e,b={res:"y",t:0},a="http://player.pb.ops.tudou.com/info.php";functionf(){if(!c){c=+newDate;varg=d.pageId==1?11000:(d.pageId==2?10000:10200);TUI.getRequest(a,$.extend(b,{p:g,juid:juidStr}));e=setTimeout(function(){TUI.getRequest(a,$.extend(b,{res:"n",t:(+newDate-c)}))},10000)}else{if(e){clearTimeout(e);TUI.getRequest(a,$.extend(b,{res:"y",t:(+newDate-c)}))}}}return{send:f}})(window);varisPlayPage=true;ComboStat.init();varpvid=TUI.juid();varpageParams=(function(){vard={},c=location.href,b=c.match(/[^\s&\?#=\/]+=[^\s&\?#=]+/g);if(b){for(vare=0,a=b.length;e<a;e++){varf=b[e].split("=");d[f[0]]=decodeURIComponent(f[1])}}returnd})();window.onerror=(function(){vara=encodeURIComponent;url=a(location.href),ua=a(navigator.userAgent);returnfunction(b){if(Math.random()<0.01){TUI.getRequest("http://stats.tudou.com/e/page/js/fail/?v=1&s="+[a(b),url,(window.juidStr||"")+"_"+(window.uid||0),ua].join("|"))}}})();varisMobilePlayer=!!TUI.browser.iOS;varAOP=(isMobilePlayer||(Math.random()<0.001||pageParams.aop))?1:0;aopStats(5000,rqtime);varTIMESTAT=(Math.random()<0.02||pageParams.timestat)?1:0;timeStats(1);varPRNGran,juidStr,uid,_usr,_nic;setUserInfo();PRNGran=newMRG32k3a(uid,location.href,rqtime);juidStr=TUI.cookie("juid");if(!juidStr){juidStr=juid();TUI.cookie("juid",juidStr,{expires:365*100,domain:"tudou.com",path:"/"});juidStr=TUI.cookie("juid")||1}seid=TUI.cookie("seid");if(!seid||+newDate()>(parseInt(TUI.cookie("seidtimeout"))||0)){seid=juid();TUI.cookie("seid",seid,{domain:"tudou.com",path:"/"});seid=TUI.cookie("seid")||1}TUI.cookie("seidtimeout",+newDate()+30*60000,{domain:"tudou.com",path:"/"});functionjuid(){return"0"+(+newDate()).toString(32)+(parseInt(PRNGran()*100000)).toString(32)}functionisLogined(){return(($.cookie("u_passport_info")||$.cookie("u_login"))&&$.cookie("u_user")&&$.cookie("u_id"))}functionsetUserInfo(){uid=isLogined()?($.cookie("u_id")||0):0;_usr=$.cookie("u_user");_nic=$.cookie("u_nick")||window._usr}functionaopStats(b,a){if(!AOP){return}AopStat.send(b,"",a)}functiontimeStats(c){varg=[];if(c==1){varb,e;if(/^https?:\/\/\w+\.tudou\.com/i.test(document.referrer)){vard=TUI.cookie("timestatdata");if(!d){return}TIMESTAT=1;vara=d.split("|");b=a[0];e=a[1]}else{if(!TIMESTAT){return}b="";e=0}g=[b,window.pvid,"P2",window.rqtime];if(e>0){g.push(window.rqtime-e)}}else{if(c==2){if(!TIMESTAT){return}varf=newDate().getTime();g=["",window.pvid,"P3",f,f-window.rqtime]}}TUI.getRequest("http://pl.pb.ops.tudou.com:88/pageloadstat/a.html?v=0&s="+g.join("|"))}functionparseTime(d){varc=0;d=d.split(":");for(varb=0,a=d.length;b<a;b++){c+=d[b]*Math.pow(60,a-b-1)}returnc}varplayerEx={objectId:"playerObject",loaded:false,notifyCache:[],notify:function(){this.notifyCache.push([arguments[0],Array.prototype.slice.call(arguments,1)]);returntrue},notifyPlayer:function(){vara=TUI.getFlashMC(this.objectId);if(!a||!a.notify){return}returna.notify.apply(a,arguments)},init:function(a){if(!a.player&&a.url){a.player=a.url[(window.cdnType||1)-1]}this.load(a)},load:function(a){try{varf=this,b=window,w=!(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length),z='<objectid="'+f.objectId+'"name="'+f.objectId+'"width="100%"height="100%"<%=data%><%=mimetype%><%=classid%>>',u=[],g=[],p=b.playerEx,m=b.pageParams||{};varl={listType:[0,0,1,3,2,4,6][b.pageId||0]||0,iid:a.iid,lid:a.lid||0,aid:b.aid||0,uid:uid||0,channel:b.cid||0,default_skin:a.skin||0,tudouMini:a.mini||0,hd:b.hd||0,ol:b.ol,olw:b.olw,olh:b.olh,olr:b.olr,ban:0,referrer:encodeURIComponent(m.referrer||document.referrer),href:encodeURIComponent(location.href),USER_AGENT:navigator.userAgent
  60. 图片:正常
  61. 时间:正常
  62. 简介:正常
复制代码
就是主要的URL不正常,但是取前面的这些,播放正常啊
  1. http://www.tudou.com/v/J7457e5RnO4/v.swf&flvid=151529991
复制代码
回复

使用道具 举报

jlahui 发表于 2012-10-5 16:41:15 | 显示全部楼层
  1. 01.http://www.tudou.com/v/J7457e5RnO4/v.swf&flvid=151529991
复制代码
这样的地址,如何编辑取得呢,我试了好几天也没成功,特来请教老大给指点,最好给出具体文件,省事啊,呵
回复

使用道具 举报

jlahui 发表于 2012-10-5 16:45:03 | 显示全部楼层
而用视频展厅3.1自动采集出来的标题也是空白,其他几项正常
URL地址和你的采出来的不太一样,也能播放
  1. http://www.tudou.com/l/1pr9BtsOGRs/&iid=151529991/v.swf
复制代码
回复

使用道具 举报

 楼主| tt67 发表于 2012-10-5 22:12:58 | 显示全部楼层
jlahui 发表于 2012-10-5 16:45
而用视频展厅3.1自动采集出来的标题也是空白,其他几项正常
URL地址和你的采出来的不太一样,也能播放

这样的地址是软件自带识别的。
现在土豆优酷的 规则变了。 3.1 展厅的规则识别没更新..
其实现在V4的展厅,自动采集能满足基本采集需求的
回复

使用道具 举报

jlahui 发表于 2012-10-5 23:32:17 | 显示全部楼层
tt67 发表于 2012-10-5 22:12
这样的地址是软件自带识别的。
现在土豆优酷的 规则变了。 3.1 展厅的规则识别没更新..
其实现在V4的展 ...

老大有时间给更新下啊,很喜欢你这个采集,谢谢先
回复

使用道具 举报

♀★HH★♀ 发表于 2012-10-13 19:54:20 | 显示全部楼层
不知道咋用啊
回复

使用道具 举报

微动漫wdm8.com 发表于 2012-10-17 20:52:33 | 显示全部楼层
微动漫wdm8.com  
回复

使用道具 举报

jlahui 发表于 2012-10-29 16:58:41 | 显示全部楼层
老大,你的采集器正试版出了没啊,一直期待,就为这都没升级视频中心到4.1,内测版还一直用着呢
回复

使用道具 举报

勿忘我科技 发表于 2012-10-29 18:14:18 | 显示全部楼层
好东西一定要顶一下
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-11-14 18:18 , Processed in 0.018314 second(s), 2 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表