Package Exports
- @rnovec/scrapyd-api
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@rnovec/scrapyd-api) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Node.js Scrapyd API
A Node.js wrapper for working with the Scrapyd API
Install
$ npm i scrapy-apiUsage
const ScrapydAPI = require('scrapy-api')
const scrapyd = new ScrapydAPI()
scrapyd.schedule('default', 'test-spider').then(
jobid => {
console.log(jobid)
},
err => {
console.log(err)
}
)API
scrapyd.schedule
Schedule a Scrapy spider