Live data from Hacker News

PhantomJS: Archiving the project, suspending development

github.com

101–110 of 138 posts

Re: PhantomJS: Archiving the project, suspending development

#101

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

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

#103
post #67

Earlier quoted context omitted.

Does headless chrome do PDF generation? That's the only thing I'm using phantom for at the moment.

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

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

#104
post #94

Timeline of what lead to this, from what I could gather: • phantomjs is 7 years old, @pixiuPL has been contributing for about 2 months • @ariya didn't respond to his requests for owner level permissions • @pixiuPL published an open letter to the main page of phantomjs.org https://github.com/ariya/phantomjs/issues/15345 • the stress leads @ariya to close the repo. • @pixiuPL intends to continue development on a fork T…

I don't know man, but look at @pixiuPL's commits https://github.com/ariya/phantomjs/commits?author=pixiuPL Especially his own commits (non-merge commits)

I think its probably best for @pixiuPL to move on, have a look at how his actions/comments might be perceived by both the community and potential users, and treat this as a learning experience.

Re: PhantomJS: Archiving the project, suspending development

#105
post #67

Earlier quoted context omitted.

Does headless chrome do PDF generation? That's the only thing I'm using phantom for at the moment.

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

Thanks that looks like a very clean library. Will switch to this.

Re: PhantomJS: Archiving the project, suspending development

#106
post #94

Timeline of what lead to this, from what I could gather: • phantomjs is 7 years old, @pixiuPL has been contributing for about 2 months • @ariya didn't respond to his requests for owner level permissions • @pixiuPL published an open letter to the main page of phantomjs.org https://github.com/ariya/phantomjs/issues/15345 • the stress leads @ariya to close the repo. • @pixiuPL intends to continue development on a fork T…

I don't know man, but look at @pixiuPL's commits https://github.com/ariya/phantomjs/commits?author=pixiuPL Especially his own commits (non-merge commits)

Changing default indentation from 2 spaces to tabs (without updating existing files?): https://github.com/ariya/phantomjs/commit/6485f5466110fc8d4b...

I couldn't find a single one containing any meaningful code changes. The closest one is a81a38f[1] which seems to introduce bugs - removing open file check, plus a hanging if clause.

Sounds like it's either an elaborate prank, or the guy has no grounding on reality.

[1] https://github.com/ariya/phantomjs/commit/a81a38ffabe2cea715...

Re: PhantomJS: Archiving the project, suspending development

#107

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.

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

#108
post #94

Timeline of what lead to this, from what I could gather: • phantomjs is 7 years old, @pixiuPL has been contributing for about 2 months • @ariya didn't respond to his requests for owner level permissions • @pixiuPL published an open letter to the main page of phantomjs.org https://github.com/ariya/phantomjs/issues/15345 • the stress leads @ariya to close the repo. • @pixiuPL intends to continue development on a fork T…

I don't know man, but look at @pixiuPL's commits https://github.com/ariya/phantomjs/commits?author=pixiuPL Especially his own commits (non-merge commits)

Exactly. I mean look at his commits. Look at this file: https://github.com/ariya/phantomjs/blob/master/package.json (He created a commit only to add his how name as a contributor to package.json, which is the only name in package.json).

How did his changes even make it to the repo. There are commits adding and deleting whitespace with the disguised commit message of "Refactoring Code". I have no doubt on why ariya couldn't work with him.

Re: PhantomJS: Archiving the project, suspending development

#109
post #80

Earlier quoted context omitted.

One question I've had recently is how to scrape out a Javascript object out of HTML source. With server-side react + redux, I've wanted to be able to scrap out the serialised var __STATE__ = {...} object to JSON, from nodejs. Best solution I cobbled together was to basically eval() the JS source, which I know is far from ideal.

You could use a parser like esprima or its equivalent from the babeljs ecosystem on the JS source instead and just find the global variable with name `__STATE__` and just eval its init expression. Cheaper, more secure, more direct than actually running the JS.

I actually looked into this (from reading docs, never wrote code) and I wasn't able to find a way to convert the AST for the ObjectExpression into JSON or an actual Javascript object.

Re: PhantomJS: Archiving the project, suspending development

#110
post #94

Earlier quoted context omitted.

I don't know man, but look at @pixiuPL's commits https://github.com/ariya/phantomjs/commits?author=pixiuPL Especially his own commits (non-merge commits)

Exactly. I mean look at his commits. Look at this file: https://github.com/ariya/phantomjs/blob/master/package.json (He created a commit only to add his how name as a contributor to package.json, which is the only name in package.json). How did his changes even make it to the repo. There are commits adding and deleting whitespace with the disguised commit message of "Refactoring Code". I have no doubt on why ariya co…

Some of his commits surely don't even compile. This one takes the leading # characters off of preprocessor directives: https://github.com/ariya/phantomjs/commit/52e4849a36c68b15c6...
Post reply on HN