Skip to content

CityOfNewYork/nyco-rss-2-json

Repository files navigation

nyco-rss-2-json

A self hosted RSS into JSON proxy using AWS Lambda.

To Deploy:

Clone the latest and create a zip folder to be uploaded to AWS Lambda.

zip -r deploy.zip .

Or, download an archive of the latest release and extract the deploy.zip from the archive.

Create a new AWS Lambda function and upload deploy.zip file via the function code section in AWS Lambda service UI.

Usage

When making a call to the endpoint make sure to pass the RSS feed to the parameter rssFeed.

Example

rssFeed=https://medium.com/feed/@nycopportunity/

Testing

The function can be run locally using the AWS Serverless Application Model (SAM). Follow the instructions to install the AWS SAM CLI. Once it's installed, testing the function can be run with the following command.

sam local invoke -e event.json NycoRss2Json

The Mayor's Office for Economic Opportunity

The Mayor's Office for Economic Opportunity (NYC Opportunity) is committed to sharing open source software that we use in our products. Feel free to ask questions and share feedback. Interested in contributing? See our open positions on buildwithnyc.github.io. Follow our team on Github (if you are part of the @cityofnewyork organization) or browse our work on Github.