你可以在Heroku上部署Watir来生成HTML快照吗?如果是这样,怎么样? [英] Can you deploy Watir on Heroku to generate HTML Snapshots? If so, how?

查看:146
本文介绍了你可以在Heroku上部署Watir来生成HTML快照吗?如果是这样,怎么样?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用 Watir 生成HTML快照,它位于 Heroku



Google的制作AJAX应用程序的完整规范可抓取建议使用< a href =http://htmlunit.sourceforge.net/ =nofollow noreferrer> HTMLUnit ...参见我如何创建HTML快照?点#3。




HtmlUnit是一个纯Java的无头浏览器模拟器;不幸的是jRuby不是Heroku的选项。所以HtmlUnit被排除(据我所知)。

如果您有兴趣,我还有一个关于HtmlUnit作为托管在Google App Engine上的服务的问题提出...
制作AJAX应用程序可抓取?如何在Google App Engine上构建一个简单的Web服务来生成HTML快照? ...仍然在等待一个经过验证的示例/答案。 解决方案

没有。你需要一个完整的桌面环境来运行watir。 Heroku不会为您提供这种服务。



您可以使用服务,例如Amazon EC2


I would like to generate HTML Snapshots using Watir, hosted on Heroku.

Google's Full Specification for Making AJAX Applications Crawlable suggests using HTMLUnit... see How do I create an HTML snapshot? point #3.

HtmlUnit is a Java-only headless browser emulator; and unfortunately jRuby is not an option on Heroku. So HtmlUnit is ruled out (to my knowledge).

If you're interested I have another question open regarding HtmlUnit as a service hosted on Google App Engine... Making AJAX Applications Crawlable? How to build a simple web service on Google App Engine to produce HTML Snapshots? ... still waiting on a proven example/answer.

解决方案

No. You need a full desktop environment to run watir. Heroku doesn't provide you with that.

You could use a service such as Amazon EC2

这篇关于你可以在Heroku上部署Watir来生成HTML快照吗?如果是这样,怎么样?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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