Capture Your Site with PhantomJS

“Hey! What kind of stuff is PhantomJS?”. This could be the first time for you to hear or read or use PhantomJS, but for you guys who don’t, you still can read this article, because I still need your traffic (kidding).

PhantomJS is a headless WebKit scriptable with Javascript API.

So, what does “headless WebKit” mean? It’s like a browser (WebKit based browser), but without the GUI. So, you can use many kinds of WebKit functions in your own scripts. Then, you may ask “what is it used for?”. PhantomJS is used for headless website testing, page automation, network monitoring, and page automation.

The reason I play with this stuff is because I had a simple idea that capturing website automatically. People just give the URI of the page and the application will get the screen shot of it. Then, it can be shared or organized by that person. At first, I thought that I was going to have a tough journey to get thing done, fortunately I wasn’t. Continue reading “Capture Your Site with PhantomJS”