gas-feed2notion
RSS フィードを Notion データベースへ送信する Google Apps Script ライブラリー。
AI Summary
gas-feed2notion
A Google Apps Script library that fetches RSS feeds and automatically creates pages in a Notion database.
Target Users
Intermediate Google Apps Script developers who use Notion as an information dashboard and need a quick way to import RSS feeds automatically.
Problems Solved
Notion lacks a native RSS reader, so importing feeds via the API requires non-trivial implementation; this library removes that complexity.
Tags
Main Features
Send RSS to Notion in a few lines
Adds RSS items as Notion pages by simply calling `FeedToNotion.send(apiKey, opts)`.
Flexible transformers
Generator-based transformers allow advanced processing such as keyword mentions and page structure customization.
TypeScript typings
The npm package `@hankei6km/gas-feed2notion` supplies typings for type-safe development with clasp.
Usage Examples
Minimal code to push an RSS feed to Notion
/**
* Minimal example that sends RSS items to Notion.
* Save `notion_api_key` and `database_id` in Script Properties beforehand.
*/
function settings_() {
const props = PropertiesService.getScriptProperties();
const apiKey = props.getProperty('notion_api_key');
const database_id = props.getProperty('database_id');
const opts = {
database_id,
feeds: [
{ name: 'GAS Official Blog', url: 'https://developers.google.com/apps-script/rss' }
],
limit: 10 // number of items to fetch
};
return { apiKey, opts };
}
function feed2notion() {
const s = settings_();
// FeedToNotion is the library ID you added (FeedToNotion)
FeedToNotion.send(s.apiKey, s.opts);
}
Copy this code into a GAS project where the library ID 1gLGL4oQse_fv1Mm8VfzxmgKOMKvgz592ME4mQSh7Va4MQGxvR6wxdCNl
is added, run feed2notion
, and the feed items will appear in your Notion database.