Show HN: Phantom JS interactive editor
21–30 of 42 posts
Re: Show HN: Phantom JS interactive editor
#22Author here: oh no Google banned traffic from my AWS instance and google.com shows blank :-(.
Re: Show HN: Phantom JS interactive editor
#23Author here: oh no Google banned traffic from my AWS instance and google.com shows blank :-(.
Just an FYI… the editor is collapsing in Safari.
Re: Show HN: Phantom JS interactive editor
#24I 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?
Theres a branch from a phantomjs contributor on github that has bugfixes for webfonts support backported:
https://github.com/Vitallium/phantomjs/tree/fix-WOFF-file-su...
I use phantomjs for html to image rendering and I managed to get webfont support working with a custom build from that branch (working on Heroku)
Re: Show HN: Phantom JS interactive editor
#25I 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?
Re: Show HN: Phantom JS interactive editor
#26Re: Show HN: Phantom JS interactive editor
#27Re: Show HN: Phantom JS interactive editor
#28A 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…
It's not open source, but there's a free tier and lots of nice features built in like video recording, screenshot comparison and a GUI editor.
If anyone is planning to write PhantomJS scripts directly, I strongly recommend checking out CasperJS: http://casperjs.org/ -- It gives you a really nice layer on top that makes Phantom much more wieldy.
Re: Show HN: Phantom JS interactive editor
#29You may want to up your security-game though. Check the ~/FIXME file on your sever for more info :-)
Re: Show HN: Phantom JS interactive editor
#30Earlier quoted context omitted.
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.