[问题]获得百度mp3下载的地址
发表于 : 2008-08-15 14:27
网上有很多了,我想自己独立写一个出来,学习一下,但是,发现在获得的那个页面里面,没有明确的下载地址.
http://mp3.baidu.com/m?tn=baidump3&ct=1 ... 8%BA%D0%C7
比如这个地方
第一个地址.打开后是源代码是
大家是怎么样获得下载的地址的阿.
新人发问,许多地方不懂阿
http://mp3.baidu.com/m?tn=baidump3&ct=1 ... 8%BA%D0%C7
比如这个地方
第一个地址.打开后是源代码是
代码: 全选
<!--STATUS OK-->
<HTML><HEAD><TITLE> </TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<style type="text/css">
body{margin:0px;padding:0px;background-color:#f1f1f1;}
*{ font-family:Arial;}
#c{margin:0px auto;width:100%; font-size:12px;}
.li{font-size:14px;line-height:18px;float:left;list-style-type:none;font-weight:bold;}
.t{ margin:0px;padding:12px 40px 6px 40px;}
a.l, a.l:visited{font-weight: normal;color: #777777;font-size: 12px;}
#c td{font-weight:bold;}
#t{background-color:white;font-size:14px; line-height:30px; height:135px;}
*{ word-break:break-all;word-wrap:break-word;}
#txt{ color:#777777; line-height:16px;}
#txt a{ color:#777777;font-family:宋体;}
#adv{margin:3px auto;height:300px;width: 360px;}
#adv iframe{width:360px;height:300px}
#rAd{position:absolute; top:20px; right:17px;}
#rAd iframe{width:140px;height:30px}
#adTxt{height:18px;margin:8px 13px 0px 40px; text-align:right}
#adTxt iframe{width:200px;height:18px}
.clear{clear:both; height:0; font:0/0px;overflow:hidden;}
</style>
</head>
<body leftmargin=0 topmargin=0 vlink="#0033CC" link="#0033CC" onLoad="sa()">
<script>var img=new Image();img.src="/wd/mp3-sg.jpg?r="+Math.random();</script>
<noscript><img style="display:none" src="/wd/mp3-sg-nojs.jpg?r=1218781558" /></noscript>
<div id="c">
<div id="t">
<div style="padding:30px 0px 0px 40px;"><div id="rAd"></div>
歌曲名:<a id="urln" href="" onclick="sd(1);" target="_blank">北京欢迎你 ...</a><br>
<li class="li" style="margin-top:2px;">请点击此链接:</li>
<li class="li" style="margin-right:10px;"><a id="urla" href="" onclick="sd(2)" target="_blank"></a></li>
</div>
<div class="clear"> </div>
<div id="adTxt"></div>
<div class="clear"> </div>
</div>
<table class="t" width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><a class="l" title="根据用户指令,百度的搜索引擎系统会以非人工方式自动生成到第三方网页的链接。“百度”自身不存储、控制、编辑或修改被链接的第三方网页的信息。百度高度重视知识产权保护,并制定了旨在保护权利人的合法权益的措施和步骤,当权利人发现在百度生成的链接所指向的第三方网页内容侵犯其著作权时,请权利人向百度发出“权利通知”,百度将依法采取措施断开相关链接。">百度提示,请您阅读</a></td>
<td align="right"><a href="http://www.baidu.com/search/appcopyright.html" target="_blank" class="l">权利声明</a></td>
</tr>
</table>
<div style="text-align:center"><div id="adv"></div></div>
</div>
</BODY>
<script>
function G(A){return document.getElementById(A)}function sa(){var C=G("adv");if(C.innerHTML){var B=520,A=530;var E=(screen.width-B)/2,D=(screen.height-A)/2;moveTo(E,D);resizeTo(B,A)}}var song_1218781558;function sd(B){var A=new Image();A.src="/wd/sg-url.jpg?url="+song_1218781558+"&pos="+B+"&r="+Math.random()}function disUrl(){var F=1218781558,L=0;var I="1DD9://vv6yx2u.AA.w86/6yx2u/6EC2w/uEx28/MKKSKO/vy232701Eu7I27072.69N",J="1DD9://vv6yx2u.AA.w86/6yx2u/6EC2w/uEx28/MKKSKO/vy232701Eu7I27072.69N";var O="",E="";var K=[],H=[];var B=G("urln"),C=G("urla");function N(S,P,Q){for(var R=S;R<=P;R++){K[R]=R+Q;H[R+Q]=R}}N(0,9,48);N(10,35,55);N(36,61,61);var M=F%26;M=M?M:1;function A(Q){var P=Q.length;var S="";for(var R=0;R<P;R++){var T=Q.charAt(R);if(/[A-Za-z0-9]/.test(T)){var U=H[Q.charCodeAt(R)]-M;if(U<0){U+=62}T=String.fromCharCode(K[U])}S+=T}return S}O=A(I);E=(I==J)?O:A(J);B.href=C.href=song_1218781558=O;C.innerHTML=E;if(!L||F-L<3600){var D=new Image();D.src="/wd/mp3-sg-decode.jpg?url="+O+"&r="+Math.random()}}disUrl();
</script>
</HTML>
新人发问,许多地方不懂阿