@0y0/scraper-plugin-google-sheet 中文文档教程
@0y0/scraper-plugin-google-sheet ·
@0y0/scraper-plugin-google-sheet
是一个 @0y0/scraper
插件,用于将数据导出到 google 表格。
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
@0y0/scraper-plugin-google-sheet ·
@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
)