Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ne1ro/siteshot
Single-page web site snapshot script
https://github.com/ne1ro/siteshot
Last synced: 25 days ago
JSON representation
Single-page web site snapshot script
- Host: GitHub
- URL: https://github.com/ne1ro/siteshot
- Owner: ne1ro
- License: mit
- Created: 2014-02-10T12:01:41.000Z (over 10 years ago)
- Default Branch: develop
- Last Pushed: 2016-01-25T10:48:30.000Z (almost 9 years ago)
- Last Synced: 2024-01-04T15:44:07.217Z (10 months ago)
- Language: JavaScript
- Size: 33.2 KB
- Stars: 3
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
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:
```javascript
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