比如说我知道这样一个地址:
http//xxx.xxx.xxx/torrents/2005/10/06/772000171e7bbf95f8a649eb18f390092aa09f44_1128600236.torrent请问怎么程序去抓取呢?

解决方案 »

  1.   

    String BB = "<tr align=\"center\" class=\"even\"><td nowrap>10-08 20:10</td><td align=\"left\" nowrap><a href =\"?noseed=&&uploadtype=&&category=%A1%F6%D3%B0%CA%D3\"><font color='navy'>■影视</font></a></td><td align=\"left\" style=\"word-break:break-all\"><a href=\"torrents/2005/10/08/cdabf095ca0b9dbbbcaa7893f86750d729109e35_1128773445.torrent\" target=_blank>【精灵工作室】吕克贝松经典〖这个杀手不太冷〗[DVD/RMVB/英语/中英字幕]</a>&nbsp;<a href=\"http://www.167bt.com/bbs/viewthread.php?tid=92269&extra=page%3D1\" target=_blank>[讨论]</a></td><td align=\"right\" nowrap>463 MB</td><td  align=\"right\"  nowrap><b><font color=\"green\">48</font></b></td><td  align=\"right\"  nowrap><font color=\"black\">117</font></td><td align=\"center\" nowrap>11:19</td><td align=\"left\" nowrap><a href=\"http://www3.eastgame.net/profile.php?action=show&username=yicooh\" target=_blank>yicooh</a></td><td  align=\"center\" nowrap><font color=\"red\"><a href=\"http://www3.eastgame.net/read.php?tid=711516&page=e&fpage=1#a\" target=_blank>[举报]</a></font></td></tr>";从这个字符串中我要分析出:
    名称:【精灵工作室】吕克贝松经典〖这个杀手不太冷〗[DVD/RMVB/英语/中英字幕]
    地址:torrents/2005/10/08/cdabf095ca0b9dbbbcaa7893f86750d729109e35_1128773445.torrent
    大小:463 MB看看大家的方法,我分析出来,感觉方法很愚蠢.
    把页面上的代码一行一行的分析.
    用正则和对字符的substring等操作来获得.看看大家有什么好的方法.