Giter VIP home page Giter VIP logo

aws_lambda's Introduction

AWS Lambda function/serverless API that uses Comprehend API

Dependencies

Chalice
Boto3

Set up Chalice

chalice new-project sent

To run on localhost

chalice local
this will run on localhost

To deploy

chalice deploy --no-autogen-policy

By default the name of the project and the API that is set up is called sent, and the environment to which it is deployed is called dev

This API takes json requests and returns a json that contains news articles that are "Neutral" as determined by Comprehend

Sample request

[ { "articleTitle":"Game of Thrones Ser Davos Actor Liam Cunningham Says Season 8 Is an Honorable Ending IGN", "description":"Game of Thrones actor Liam Cunningham reflects on the final season at the TCA winter press tour", "content":"The final season is almost here... \r\nBy David GriffinWith the highly-anticipated final season of HBO's Game of Throne fast approaching, Davos Seaworth actor Liam Cunningham spoke with IGN at the TCA winter press tour about the decision to end the series after… ", "articleUrl":"https://www.ign.com/articles/2019/02/11/game-of-thrones-ser-davos-actor-liam-cunningham-says-season-8-is-an-honorable-ending?abthid=5c60d5e73739c3747d001138", "author":"David Griffin", "urlToImage":"https://assets1.ignimgs.com/2019/02/11/serdavos-1549845420952_1280w.jpg" }, { "articleTitle":"Tips and Tricks Tom Clancys The Division 2 Wiki Guide IGN", "description":"Tom Clancys The Division 2 at IGN walkthroughs items maps video tips and strategies", "content":"IGN has the tips and tricks, strategies, and secrets you need to succeed in Tom Clancy's The Division 2.", "articleUrl":"https://www.ign.com/wikis/the-division-2/Tips_and_Tricks", "author":null, "urlToImage":"https://oystatic.ignimgs.com/src/core/img/widgets/global/page/ign-logo-100x100.jpg" } ]

Response

[ { "description": "Game of Thrones actor Liam Cunningham reflects on the final season at the TCA winter press tour", "author": "David Griffin", "content": "The final season is almost here... \r\nBy David GriffinWith the highly-anticipated final season of HBO's Game of Throne fast approaching, Davos Seaworth actor Liam Cunningham spoke with IGN at the TCA winter press tour about the decision to end the series after… ", "urlToImage": "https://assets1.ignimgs.com/2019/02/11/serdavos-1549845420952_1280w.jpg", "articleTitle": "Game of Thrones Ser Davos Actor Liam Cunningham Says Season 8 Is an Honorable Ending IGN", "articleUrl": "https://www.ign.com/articles/2019/02/11/game-of-thrones-ser-davos-actor-liam-cunningham-says-season-8-is-an-honorable-ending?abthid=5c60d5e73739c3747d001138" }, { "description": "Tom Clancys The Division 2 at IGN walkthroughs items maps video tips and strategies", "author": null, "content": "IGN has the tips and tricks, strategies, and secrets you need to succeed in Tom Clancy's The Division 2.", "urlToImage": "https://oystatic.ignimgs.com/src/core/img/widgets/global/page/ign-logo-100x100.jpg", "articleTitle": "Tips and Tricks Tom Clancys The Division 2 Wiki Guide IGN", "articleUrl": "https://www.ign.com/wikis/the-division-2/Tips_and_Tricks" } ]

aws_lambda's People

Contributors

sagar1025 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.