Hi Simon, Thanks for submitting this proposal, using PhantomJS was also the first thing that popped into my mind for this feature. It's also the preferred way to run headless QUnit tests.
For me this would be a +1. The only thing I noticed before is that it's licensed [1] under the BSD license. I couldn't find it in the list of approved 3th Party licenses [2], so I wondered whether it would be ok. - Christian [1] https://github.com/ariya/phantomjs/blob/master/LICENSE.BSD [2] https://confluence.sakaiproject.org/display/LIC/3rd+Party+Licenses+and+Software PS: If I recall correctly we had to develop a service during our internship that would take screenshots of certain websites. Seems like only a couple of lines of code with PhantomJS: http://skookum.com/blog/dynamic-screenshots-on-the-server-with-phantomjs/ On Aug 2, 2012, at 11:03 AM, Simon Gaeremynck wrote: > Hi all, > > I've been working on KERN-3084 [1] which tries to add support for Google's > AJAX crawler [2]. > When Google notices you're using AJAX/Javascript to display content on your > page it sends a request to the server asking for a completely rendered page. > The idea is that we then run the page trough a headless browser and sent that > response back to Google. > > I've created an implementation [3] [4] that does this but I'd like some > feedback before I send a PR. > This commit would, much like the preview processor, bring in yet another > dependency. I'm using PhantomJS as it fires up a headless WebKit browser and > exposes a nice little nodejs api that you can (ab)use. > I tried using the same toolset as the previewprocessor (wkhtmltopdf) but that > just seems to generate PDF's and doesn't allow access to the generated DOM? > (PhantomJS supports PDF creation but it's nowhere near as good as wkhtmltopdf > though.) > > > What's the feeling about this? Does anyone have a recommendation for a better > tool/approach? > > Regards, > > Simon > > > > [1] https://jira.sakaiproject.org/browse/KERN-3084 > [2] > https://developers.google.com/webmasters/ajax-crawling/docs/getting-started > [3] > https://github.com/simong/nakamura/commit/83212d6fe814ee32be7dd3d9cd771c40dff6f69f > [4] > https://confluence.sakaiproject.org/display/KERNDOC/KERN-3084+Making+OAE+indexable+by+Google > [5] http://phantomjs.org/ > _______________________________________________ > oae-dev mailing list > [email protected] > http://collab.sakaiproject.org/mailman/listinfo/oae-dev
_______________________________________________ oae-dev mailing list [email protected] http://collab.sakaiproject.org/mailman/listinfo/oae-dev
