@0y0/scraper

A web scraping tool that extracts any data from the web.

Usage no npm install needed!

<script type="module">
  import 0y0Scraper from 'https://cdn.skypack.dev/@0y0/scraper';
</script>

README

@0y0/scraper ยท GitHub license npm

@0y0/scraper is a web scraping tool that extracts any data from the web.

Installation

npm install --save @0y0/scraper

Usage

const runScraper = require('@0y0/scraper')

runScraper(
  // (object|array) Scraper options
  {
    // (string?) Cron time expression
    cronTime,
    // (bool?) Run cron after initialization
    // (Default: false)
    runCronOnInit,
    // (object) Input options
    in: {
      // (string) Input plugin name
      type,
      ...inputPluginOptions
    },
    // (object) Output options
    out: {
      // (string) Whether to skip the output
      skip,
      // (string) Output plugin name
      type,
      ...outputPluginOptions
    }
  }
)

License

MIT