You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -59,10 +59,10 @@ Makes requests to `urls` and saves all files found with `sources` to `directory`
59
59
**callback** - callback function *(optional)*, includes following parameters:
60
60
61
61
-`error`: if error - `Error` object, if success - `null`
62
-
-`result`: if error - `null`, if success - array of objects containing:
62
+
-`result`: if error - `null`, if success - array of [Resource](https://github.com/s0ph1e/node-website-scraper/blob/master/lib/resource.js)objects containing:
63
63
-`url`: url of loaded page
64
64
-`filename`: filename where page was saved (relative to `directory`)
65
-
-`assets`: array of children resources (each of them contains `url`, `filename`, `assets`)
65
+
-`children`: array of children Resources
66
66
67
67
### Filename Generators
68
68
The filename generator determines where the scraped files are saved.
0 commit comments