TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Scaling PhantomJS With Ghost Town

32 pointsby tkazecalmost 11 years ago

6 comments

m0th87almost 11 years ago
We developed the same thing: <a href="https://github.com/dailymuse/phantom-cluster" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;dailymuse&#x2F;phantom-cluster</a><p>It was used for prerender [1] for some time, before being changed so that clustering happened at the HTTP worker level.<p>Scaling PhantomJS is no walk in the park. There&#x27;s a lot of duct tape to get it to communicate with node.js, and it&#x27;s easy for a memory leak to occur.<p>[1] <a href="https://github.com/prerender/prerender" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;prerender&#x2F;prerender</a>
评论 #7815010 未加载
codereflectionalmost 11 years ago
Can you please qualify the &quot;neglected projects&quot; statement? Looking at the commits on both projects show that they are not neglected.<p>phantomjs: <a href="https://github.com/ariya/phantomjs/commits/master" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;ariya&#x2F;phantomjs&#x2F;commits&#x2F;master</a><p>phantomjs-node: <a href="https://github.com/sgentle/phantomjs-node/commits/master" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;sgentle&#x2F;phantomjs-node&#x2F;commits&#x2F;master</a>
评论 #7814809 未加载
评论 #7814662 未加载
mootothemaxalmost 11 years ago
Has anyone had any luck with PhantomJS and web fonts?<p>I&#x27;d love to use PhantomJS for taking screenshots of designs supplied by third-parties to us, and changing the CSS involved by hand is not a realistic option.<p>The issue itself appears to be nearly 2 years old:<p><a href="https://github.com/ariya/phantomjs/issues/10592" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;ariya&#x2F;phantomjs&#x2F;issues&#x2F;10592</a><p>And PhantomJS&#x27;s core developers appear to be putting off the fix until version 2 is released, whenever that may be:<p><a href="https://github.com/ariya/phantomjs/pull/12108" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;ariya&#x2F;phantomjs&#x2F;pull&#x2F;12108</a><p>Any ideas? I&#x27;m currently investigating using SlimerJS, which uses the Gecko engine, but that involves its own different set of challenges.
damian2000almost 11 years ago
Interested to know if Selenium web driver integration was looked into? You can use Selenium Grid for example to run distributed jobs with a Phantom JS backend... <a href="https://github.com/detro/ghostdriver" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;detro&#x2F;ghostdriver</a>
dslalmost 11 years ago
&gt; a system to reliably render images at scale<p>I&#x27;m curious what exactly &quot;render&quot; means in your context? Phantom.js is headless, so it would be futile to be simply rendering GIFs and JPGs within the browser I assume?
评论 #7815187 未加载
qhocalmost 11 years ago
I wrote my own doing something similar with leveraging the casperjs layer instead. I was just too lazy to deal with phantomjs directly.