Live data from Hacker News

Show HN: Phantom JS interactive editor

phantomjs-pad.ozaur.com

1–10 of 42 posts

Re: Show HN: Phantom JS interactive editor

#4
post #3
post #2

Author here: oh no Google banned traffic from my AWS instance and google.com shows blank :-(.

Yeah, they'll do that :) Can we download this and run it locally? Is the code open sourced somewhere?

Not yet open-sourced or downloaded, but consider doing that.

Right now the setup would be too hard to make it smooth.

Re: Show HN: Phantom JS interactive editor

#7
A shameless plug: https://github.com/scrapinghub/splash is an open source tool similar to Phantom JS, and it has an interactive web editor built-in.

The concurrency model in Splash scripts is not the same as in Phantom JS scripts: Splash allows to use loops/ifs/functions in async code without recursion tricks or things like "casper.thenOpen". See http://splash.readthedocs.org/en/latest/scripting-tutorial.h... for more info.

We haven't done a public announcement, and Splash is not yet feature complete, but it is used in production for more than a year, there are hundreds of unit tests and it is in active (though a bit sporadic) development - so give it a try if you want something different :)

Installation is just "docker pull scrapinghub/splash" - see http://splash.readthedocs.org/en/latest/install.html.

Re: Show HN: Phantom JS interactive editor

#9
Neat. Did you have a real use-case for this, or just fun? I'm curious, what dependencies does it have that would make setup difficult?

In the Yelp example, I was confused for a second by the variable name of 'pizza' when doing a Yelp search on seafood. Renaming that would make the example more clear. :)

What does the browser-view show? I didn't try, but if the code traverses multiple locations, is it a screenshot of the last step?

Re: Show HN: Phantom JS interactive editor

#10

I tried with typekit with no success: http://phantomjs-pad.ozaur.com/DrDvxMADoP2TdF652 I was curious with this example, as I have had zero luck getting webfonts to render using PhantomJS so far. Have you had any success rendering webfonts?

Looks like the site is overloaded, so a lot of times it end up in timeout problems.
Post reply on HN