从 Flash 获取文本
我在使用 httpWebRequest httpWebResponse 时遇到问题。问题是我试图从一个网站获取数据,该网站包含有关闪存内某些文档和文章的大量文本。如何获取Flash中的文字? httpWebResponse 不包含页面中存在的全文?
I have a problem usint httpWebRequest httpWebResponse. The problem is am trying to fetch data from a website which contains loads of text regarding some documents and articles which are inside the flash. How can i get the text inside the flash? The httpWebResponse does not contain the full text present in the page?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您通过请求得到的是包含 Flash 应用程序的 HTML 页面,那么不会,您将不会获得 Flash 应用程序内的任何文本。
如果您的请求得到的是 flash 文件 (swf),那么您可以尝试解析 flash 文件以从中提取所有字符串,但这可能不是您正在寻找的内容,因为读取 flash 文件并不简单,您将获得的文本很可能被分为不同的随机排序部分,并与不重要的技术数据混合在一起。
.NET 本身并不读取 flash 文件,因此您必须找到一些库(我不知道有任何现有项目在做此类事情)或自己进行反编译。
If what you get with your request is the HTML page containing the flash app then no, you won't get any of the text inside the flash app.
If what you get with your request is the flash file (swf), then you may try to parse the flash file to extract all strings from it, however it may not be what you are looking for as reading a flash file is not trivial, and the text you will get will most likely be divided in different randomly ordered pieces, mixed up with unsignificant technical data.
.NET does not natively read flash files so you'll have to find some library (I'm not aware of any existing project doing that kind of stuff) or do the decompiling by yourself.