Pachong which means a generic term for vertebrates in chinese, you can find here chinese dictionary, and it's something like crawler.
This is a crawler library written in javascript, so you can use this in server side or browser.
npm install jspachong
It will crawl 10 pages parallelly and sequentially.
npm run benchmark
var Pachong = require('jspachong')
var crawler = new Pachong(requestObject, options)
crawler.queue(requestObject)
.queue(requestObject)
.queue(requestObject)
.run()
.then((res) => {})
.catch((err) => {})
-
requestObject
request library options
simple: { method: 'GET', uri: 'https://www.google.com' callback: function (err, res) { if (err) return // Do something here... } }
see request document for more information
-
options
parallel bool Run crawlers parallel. max integer Max crawlers run each time.
To do.
MIT