Live data from Hacker News

Serverless PhantomJS with IronWorker

blog.iron.io

1–10 of 17 posts

Re: Serverless PhantomJS with IronWorker

#5

What about a CasperJs version as well?

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.

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.

Re: Serverless PhantomJS with IronWorker

#7
post #4

On the iron_worker upload crawler step: ERROR -- IronWorkerNG: Can't find src with path='node_modules'

Hey Dentldir, make sure you get everything from that phantom-nodejs folder.... Try a git clone https://github.com/iron-io/iron_worker_examples

and then follow the directions from /binary/phantom-nodejs

Re: Serverless PhantomJS with IronWorker

#8

What about a CasperJs version as well?

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.

Re: Serverless PhantomJS with IronWorker

#10

What about a CasperJs version as well?

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.

That's not CasperJS that's unreliable. That's PhantomJS crashing. Which version of PhantomJS where you using?
Post reply on HN