0.1.3 • Published 8 years ago

siteshot v0.1.3

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

SiteShot

Single-page web site snapshot script.

Useful for SEO in single-page apps (Angular.js, Backbone.js, React, Flux, etc...)

Installation

  1. Install Node.js
  2. Install SiteShot:

    npm install siteshot -g
  3. Create config in your website dir:

    siteshot config

    You can modify config.js file to set up delay or provide custom modifying function:

    module.exports = {
    	snapshotDir: "/var/www/APPLICATION_NAME/shadow-copy/snapshots",  
    	sitemap: "/var/www/APPLICATION_NAME/shadow-copy/sitemap.xml",  
    	delay: 5000,  
    	pageModifier: function(page, callback) {
      		page.evaluate(function() {
      			$('meta[name=fragment]').remove()
      		});
      		callback();
    	}
    }
  4. Finally, run util and get snapshots:

    siteshot

Created by Alexey Kuznetsov © 2014

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago