Re:Serverless PhantomJS with IronWorker
by malandrew on Wednesday July 11, 2012 @03:05PM
(#4230839)
What about a CasperJs version as well?
[ Parent
| on HN ]
Here ya go: https://github.com/iron-io/iron_worker_examples/tree/master/...
I just included the whole CasperJS library with the worker package and followed the getting started example from the Casper site.
Haven't worked with Casper yet but I'd be happy to build a similar example in our examples repo using Casper.
Additionally you could install it using the build() command in the .worker file very similar to the way PhantomJS is installed.
Since CasperJS is just a set of JavaScript files that run on PhantomJS, you shouldn't have any problems running it.
Re:Serverless PhantomJS with IronWorker
by heretohelp on Wednesday July 11, 2012 @03:31PM
(#4230990)
casperjs is pretty unreliable, I wouldn't bother. Even for relatively trivial frontend testing we were using it for, it would crash ~50% of the time on Linux and Mac.
PhantomJS 1.6 is massively unstable. Downgrade to 1.5. I'm really surprised this hasn't been fixed yet - there are bugs in their tracker related to it.
Re:Serverless PhantomJS with IronWorker
by heretohelp on Thursday July 12, 2012 @01:19PM
(#4235533)
That appears to have fixed it.
I'm happy to learn that (casperjs author here)
Really? I actually found it to be quite stable for a scrape project I had; it was rather trivial too though.
My only gripe is with the cryptic error messages I was receiving when executing JavaScript in a casper browser. But that could have just been my ignorance and unfamiliarity.