@rnovec/scrapyd-api

A Node.js wrapper for working with the Scrapyd API

Usage no npm install needed!

<script type="module">
  import rnovecScrapydApi from 'https://cdn.skypack.dev/@rnovec/scrapyd-api';
</script>

README

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