samchungy/Serverless-AFR-RSS-Feed

A Serverless RSS Feed scraping Google Custom Search for AFR data. Designed for use with the Slack RSS Feed.

★ 3Forks 1JavaScriptGitHub ↗Compare
nodejsrssserverlessslack

README

Serverless RSS Feed

A simple 30 minute serverless RSS Feed designed to be invokved by Slack's RSS Feed.

Description

This bot is designed to scrape Google Web Search results for afr.com articles with the keyword "Deloitte" in the title and return them in a RSS Feed which will be consumed by Slack's Feed app.

Getting Started

Dependencies

  • serverless
  • axios
  • feed

Installing

  • Create a Google Custom Search, grab it's cx value.
  • Create a Google API Key for Custom Search.
  • Create an .env file and fill them with GOOGLE_API_KEY and GOOGLE_CUSTOM_SEARCH_CX environment variables.
  • Run npm install --prod to install dependencies.
  • Run sls deploy to deploy to AWS
  • On Slack run /feed subscribe {your-app-url}

Authors

Sam Chung - [email protected]

Issues