Great project. The biggest question for me when I'm using phantomjs is why phantomjs is trying to replicate nodejs infrastructure. For example, phantomjs has an HTTP server feature for processing incoming requests. This doesn't make sense to me because a browser shouldn't be a server. If you need to get information out of the worker, you should POST it somewhere. The proclivity of phantomjs users to prefer stdout is astounding. It's definitely the #1 question or issue that I get fielded in #phantomjs on freenode.<p>For example, for POSTing and reading from redis/resque I wrote this (proof of concept, not what's in production):<p><a href="https://gist.github.com/000037f472b72d9490a6" rel="nofollow">https://gist.github.com/000037f472b72d9490a6</a><p>A few thoughts..<p><pre><code> > There are similar "glues" like phantomjs-node that integrate phantomjs by
> spawning a process, and processing the stdout stream, but it is limited by
> what can be done via the command line of phantomjs. If you really want direct
> api access to the browser, the best way is via direct integration.
</code></pre>
This seems like a lot of overhead on top of a phantomjs (or even just a generic webkit) worker. Substack's approach was to just put a proxy in front of a browser that injects a <script> tag into the page to boss the browser around:<p><a href="https://github.com/substack/schoolbus" rel="nofollow">https://github.com/substack/schoolbus</a><p>Supposedly the actual browser client shouldn't matter, as long as your fleet of workers are up and running. I bet chimera's approach will end up with more access to npm modules in the long run compared to phantomjs.<p>Also, the link wasn't in the article: <a href="https://github.com/deanmao/node-chimera" rel="nofollow">https://github.com/deanmao/node-chimera</a><p>For the python equivalent of this project, there's <a href="https://github.com/kanzure/pyphantomjs" rel="nofollow">https://github.com/kanzure/pyphantomjs</a>
Great work! This might even have potential for browser-based testing, since mocha-phantomjs runs from an executable; I'd prefer a code-based solution like Chimera integrate with Mocha.
This is a great idea! phantomjs-node works okay, but it is suck a hack. A nifty hack, but still. <a href="https://github.com/sgentle/phantomjs-node#how-does-it-work" rel="nofollow">https://github.com/sgentle/phantomjs-node#how-does-it-work</a><p>If you want to parse the DOM for the internet at large, you need a real browser. There are simply too many sites with really bad HTML to be parsed reliably with anything else.
Has anyone actually gotten this working? I've tried installing on Mac OS X and Ubuntu, both with various problems. The precompiled binaries don't work, the qt build scripts fail, etc. etc.