本帖最后由 qq123123 于 2011-5-21 15:08 编辑
我想下载MTV歌曲!
下面这个是网页代码,精简一点了
我要得到的数据是:网址和歌曲名
/ktv/4/mtv34824.htm 有没有人告诉你
#include <Array.au3>
$str=FileRead("网页文件.txt")
Local $Test = StringRegExp($str, '\d\A', 3)
If Not @Error Then MsgBox(0, '匹配数量: ' & UBound($Test), '其中[1]元素为: ' & $Test[1])
_ArrayDisplay($Test, UBound($Test)) <tr>
<td width="224">
1. <a href='/ktv/4/mtv34824.htm'>有没有人告诉你</a>
</td>
<td width="224">
2. <a href='/ktv/8/mtv70878.htm'>陈楚生-山楂花</a>
</td>
<td width="224">
3. <a href='/ktv/3/mtv20522.htm'>姑娘</a>
</td>
<td width="225">
4. <a href='/ktv/3/mtv21511.htm'>陈楚生-原来的我</a>
</td>
</tr>
<tr>
<td width="224">
5. <a href='/ktv/7/mtv69810.htm'>且听风吟</a>
</td>
<td width="224">
6. <a href='/ktv/8/mtv70865.htm'>陈楚生-风起时想你</a>
</td>
<td width="224">
7. <a href='/ktv/8/mtv73118.htm'>山楂花</a>
</td>
<td width="225">
8. <a href='/ktv/4/mtv37228.htm'>陈楚生-与你同在</a>
</td>
</tr>
<tr>
<td width="224">
9. <a href='/ktv/7/mtv63986.htm'>有没有人告诉你</a>
</td>
<td width="224">
10. <a href='/ktv/5/mtv40411.htm'>陈楚生-原来我一直都不孤单</a>
</td>
<td width="224">
11. <a href='/ktv/6/mtv53558.htm'>与你同在</a>
</td>
<td width="225">
12. <a href='/ktv/7/mtv69125.htm'>陈楚生-奇幻之旅</a>
</td>
</tr>
<tr>
<td width="224">
13. <a href='/ktv/8/mtv70896.htm'>山楂花</a>
</td>
<td width="224">
</td>
<td width="224">
</td>
<td width="225">
</td>
</tr>
</table></td>
</tr>
<tr>
<td align="center" > </td>
</tr>
<tr>
<td height="50" align="center" bgcolor="#FFF0F0" >
<h2>《MTV下载精灵》为您提供MTV:陈楚生|在线mtv|陈楚生 mtv在线播放|mtv在线观看</h2>
以下视频由精灵搜索第三方网站获得,并非本站MTV,仅供参考,本站MTV质量远好于FLV格式,部分MTV暂无在线播放,如有错误请多包涵!<br>
<a href=http://video.baidu.com/v?word=陈楚生 target="_blank">陈楚生_MTV在线欣赏</a>_百度提供 | <a href=http://www.google.com.hk/search?q=陈楚生&tbs=vid%3A1 target="_blank">陈楚生_MTV在线欣赏</a>_Google提供
</td>
</tr>
<tr>
<td align="center" ><table width="920" border="1" cellpadding="1" cellspacing="1" bordercolor="#519900">
<tr>
<td width="224">
1. <a href='/play/3/mtv29172.htm'>陈楚生-自由幻想</a>
</td>
<td width="224">
2. <a href='/play/3/mtv29078.htm'>凤凰花又开</a>
</td>
<td width="224">
3. <a href='/play/3/mtv28978.htm'>陈楚生-这一刻</a>
</td>
<td width="225">
4. <a href='/play/3/mtv28616.htm'>原来我一直都不孤单</a>
</td>
</tr>
<tr>
<td width="224">
5. <a href='/play/3/mtv28565.htm'>陈楚生-一个人唱情歌</a>
</td>
<td width="224">
6. <a href='/play/3/mtv28528.htm'>与你同在</a>
</td>
<td width="224">
7. <a href='/play/3/mtv27944.htm'>陈楚生-映山红</a>
</td>
<td width="225">
8. <a href='/play/3/mtv27614.htm'>且听风吟</a>
</td>
</tr>
<tr>
<td width="224">
9. <a href='/play/3/mtv27525.htm'>陈楚生-映山红</a>
</td>
<td width="224">
10. <a href='/play/3/mtv27303.htm'>印象大海</a>
</td>
<td width="224">
11. <a href='/play/3/mtv27146.htm'>陈楚生-原来我一直都不孤单</a>
</td>
<td width="225">
12. <a href='/play/3/mtv26764.htm'>姑娘</a>
</td>
</tr>
<tr>
<td width="224">
13. <a href='/play/3/mtv26232.htm'>陈楚生-原来的我</a>
</td>
<td width="224">
14. <a href='/play/3/mtv24835.htm'>一个人的冬天</a>
</td>
<td width="224">
15. <a href='/play/3/mtv23439.htm'>陈楚生-有没有人告诉你</a>
</td>
<td width="225">
16. <a href='/play/3/mtv23113.htm'>为爱高歌</a>
</td>
</tr>
<tr>
<td width="224">
17. <a href='/play/3/mtv22094.htm'>陈楚生-与你同在</a>
</td>
<td width="224">
18. <a href='/play/3/mtv21882.htm'>姑娘</a>
</td>
<td width="224">
19. <a href='/play/3/mtv21550.htm'>陈楚生-原来的我</a>
</td>
<td width="225">
20. <a href='/play/2/mtv18551.htm'>与你同在</a>
</td>
</tr>
<tr>
<td width="224">
21. <a href='/play/2/mtv18361.htm'>陈楚生-姑娘</a>
</td>
<td width="224">
22. <a href='/play/2/mtv17871.htm'>原来的我</a>
</td>
<td width="224">
23. <a href='/play/2/mtv17298.htm'>陈楚生-印象大海</a>
</td>
<td width="225">
24. <a href='/play/2/mtv16931.htm'>一个人的冬天</a>
</td>
</tr>
<tr>
<td width="224">
25. <a href='/play/2/mtv14909.htm'>陈楚生-有没有人告诉你</a>
</td>
<td width="224">
26. <a href='/play/2/mtv13598.htm'>一个人唱情歌</a>
</td>
<td width="224">
27. <a href='/play/2/mtv11804.htm'>陈楚生-原来的我</a>
</td>
<td width="225">
28. <a href='/play/2/mtv11152.htm'>自由幻想</a>
</td>
</tr>
<tr>
<td width="224">
29. <a href='/play/2/mtv10198.htm'>陈楚生-姑娘</a>
</td>
<td width="224">
30. <a href='/play/1/mtv6987.htm'>姑娘</a>
</td>
<td width="224">
31. <a href='/play/1/mtv5505.htm'>陈楚生-原来的我</a>
</td>
<td width="225">
32. <a href='/play/1/mtv3864.htm'>有没有人告诉你</a>
</td>
</tr>
<tr>
<td width="224">
33. <a href='/play/1/mtv3697.htm'>陈楚生-一个人的冬天</a>
</td>
<td width="224">
34. <a href='/play/1/mtv2637.htm'>原来的我</a>
</td>
<td width="224">
35. <a href='/play/1/mtv783.htm'>陈楚生-有没有人告诉你</a>
</td>
<td width="225">
36. <a href='/play/1/mtv597.htm'>一个人的冬天</a>
</td>
</tr>
</table></td>
</tr>
|