1.0.1-beta • Published 4 years ago

@rnovec/scrapyd-api v1.0.1-beta

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

Node.js Scrapyd API

A Node.js wrapper for working with the Scrapyd API

Install

$ npm i scrapy-api

Usage

const ScrapydAPI = require('@rnovec/scrapyd-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