Feed reader library for Google Apps Script


Keywords
Google Apps Script, feed, rss, library, feed-reader, google-apps-script, rss-parser
License
Zlib
Install
npm install gas-feed@2.0.1

Documentation

Feed Reader Library for Google Apps Script

NPM Version Build Status Test Coverage

A library for Google Apps Engine to read ATOM feeds.

Features

  • Read ATOM feeds via UrlFetchApp.
    • Currently, ATOM support only.
  • Store entries to Spreadsheet.
    • A store is pluggable. Currently, SpreadsheetStore is only implemented.

Requirements

Setup

  1. Install dependencies

    $ npm install --save-dev webpack webpack-cli gas-webpack-plugin
    $ npm install gas-feed
    
  2. Write webpack.config.js

    const GasPlugin = require("gas-webpack-plugin");
    
    module.exports = {
      entry: "./src/index.js",
      output: {
        filename: "Code.js",
        path: __dirname + "/built",
      },
      plugins: [
        new GasPlugin(),
      ]
    };
  3. Write code using gas-feed

    import {FeedReader, SpreadsheetStore} = require("gas-feed");
    
    function doGet(e) {
      // ...
    }
    
    // export for gas with gas-webpack-plugin
    global.doGet = doGet;
  4. Make a Code.js via webpack

    $ webpack
    
  5. Upload built/Code.js

    Copy and paste the content of code simplify or use clasp.

License

zlib License

Author

thinca thinca+npm@gmail.com