npm install snapshoter
|2||downloads in the last month|
|Version||0.1.1 last updated a year ago|
|Dependencies (6)||fs-util, coffee-script, colors, node-phantom, pretty-data, jsdom|
render, save it as plain HTML file and carry on until all
hrefs are rendered.
Do not hesitate to open a feature request or a bug report.
Have fun. :)
npm install -g snapshooter
snapshooter [http://your_url] [output_folder]
Considering you have a Single Page Application I bet you have also some
render method, and possibly another
out too for handling transitions.
Well, the only matter here is to inform Snapshooter that the page has finish
rendering. It's achieved by setting the property
window.crawler.is_rendered = true
Snapshooter will keep waiting for the page until this variable gets
then the rendered DOM will be saved as a plain html file.
Download the repo and have fun, pull requests are more than welcome.
git clone git://github.com/serpentem/snapshooter.git cd snapshooter npm link