new Crawler(args)
Crawler
Parameters:
Name | Type | Description | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
args |
Object | arguments to the constructor Properties
|
- Source:
Methods
scrap(arguments, cb) → {JobManager}
start scraping pages.
Parameters:
Name | Type | Description |
---|---|---|
arguments |
mixed | to loadPageList function. |
cb |
function | Callback executed after completing the whole process. |
- Source:
Returns:
A new instance of JobManager that can pause, resume, dynamically change concurrency, add/remove no of workers etc.. see JobManager.
- Type
- JobManager