News for hackers. Stuff that matters.
Re:PhantomJS: Archiving the project, suspending development by emilsedgh on Saturday March 03, 2018 @08:05PM (#16512705)
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.

Re:PhantomJS: Archiving the project, suspending development by tyingq on Saturday March 03, 2018 @09:17PM (#16512894)
I feel the same. No failure here. It served its purpose very well, while it was needed. It’s retiring while it’s still better than it’s replacement in a few areas...like proxy support.
Re:PhantomJS: Archiving the project, suspending development by overdrivetg on Sunday March 04, 2018 @04:12PM (#16516773)
This is the main blocker for me right now for sure.
Re:PhantomJS: Archiving the project, suspending development by BinaryIdiot on Saturday March 03, 2018 @09:28PM (#16512936)
I really hope Microsoft offers a headless IE / Edge at some point. It would be amazing to be able to use all 3 major browsers like this. Heck, get Safari in there too (though I feel like it should be doable with WebKit already).
Re:PhantomJS: Archiving the project, suspending development by poizan42 on Sunday March 04, 2018 @01:21AM (#16513546)
Huh? They have had the WebBrowser ActiveX control since IE3 I think. That works as headless as you get on Windows.
Re:PhantomJS: Archiving the project, suspending development by BinaryIdiot on Sunday March 04, 2018 @06:25AM (#16514312)
Not quite. It's my understanding it's not as up to date or equivalent to the latest IE. When I tried looking around I just got a lot of confusing information about the control, how it applies (or doesn't) traditional IE hacks, etc.

Though I could be wrong but it didn't seem like an equivalent to headless chrome or firefox.

Re:PhantomJS: Archiving the project, suspending development by poizan42 on Sunday March 04, 2018 @08:15AM (#16514594)
That is not correct, it just runs in compatibility mode by default, see https://blogs.msdn.microsoft.com/patricka/2015/01/12/control...
Re:PhantomJS: Archiving the project, suspending development by luisrudge on Sunday March 04, 2018 @12:55AM (#16513487)
they have webdriver support. Is that enough? I'm not sure what's the difference between headless and webdriver (if any) https://blogs.windows.com/msedgedev/2015/07/23/bringing-auto...
Re:PhantomJS: Archiving the project, suspending development by alxlu on Sunday March 04, 2018 @03:09AM (#16513734)
Running Edge with webdriver still includes the GUI.
Re:PhantomJS: Archiving the project, suspending development by tnolet on Saturday March 03, 2018 @09:27PM (#16512932)
Agree 100%. Headless & programmable browsing is a hard nut to crack. PhantomJs paved the way.
Re:PhantomJS: Archiving the project, suspending development by kodablah on Sunday March 04, 2018 @10:30AM (#16514990)
Sadly, Chrome won't support extensions: https://bugs.chromium.org/p/chromium/issues/detail?id=706008
Re:PhantomJS: Archiving the project, suspending development by rnnr on Sunday March 04, 2018 @01:47PM (#16515895)
but... i think you can attach it to an existing chrome with remote debugging enabled, so not that big a deal!
Re:PhantomJS: Archiving the project, suspending development by kodablah on Sunday March 04, 2018 @06:47PM (#16517565)
Sure can, I've done it with puppeteer. Just can't enable headless.
Re:PhantomJS: Archiving the project, suspending development by ricardobeat on Sunday March 04, 2018 @02:33PM (#16516151)
The main advantage of PhantomJS at this point is the way it's built and distributed as a single binary, unlike Chrome. Much easier to maintain.
Re:PhantomJS: Archiving the project, suspending development by ris on Sunday March 04, 2018 @03:11PM (#16516399)
Correction: much easier to maintain irresponsibly. That binary you just downloaded and stuck somewhere some time ago - when was the last time it was updated? What about all of its underlying bundled static libraries? How certain were you ever of their up-to-dateness? Did you ever check what version of zlib it was using?

Distributions attempting to package phantomjs properly had one hell of a time trying to reproduce its builds reliably. Most gave up.

Distribution from author as binaries is a whole bundle of fail from the get-go.

Re:PhantomJS: Archiving the project, suspending development by fareesh on Sunday March 04, 2018 @07:36AM (#16514485)
Does headless chrome do PDF generation? That's the only thing I'm using phantom for at the moment.
Re:PhantomJS: Archiving the project, suspending development by madeofpalk on Sunday March 04, 2018 @07:42AM (#16514500)
Yes.

In fact, there's a command line switch for it https://developers.google.com/web/updates/2017/04/headless-c...

The Chrome team also make Puppeteer, a node's library for interfacing with headless chrome, and has methods for making PDFs as well https://github.com/GoogleChrome/puppeteer

Re:PhantomJS: Archiving the project, suspending development by dewey on Sunday March 04, 2018 @07:42AM (#16514501)
Re:PhantomJS: Archiving the project, suspending development by itslennysfault on Sunday March 04, 2018 @07:44AM (#16514508)
Yes.

It's really easy to do using [puppeteer](https://github.com/GoogleChrome/puppeteer). The 2nd or 3rd example is PDF.

Re:PhantomJS: Archiving the project, suspending development by jonaswi on Sunday March 04, 2018 @02:03PM (#16515977)
I just recently switched from using PhantomJS to pupeteer for PDF generation in a production application. Works like a charm and has a very clean API.
Re:PhantomJS: Archiving the project, suspending development by fareesh on Sunday March 04, 2018 @02:09PM (#16516009)
Thanks that looks like a very clean library. Will switch to this.