【问题标题】:Convert webarchive to html将 webarchive 转换为 html
【发布时间】:2012-11-08 07:48:33
【问题描述】:

我设法将一个复杂网站的行为收集到一个网络档案中。此后,我想将该 webarchive 转换为一组 html 嵌套目录。然而,当我使用 Waf 和在 Apple 商店购买的商业软件进行操作时,我得到的只是嵌套目录,底部有 html 页面,没有图像,也没有 css 和工作链接。 如果您有兴趣,网络存档文档位于:

http://www.miafoto.it/it/GiroMilano.webarchive

而提取的弱积在:

http://www.miafoto.it/it/Giromilano/Pagine/default.aspx

和上面的空目录。 In addition to the different look, the webarchive displays the same behavior as the official web site - when a listbox vales is selected and then the button pushed - while the extracted version produces a page with no contents by loading itself rather than the official page. 如您所见,网络存档超过 1MB,而提取文件仅略高于 1 KB。

这有什么问题?我如何才能执行如此看似微不足道的业务并获得有用的结果?

谢谢,

【问题讨论】:

  • 我在atm.it/it/Giromilano/Pagine/default.aspx 上发现了这个网站,它创建了带有嵌入和预设 Javascript 代码的 axd 类型文件。令我震惊的是 Safari 如何能够在其网络档案中压缩所有这些内容,而这只能与无法利用这种魔力的惊讶相媲美。此外,我尝试通过 WinHTTPTrack 下载完整网站的副本,但该文件显示为 .html 文件而不是 .aspx。一直专注于 Mac 和 linux 我必须说我不能更困惑。有人可以解释一下吗?谢谢,法布里齐奥

标签: html extract webarchive


【解决方案1】:
textutil -convert html example.webarchive
  • 小心 - 带有文件的 html 与 webarchive 在同一文件夹中创建!
  • 此外,我必须使用文本编辑器打开 .html 并替换“file:///image.tiff”链接(将“file:///”替换为“”),以便它们指向相对路径。
  • 此外,并非所有浏览器都显示 .tiff 图像。

谁知道我们有Stack Overflow wiki

【讨论】:

    【解决方案2】:

    我通过查找页面中提交的所有参数并将它们也提交到我的脚本中来解决问题,忽略了网络存档。

    【讨论】:

      【解决方案3】:

      为了在 mac 上保存 HTML 页面,我使用 chrome。下载并安装它并将您的页面保存为 HTML。 Safari 会使用 webarchiveformat 保存网页,对我来说,这很难处理。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2014-08-28
        • 2021-02-15
        • 2014-03-30
        • 2016-12-19
        • 2011-03-31
        • 2011-01-12
        • 2012-05-15
        • 2011-09-02
        相关资源
        最近更新 更多