@0y0/scraper-plugin-google-sheet

1.0.2 • Public • Published

@0y0/scraper-plugin-google-sheet · GitHub license npm

@0y0/scraper-plugin-google-sheet is a @0y0/scraper plugin to export data to google sheet.

Installation

npm install --save @0y0/scraper-plugin-google-sheet

Usage

const plugin = require('@0y0/scraper-plugin-google-sheet')

plugin.setGoogleCredentials(
  // (object) Google Credentials: A JSON object with service account key
  credentials
)

plugin.out(
  {
    // (string) Spreadsheet ID
    spreadsheetId
    sheet: {
      // (string) Sheet title
      title,
      // (string[]) Sheet header
      header,
      // (string[][]) Sheet body
      body
    }
  },
  // (object?) Global definitions
  variables
)

License

MIT

Dependencies (2)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @0y0/scraper-plugin-google-sheet

    Weekly Downloads

    2

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    5.68 kB

    Total Files

    6

    Last publish

    Collaborators

    • shiningjason