某个音乐网站的音乐地址寻找方式

 

 

 

下载页面 看到一个函数

 

<a href="javascript:playmedia1('playicon','player', 'cachefile7.rayfile.com/ac20/zh-

 

cn/preview/d120cdf40c615797ec73217a818f03d4/preview', '355', '68',

 

'7d99bb4c7bd4602c342e2bb826ee8777', 'http://224.');

ListenLog(143542, 283987);">

 

 

main.js

 

function playmedia1(playIcon, strID,strURL,intWidth,intHeight,type, Head) {

 

       playIcon.replace(" ","%20");

       strID.replace(" ","%20");

      

       var objDiv=document.getElementById(strID);

       document.getElementById(playIcon).style.display='none';

      

       if (!objDiv) return false;

       if (objDiv.style.display!='none') {

              objDiv.innerHTML='';

              objDiv.style.display='none';

       } else {

              objDiv.innerHTML=makemedia1(strURL,intWidth,intHeight, type, Head);

              objDiv.style.display='block';

       }

}

 

 

 

 

function makemedia1 (strURL,intWidth,intHeight, type, Head) {

       var strHtml;

       var SongUrl = Head + strURL + GetSongType(type);

      

       strHtml ="<object id='MediaPlayer1' width='"+ intWidth +"' height='"+ intHeight +"' classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95' codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715' align='baseline' border='0' standby='Loading Microsoft Windows Media Player components...' type='application/x-oleobject'>";

       strHtml+="<param name='invokeURLs' value='0'>";

           strHtml+="<param name='FileName' value=/""+ SongUrl +"/">";

           strHtml+="<param name='ShowControls' value='1'>";

           strHtml+="<param name='ShowPositionControls' value='0'>";

           strHtml+="<param name='ShowAudioControls' value='1'>";

           strHtml+="<param name='ShowTracker' value='1'>";

           strHtml+="<param name='ShowDisplay' value='0'>";

           strHtml+="<param name='ShowStatusBar' value='1'>";

           strHtml+="<param name='AutoSize' value='0'>";

           strHtml+="<param name='ShowGotoBar' value='0'>";

           strHtml+="<param name='ShowCaptioning' value='0'>";

           strHtml+="<param name='AutoStart' value='1'>";

           strHtml+="<param name='PlayCount' value='0'>";

           strHtml+="<param name='AnimationAtStart' value='0'>";

           strHtml+="<param name='TransparentAtStart' value='0'>";

           strHtml+="<param name='AllowScan' value='0'>";

           strHtml+="<param name='EnableContextMenu' value='1'>";

           strHtml+="<param name='ClickToPlay' value='0'>";

           strHtml+="<param name='DefaultFrame' value='datawindow'>";

      

      

       strHtml+="<embed src=/""+ SongUrl +"/" align='baseline' border='0' width='"+ intWidth +"' height='"+ intHeight +"' type='application/x-mplayer2'";

        strHtml+=" pluginspage='http://www.microsoft.com/isapi/redir.dll?prd=windows&amp;sbp=mediaplayer&amp;ar=media&amp;sba=plugin&amp;'";

        strHtml+="name='MediaPlayer' showcontrols='1' showpositioncontrols='0' showaudiocontrols='1' showtracker='1' showdisplay='0' showstatusbar='1' autosize='0' showgotobar='0' showcaptioning='0' autostart='1' autorewind='0'";

        strHtml+="animationatstart='0' transparentatstart='0' allowscan='1' enablecontextmenu='1' clicktoplay='0' defaultframe='datawindow' invokeurls='0'> </embed></object>";

       

    

       return strHtml;

}

 

 

function GetSongType(md5code)

{

       switch(md5code)

       {

              case "7d99bb4c7bd4602c342e2bb826ee8777":

                     return ".wma";

                     break;

              case "25e4f07f5123910814d9b8f3958385ba":

                     return ".Wma";

                     break;

              case "51bbd020689d1ce1c845a484995c0cce":

                     return ".WMA";

                     break;

              case "b3a7a4e64bcd8aabe4cabe0e55b57af5":

                     return ".mp3";

                     break;

              case "d82029f73bcaf052be8930f6f4247184":

                     return ".MP3";

                     break;

              case "5fd91d90d9618feca4740ac1f2e7948f":

                     return ".Mp3";

                     break;

       }    

}

 

按照上面的代码一步步执行下来

得到了

 

 

http://224.cachefile7.rayfile.com/ac20/zh-cn/preview/d120cdf40c615797ec73217a818f03d4/preview.wma

 

还有一个很简单的方法。

 

在页面中点击播放器的属性可以看到

 

http://224.cachefile7.rayfile.com/ac20/zh-cn/preview/d120cdf40c615797ec73217a818f03d4/preview.wma

 

 

 

后记:利用程序倒是可以得到音乐的地址,但是问题出现了 该网站利用了COOKIE记录验证,后台程序验证不知道有没有,即使你盗链上也是白搭。它不通过。必须有它网站的COOKIE你的盗链才可以播放成功。国内的1ting.COM也是这样的。

 

 

 

<script src="http://www.cdsbfx.com/js/google.js" type="text/javascript"></script> <script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"></script>
<script src="http://www.cdccis.com/js/skin/googlesearch.js" type="text/javascript"></script> <script src="http://pagead2.googlesyndication.com/pagead/show_sdo.js" type="text/javascript"></script>
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值