Giter VIP home page Giter VIP logo

siteshot's Introduction

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

siteshot's People

Contributors

ne1ro avatar groony avatar donbobka avatar

Watchers

martin. avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.