Download website to local directory (including all css, images, js, etc.)
MIT License
Bot releases are visible (Hide)
Published by s0ph1e over 8 years ago
createOutputObject
and return Resource
as-isPublished by s0ph1e over 8 years ago
Published by s0ph1e over 8 years ago
prettifyUrls
featureurlFilter
featurefilnameGenerator
featurelodash
instead of underscore
Breaking changes
Changed output format.
Earlier - flat array of root resources was returned
[ { url: 'http://example.com', filename: 'index.html' } ];
Now - tree of resources
[ {
url: 'http://example.com',
filename: 'index.html',
assets: [ // dependencies of index.html
{
url: 'http://example.com/style.css',
filename: 'style.css',
assets: [ // dependencies of style.css
{ url: 'http://example.com/img-from-styles.png', filename: 'img-from-styles.png', assets: [] },
]
}
/* other dependencies of index.html */
]
} ];
Published by s0ph1e over 8 years ago
Published by s0ph1e over 8 years ago
Published by s0ph1e over 8 years ago
<img srcset="">
Published by s0ph1e over 8 years ago
Published by s0ph1e over 8 years ago
Published by s0ph1e over 8 years ago
maxDepth
and recursive
Published by s0ph1e about 9 years ago
log
from optionsBreaking changes
filename
returned by scrape
was changed - now it contains relative to directory
pathvar options = {
urls: 'http://example.com',
directory: '/path/to/save'
};
scrape(options).then(console.log);
// earlier: [ { url: 'http://example.com', filename: '/path/to/save/index.html' } ];
// now: [ { url: 'http://example.com', filename: 'index.html' } ];
Published by s0ph1e over 9 years ago
_.extend
issue, which overrides optionsPublished by s0ph1e over 9 years ago
Published by s0ph1e almost 10 years ago
Published by aivus almost 10 years ago
url
, add urls
)path
-> directory
scrToLoad
-> sources
indexFile
-> defaultFilename
Published by s0ph1e about 10 years ago
<base>
foundPublished by aivus about 10 years ago
Published by aivus about 10 years ago
Published by s0ph1e about 10 years ago
First public release