Live data from Hacker News

Show HN: Phantom JS interactive editor

phantomjs-pad.ozaur.com

11–20 of 42 posts

Re: Show HN: Phantom JS interactive editor

#11

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?

You need to exit at the end: phantom.exit()

Re: Show HN: Phantom JS interactive editor

#12
post #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…

Right now it's for fun, but the real-use case is to make more productive. E.g. be able to write test way faster.

Browser-view shows at the end and whenever you write page.render().

Making setup smooth is solve able problem, I just haven't spent time on that. It uses Meteor and PhantomJS.

Re: Show HN: Phantom JS interactive editor

#13
post #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 mor…

Cool. Haven't heard about it.

Will have a look. PhantomJS development seems stagnate a bit. Try to contribute to it myself.

Re: Show HN: Phantom JS interactive editor

#14
post #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 mor…

Cool. Haven't heard about it. Will have a look. PhantomJS development seems stagnate a bit. Try to contribute to it myself.

I was under impression PhantomJS 2.x is rather active, but of course Splash contributions are welcome, that'd be great!

Splash Web UI is quite similar to PhantomJS Pad UI - by default it shows a CodeMirror text editor (with a simple autocompletion) and a screenshot of the webpage. Also, by default it shows information about requests/responses (like a "Network" tab in Firefox/Chrome development console) and a textarea with rendered html.

PhantomJS Pad UI ideas are good; tabs for images, an editor window which is open by default and a field with console logs make a lot of sense.

Re: Show HN: Phantom JS interactive editor

#15
post #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 mor…

There's also Automately (http://automate.ly/) it's a pretty interesting platform and it also allows for use of browser automation but differently than PhantomJS it's a little confusing to get setup at first but once you're there it's easy from there on.

Re: Show HN: Phantom JS interactive editor

#16
post #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 mor…

There's also Automately ( http://automate.ly/ ) it's a pretty interesting platform and it also allows for use of browser automation but differently than PhantomJS it's a little confusing to get setup at first but once you're there it's easy from there on.

It doesn't look like Automately is open source, but their API looks nice (based on examples from http://blog.automate.ly/).

Re: Show HN: Phantom JS interactive editor

#17
post #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 mor…

There's also Automately ( http://automate.ly/ ) it's a pretty interesting platform and it also allows for use of browser automation but differently than PhantomJS it's a little confusing to get setup at first but once you're there it's easy from there on.

interesting but seems like just a selenium in the cloud. wouldn't it make more sense for someone to host automation scripts on their own servers?

Re: Show HN: Phantom JS interactive editor

#18
post #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 mor…

[deleted]

Re: Show HN: Phantom JS interactive editor

#19
post #16

Earlier quoted context omitted.

There's also Automately ( http://automate.ly/ ) it's a pretty interesting platform and it also allows for use of browser automation but differently than PhantomJS it's a little confusing to get setup at first but once you're there it's easy from there on.

It doesn't look like Automately is open source, but their API looks nice (based on examples from http://blog.automate.ly/ ).

We will actually be open sourcing our core very soon! We will also be including the source code for our SDK and Automately Pi (unreleased Raspberry Pi integration).

Re: Show HN: Phantom JS interactive editor

#20

Earlier quoted context omitted.

There's also Automately ( http://automate.ly/ ) it's a pretty interesting platform and it also allows for use of browser automation but differently than PhantomJS it's a little confusing to get setup at first but once you're there it's easy from there on.

interesting but seems like just a selenium in the cloud. wouldn't it make more sense for someone to host automation scripts on their own servers?

It's actually more than that, our API doesn't only provide access to the Browser module. We provide an SDK that can help people build real-time applications that can connect with almost anything. We're getting ready to release our Raspberry Pi integration. We are also going to be going open source fairly soon.
Post reply on HN