Lurker News

Comments (70) 33 threads

Earlier comments
dutzi_1 reply#
Nice work!

Can you please provide an example for using `evaluate()` to get the page's content?
I tried this, but didn't get anything:

  new Nightmare()
    .goto('http://yahoo.com')
    .evaluate(function (page) { return this.content; }, function (res) {console.log(res);})
    .run();
andrey-p#
And, if you want a very very thin wrapper around Phantom (essentially a phantom script manager), feel free to have a look at this instead:

https://github.com/andrey-p/ectoplasm-js
Pardon the shameless plug.

wearhere1 reply#
Wow, thanks for the info! What an amazing story, and photos.
AnkhMorporkian#
It really is. Hurley is one of my favorite photographers of all time; his stuff just captured the essence of the time so well!
SnowProblem1 reply#
As someone entirely unfamiliar with both Nightmare and PhantomJS, what is the typical use case? It isn't obvious to me from the examples or FAQs. Why prefer these over something like Selenium?
elwell#
I assume because it's more light-weight and hence suited better for certain needs.

Load more comments