{"id":18866968,"url":"https://github.com/flatfisher/nodejs-rss-notifier","last_synced_at":"2026-02-13T08:30:15.534Z","repository":{"id":80485868,"uuid":"161638529","full_name":"flatfisher/nodejs-rss-notifier","owner":"flatfisher","description":"RSS Notifier","archived":false,"fork":false,"pushed_at":"2019-03-27T13:39:43.000Z","size":207,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-30T22:29:22.786Z","etag":null,"topics":["cloud-scheduler","datastore","google","google-appengine","nodejs"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/flatfisher.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-12-13T12:49:43.000Z","updated_at":"2022-12-02T15:35:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"49bbe5b2-6d00-4018-a164-7afb19d1baf8","html_url":"https://github.com/flatfisher/nodejs-rss-notifier","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flatfisher%2Fnodejs-rss-notifier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flatfisher%2Fnodejs-rss-notifier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flatfisher%2Fnodejs-rss-notifier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flatfisher%2Fnodejs-rss-notifier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flatfisher","download_url":"https://codeload.github.com/flatfisher/nodejs-rss-notifier/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239816477,"owners_count":19701753,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cloud-scheduler","datastore","google","google-appengine","nodejs"],"created_at":"2024-11-08T05:08:05.800Z","updated_at":"2026-02-13T08:30:15.443Z","avatar_url":"https://github.com/flatfisher.png","language":"JavaScript","readme":"# nodejs-rss-notifier\nRSSの内容を取得し更新されていたらLINEに通知するサンプルです\n\n## Warning\nこれはあくまでサンプルです。リファクタリングや細い認証など行っていないので自己責任でお試しください。\n\n## Prerequirement\n- Node.js\n- gcloud command\n- GCP Account\n- LINE Notifyのaccess_token\n    - https://notify-bot.line.me/doc/ja/\n\n## GCP Products\n- Google App Engine 2nd gen Node.js\n- Cloud Tasks\n- Cloud Scheduler\n- Cloud Datastore\n\n## Preparation and deployment\n\n### RSSのURLをDatastoreに登録する\n\n```\n$ npm install\n```\n\n```\n'use strict';\n\nasync function saveFeed(url) {\n    const Datastore = require('@google-cloud/datastore');\n    const datastore = new Datastore({\n        projectId: '',\n    });\n    const feed = {\n        key: datastore.key(['Feed']),\n        data: {\n            url: url,\n            date: new Date() //この日時が最終更新日時となる\n        },\n    };\n    return await datastore.save(feed)\n}\n\n//GKEのリリースノート\nsaveFeed(\"https://cloud.google.com/feeds/kubernetes-engine-release-notes.xml\").catch((err) =\u003e console.error(err));\n```\n\n### app.yamlの編集\n\n```\nLINE_AUTHORIZATION: 'LINE Notifyのaccess_tokenを入れる'\n```\n\n\n### Deploy\n\n```\n// Cloud Tasksの登録\n$ gcloud app deploy queue.yaml\n\n// GAEのデプロイ\n$ gcloud app deploy app.yaml --version v1\n\n// Schedulerのセット\n$ gcloud beta scheduler jobs create app-engine RSS-Notifier --schedule \"0 */3 * * *\" --time-zone Asia/Tokyo --description \"Notify\" --service release-note-notifier --relative-url /v1/tasks/make\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflatfisher%2Fnodejs-rss-notifier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflatfisher%2Fnodejs-rss-notifier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflatfisher%2Fnodejs-rss-notifier/lists"}