Skip to content

Commit 395277a

Browse files
committed
Update README.md
1 parent 84e493d commit 395277a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Node.js module for website's scraping with images, css, js, etc.
1616
```javascript
1717
var scraper = require('website-scraper');
1818
var options = {
19-
urls: 'http://nodejs.org/',
19+
urls: ['http://nodejs.org/'],
2020
directory: '/path/to/save/',
2121
};
2222

@@ -42,7 +42,7 @@ Makes request to `url` and saves all files found with `sources` to `directory`.
4242
- `log:` boolean indicates whether to write the log to console *(optional, default: false)*
4343
- `defaultFilename:` filename for index page *(optional, default: 'index.html')*
4444
- `sources:` array of objects to load, specifies selectors and attribute values to select files for loading *(optional, see default value in `lib/defaults.js`)*
45-
- `subdirectories:` array of objects, specifies subdirectories for extensions. If `null` all files will be saved to `directory` *(optional, see example below)*
45+
- `subdirectories:` array of objects, specifies subdirectories for file extensions. If `null` all files will be saved to `directory` *(optional, see example below)*
4646

4747

4848
**callback** - callback function *(optional)*, includes following parameters:

0 commit comments

Comments
 (0)