我可以刮闪光灯吗? [英] Can I scrape flash?

查看:24
本文介绍了我可以刮闪光灯吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想抓取一个网站,以编程方式收集页面上任何 Flash 元素中的任何外部链接.如果可能的话,我还想收集任何其他文本,但链接是重要的部分.这可能吗?最好使用免费软件库/服务来完成此任务,但如果没有,我该如何自己完成任务?是否可以获取源代码并从中提取?

I'd like to scrape a website to programmatically collect any external links within any flash elements on the page. I'd also like to collect any other text, if possible, but the links are the important part. Is this possible? A freeware library/service to accomplish this task would be preferable, but if none is, how can I accomplish the task on my own? Is it possible to get the source code and pull from that?

推荐答案

反编译 Flash 源代码可以让您看到 Flash 文件的 ActionScript 部分,我发现其中经常包含链接等信息.

Decompiling the Flash source would let you see the ActionScript part of the Flash file, which I've found to often contain info like links.

一个免费的反编译器是 Flare.它只是命令行,并且工作正常.它不会以较新的 Flash 格式(我认为是 > CS3)解码某些信息.它将所有 AS 转储到一个文件中.

A free decompiler is Flare. It's command line only, and works fine. It won't decode some of the info in newer Flash formats (>CS3 I think). It dumps all the AS into one file.

Sothink SWF Decompiler 是一个更复杂的商业程序.它适用于我尝试过的任何 Flash 文件,结果非常彻底且组织良好.它是基于 GUI 的,我不知道它是否很容易实现自动化.

Sothink SWF Decompiler is a more sophisticated commercial program. It will work fine with any Flash file I've tried and the results are quite thorough and well organized. it's GUI based and I don't know if it is easily automated.

使用 Flare,因为它是一个命令行工具,所以可以轻松编写脚本来获取 SWF,反编译它,grep 为http://",并记录结果.

With Flare, since it's a command line tool, one could easily write a script to obtain the SWF, decompile it, grep for 'http://', and log the results.

这篇关于我可以刮闪光灯吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆