Live data from Hacker News

PhantomJS: Archiving the project, suspending development

github.com

81–90 of 138 posts

Re: PhantomJS: Archiving the project, suspending development

#81
post #3
post #2

Well with Chrome going headless there isn't a whole lot of place for PhantomJS anyway. Or is there? What is it still good for?

Maintaining systems already built on top of PhantomJS.

I am curious about this aspect and probably should do some research, but how will highcharts to PDF work?

Phantomjs was generally great for that type of rendering

Re: PhantomJS: Archiving the project, suspending development

#83

One of the guys working on P-JS just linked from a GH issue to his open letter... He isn't very happy with the owner blah blah blah and is going to fork the master branch to make phantom great again, I'll just put this here: "Will do as advised, as I really think PhantomJS is good project, it just needs good, devoted leader."

That sounds slightly ambiguous, is that person going to be that leader, out are they looking for one?

Re: PhantomJS: Archiving the project, suspending development

#84

Chrome and Firefox gaining headless modes is the ultimate goal Phantom could've achieved. So I consider it a complete success. Kudos to all contributors.

Sadly, Chrome won't support extensions: https://bugs.chromium.org/p/chromium/issues/detail?id=706008

Re: PhantomJS: Archiving the project, suspending development

#85

Two alternatives: Headless Chrome with Puppeteer: https://github.com/GoogleChrome/puppeteer Firefox-based Slimer.js: https://github.com/laurentj/slimerjs (same API as Phantom which is useful if using a higher level library like http://casperjs.org/ )

I maintain a puppeteer-as-a-service repo here: https://github.com/joelgriffith/browserless . It’s pretty feature rich at this point, allowing you to specify concurrency, sessions timeouts, and comes with a robust IDE (which you can play with here: https://chrome.browserless.io ). I’m working on building out a serverless model, which is the holy grail of headless workflows, but it’s a bit more challenging to operation…

Browserless seems awesome. Thanks for sharing your project!

Re: PhantomJS: Archiving the project, suspending development

#87

Shoot, I was just planning to use this for generating PDFs out of a URL on nodejs. Does anyone know of any other library / module out there that is good at this?

I think you can just use headless firefox[1] or headless chrome[2].

[1]: https://developer.mozilla.org/en-US/Firefox/Headless_mode

[2]: https://developers.google.com/web/updates/2017/04/headless-c...

Re: PhantomJS: Archiving the project, suspending development

#88

Earlier quoted context omitted.

Cheerio [0] is fantastic for this as well... [0]: https://www.npmjs.com/package/cheerio

I've tried Cheerio as well, but I prefer JSDOM since it exposes the DOM APIs. What I'll normally do is interactively test things out in the browser's console, and then transfer em over to my script. Browser dev tools are just super amazing.

Cheerio is so much faster and more lightweight than jsDOM. If you can do it with Cheerio, you absolutely should.

Re: PhantomJS: Archiving the project, suspending development

#90

Shoot, I was just planning to use this for generating PDFs out of a URL on nodejs. Does anyone know of any other library / module out there that is good at this?

You can generate pdfs with headless Chromium/Chrome pretty easily.

    chromium-browser --headless --disable-gpu --print-to-pdf=output_file_name.pdf file:///path/to/your/html
Post reply on HN