v0.3.0
- 69ab9eb - refactor
- 9636962 - improve detection of duplicated urls
- b2d2bed - improve recognizing of resource type
- remove
logfrom options - cover with tests
Breaking changes
filenamereturned byscrapewas changed - now it contains relative todirectorypath
var 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' } ];