TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Scaling PhantomJS With Ghost Town

32 点作者 tkazec大约 11 年前

6 条评论

m0th87大约 11 年前
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 未加载
codereflection大约 11 年前
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 未加载
mootothemax将近 11 年前
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.
damian2000大约 11 年前
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>
dsl大约 11 年前
&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 未加载
qhoc大约 11 年前
I wrote my own doing something similar with leveraging the casperjs layer instead. I was just too lazy to deal with phantomjs directly.