0.0.1 • Published 6 years ago
qq-sheet v0.0.1
qq-sheet
Install
$ npm i qq-sheet --save
Usage
const QQSheet = require('qq-sheet');
const path = require('path');
const qqSheetUrl = 'https://docs.qq.com/sheet/BqI21X2yZIht1487cQ1mHxFy1TyDtE4E6MIS0zk6GT2sYPhU2IQmKC2Cjyb92FLz9g0PQHVH22S2IO11cq4u0';
// Example 1
// An xlsx file will be generated and the file path will be returned.
const qqSheet1 = new QQSheet(qqSheetUrl, {filepath: path.join(__dirname, 'qqSheet.xlsx')});
const xlsxFilePath = qqSheet1.parse();
// Example 2
// Returns an array in which each item represents a worksheet.
const qqSheet2 = new QQSheet(qqSheetUrl);
const qqSheetData = qqSheet2.parse();
Tips
- Web pages need to be authorized to anonymous users.
- Because anonymous users can't download documents, we use the method of parsing interface data.
License
0.0.1
6 years ago