如何在几百个文件(txt或html)中简便地提取出以"http://"开头,以".swf"结尾的所有字段?(为了下载链接)

想下载一个网站的很多视频,都是swf格式的,每个都会在一个网页中打开,单个下载太麻烦,但又发现那些flash的地址又没有规律,所以没法很简单的创建批量下载任务。
于是先在视频目录页用迅雷下载了那二百来个视频的链接的网页,都是html格式的,用记事本打开会发现每个里面都有一个.swf结尾的地址,这就是视频的地址了,但几百个文件怎样一次性地提取出那些地址?或者提供一个比较简便的方法??请高人指导。。。。。
成后追加分^^^

下载全部视频2007年04月25日 星期三 下午 09:03经常去网上看一些视频,并且一般都是下载到电脑看。好多视频都是几分种之短,所以下载一个全套的视频(如关于flash的)常常动辄上百个到几百个,并且那些视频都是用迅雷感应出来下载的,那些视频的真实地址之间没有什么联系,所以不能用迅雷建立批量任务下载。

(如这个地址中的视频http://video.banma.com/pscs2/

以前常常是一个一个的打开,然后迅雷提示后再点击下载,上百个或几百个下载下来是非常麻烦且累的。现在发现了一个简便的方法,能一次性地下载了。

1.打开全部视频页,先用迅雷下载全部链接
2.筛选有用的文件(就是含有想要视频页的网页)
3.用合并方法合并所有文件(这里可以用专用的一些软件,也可用一些别的方法,如在所有文件目录下建一个文本文档,键入“COPY *.(文件名后缀) D:\ALL.TXT D:\ALL.TXT”,然后将文本文档的扩展名改为.bat,双击运行,即可在D盘根目录下生成一个名为ALL.TXT的合并文件)
4.用IE打开合并的文件
5.用迅雷下载全部链接,并筛选

这里有个缺点就是,不能给下载的文件重命名。

改进:

1.2.3.同上

4.将合并文件内容复制到Word文档中,模糊并全部查找如“http://*.swf”字段

5.将查找内容复制到博客中,自动生成链接。这时可以一个一个地下,也可以用迅雷下载全部链接的方法一起下。

示例:

(这是一个做好的)

Flash ActionScrip视频教程
http://dxdata.dudu.com/video/flashaction/xhli2310536.swf
http://dxdata.dudu.com/video/flashaction/xhli1856476.swf
http://dxdata.dudu.com/video/flashaction/xhli6581973.swf
http://dxdata.dudu.com/video/flashaction/xhli6885797.swf
http://dxdata.dudu.com/video/flashaction/xhli5029520.swf
http://dxdata.dudu.com/video/flashaction/xhli3254145.swf
http://dxdata.dudu.com/video/flashaction/xhli6547647.swf
http://dxdata.dudu.com/video/flashaction/xhli8536648.swf
http://dxdata.dudu.com/video/flashaction/xhli5225436.swf
http://dxdata.dudu.com/video/flashaction/xhli5811539.swf
http://dxdata.dudu.com/video/flashaction/xhli3354833.swf
http://dxdata.dudu.com/video/flashaction/xhli724952.swf
http://dxdata.dudu.com/video/flashaction/xhli880416.swf
http://dxdata.dudu.com/video/flashaction/xhli6808829.swf
http://dxdata.dudu.com/video/flashaction/xhli3296671.swf
http://dxdata.dudu.com/video/flashaction/xhli6671075.swf
http://dxdata.dudu.com/video/flashaction/xhli3105785.swf
http://dxdata.dudu.com/video/flashaction/xhli6457449.swf
http://dxdata.dudu.com/video/flashaction/xhli4369834.swf
http://dxdata.dudu.com/video/flashaction/xhli5157978.swf
http://dxdata.dudu.com/video/flashaction/xhli137752.swf
http://dxdata.dudu.com/video/flashaction/xhli8477391.swf
http://dxdata.dudu.com/video/flashaction/xhli7983775.swf
http://dxdata.dudu.com/video/flashaction/xhli956837.swf
http://dxdata.dudu.com/video/flashaction/xhli4761665.swf
http://dxdata.dudu.com/video/flashaction/xhli382319.swf
http://dxdata.dudu.com/video/flashaction/xhli9591004.swf
http://dxdata.dudu.com/video/flashaction/xhli4316701.swf
http://dxdata.dudu.com/video/flashaction/xhli5451196.swf
http://dxdata.dudu.com/video/flashaction/xhli5326672.swf
http://dxdata.dudu.com/video/flashaction/xhli7569751.swf
http://dxdata.dudu.com/video/flashaction/xhli9012967.swf
http://dxdata.dudu.com/video/flashaction/xhli5981743.swf
http://dxdata.dudu.com/video/flashaction/xhli847052.swf
http://dxdata.dudu.com/video/flashaction/xhli6884901.swf
http://dxdata.dudu.com/video/flashaction/xhli8700727.swf
http://dxdata.dudu.com/video/flashaction/xhli597456.swf
http://dxdata.dudu.com/video/flashaction/xhli218854.swf
http://dxdata.dudu.com/video/flashaction/xhli5879960.swf
http://dxdata.dudu.com/video/flashaction/xhli142981.swf
http://dxdata.dudu.com/video/flashaction/xhli3748723.swf
http://dxdata.dudu.com/video/flashaction/xhli7619913.swf
http://dxdata.dudu.com/video/flashaction/xhli1941096.swf
http://dxdata.dudu.com/video/flashaction/xhli8817600.swf
http://dxdata.dudu.com/video/flashaction/xhli5398478.swf
http://dxdata.dudu.com/video/flashaction/xhli5529127.swf
http://dxdata.dudu.com/video/flashaction/xhli7264051.swf
http://dxdata.dudu.com/video/flashaction/xhli7370864.swf
http://dxdata.dudu.com/video/flashaction/xhli7673593.swf
http://dxdata.dudu.com/video/flashaction/xhli8634913.swf
http://dxdata.dudu.com/video/flashaction/xhli5750954.swf
http://dxdata.dudu.com/video/flashaction/xhli5055298.swf
http://dxdata.dudu.com/video/flashaction/xhli6443871.swf
http://dxdata.dudu.com/video/flashaction/xhli2901321.swf
http://dxdata.dudu.com/video/flashaction/xhli5251213.swf
http://dxdata.dudu.com/video/flashaction/xhli694211.swf
http://dxdata.dudu.com/video/flashaction/xhli8971968.swf
http://dxdata.dudu.com/video/flashaction/xhli9679210.swf
http://dxdata.dudu.com/video/flashaction/xhli213277.swf
http://dxdata.dudu.com/video/flashaction/xhli9234246.swf
http://dxdata.dudu.com/video/flashaction/xhli4040845.swf
http://dxdata.dudu.com/video/flashaction/xhli6965256.swf
http://dxdata.dudu.com/video/flashaction/xhli6159400.swf
http://dxdata.dudu.com/video/flashaction/xhli3102266.swf
http://dxdata.dudu.com/video/flashaction/xhli9617878.swf
http://dxdata.dudu.com/video/flashaction/xhli4646303.swf
http://dxdata.dudu.com/video/flashaction/xhli9205497.swf
http://dxdata.dudu.com/video/flashaction/xhli134233.swf
http://dxdata.dudu.com/video/flashaction/xhli1637820.swf
http://dxdata.dudu.com/video/flashaction/xhli4308152.swf
http://dxdata.dudu.com/video/flashaction/xhli6920323.swf
http://dxdata.dudu.com/video/flashaction/xhli953318.swf
http://dxdata.dudu.com/video/flashaction/xhli3542748.swf
http://dxdata.dudu.com/video/flashaction/xhli1679914.swf
http://dxdata.dudu.com/video/flashaction/xhli9050033.swf
http://dxdata.dudu.com/video/flashaction/xhli4283885.swf
http://dxdata.dudu.com/video/flashaction/xhli8965960.swf
http://dxdata.dudu.com/video/flashaction/xhli8658749.swf
http://dxdata.dudu.com/video/flashaction/xhli4372987.swf
http://dxdata.dudu.com/video/flashaction/xhli1430866.swf
http://dxdata.dudu.com/video/flashaction/xhli4782530.swf
http://dxdata.dudu.com/video/flashaction/xhli2071745.swf
http://dxdata.dudu.com/video/flashaction/xhli3483059.swf
http://dxdata.dudu.com/video/flashaction/xhli8462833.swf
http://dxdata.dudu.com/video/flashaction/xhli3523510.swf
http://dxdata.dudu.com/video/flashaction/xhli6308856.swf
http://dxdata.dudu.com/video/flashaction/xhli5133910.swf
http://dxdata.dudu.com/video/flashaction/xhli8707400.swf
http://dxdata.dudu.com/video/flashaction/xhli1755239.swf
http://dxdata.dudu.com/video/flashaction/xhli3086746.swf
http://dxdata.dudu.com/video/flashaction/xhli7292916.swf
http://dxdata.dudu.com/video/flashaction/xhli2641782.swf
http://dxdata.dudu.com/video/flashaction/xhli1120485.swf
http://dxdata.dudu.com/video/flashaction/xhli372791.swf
http://dxdata.dudu.com/video/flashaction/xhli3239040.swf
http://dxdata.dudu.com/video/flashaction/xhli6509801.swf
http://dxdata.dudu.com/video/flashaction/xhli5775.swf
http://dxdata.dudu.com/video/flashaction/xhli4131043.swf
http://dxdata.dudu.com/video/flashaction/xhli4194235.swf
http://dxdata.dudu.com/video/flashaction/xhli2432089.swf
http://dxdata.dudu.com/video/flashaction/xhli8746756.swf
http://dxdata.dudu.com/video/flashaction/xhli7744985.swf
http://dxdata.dudu.com/video/flashaction/xhli4029259.swf
http://dxdata.dudu.com/video/flashaction/xhli4390150.swf
http://dxdata.dudu.com/video/flashaction/xhli1274853.swf
http://dxdata.dudu.com/video/flashaction/xhli5146043.swf
http://dxdata.dudu.com/video/flashaction/xhli6188266.swf
http://dxdata.dudu.com/video/flashaction/xhli7750014.swf
http://dxdata.dudu.com/video/flashaction/xhli6343730.swf
http://dxdata.dudu.com/video/flashaction/xhli4167013.swf
http://dxdata.dudu.com/video/flashaction/xhli4513164.swf
http://dxdata.dudu.com/video/flashaction/xhli4896995.swf
http://dxdata.dudu.com/video/flashaction/xhli4576555.swf
http://dxdata.dudu.com/video/flashaction/xhli5537875.swf
http://dxdata.dudu.com/video/flashaction/xhli9998123.swf
http://dxdata.dudu.com/video/flashaction/xhli1305794.swf
http://dxdata.dudu.com/video/flashaction/xhli3317536.swf
http://dxdata.dudu.com/video/flashaction/xhli9151816.swf
http://dxdata.dudu.com/video/flashaction/xhli1648974.swf
http://dxdata.dudu.com/video/flashaction/xhli1501709.swf
http://dxdata.dudu.com/video/flashaction/xhli4095422.swf

参考资料:http://hi.baidu.com/qhzh

温馨提示:答案为网友推荐,仅供参考
第1个回答  2007-04-26
试试迅雷,文件菜单,导入下载列表

首先,点击开始,选运行,输入cmd,然后切换到你保存html文件的文件夹下,就是使用几次cd命令就,如果不会再说,然后输入copy *.html url.txt
url.txt那里你可以随便命名,只要在迅雷里面导入的时候选择那个文件就可以了,注意迅雷里面导入的时候文件类型要选择全部文件
第2个回答  2007-04-26
用WebZip吧,可以按照你需要的模式往下抓整个网站。