An open API service indexing awesome lists of open source software.

https://github.com/suddi/tweetindex-lambda

AWS Lambda function to retrieve stock tweets from Twitter's streaming API
https://github.com/suddi/tweetindex-lambda

api-gateway aws-lambda python retrieve-stock-tweets twitter-streaming-api

Last synced: 9 months ago
JSON representation

AWS Lambda function to retrieve stock tweets from Twitter's streaming API

Awesome Lists containing this project

README

          

# tweetindex-lambda

[![Codacy Badge](https://api.codacy.com/project/badge/Grade/711ee3a2255e45aca20cab00f2320219)](https://www.codacy.com/app/suddir/tweetindex-lambda?utm_source=github.com&utm_medium=referral&utm_content=suddi/tweetindex-lambda&utm_campaign=Badge_Grade)
[![license](https://img.shields.io/github/license/suddi/tweetindex-lambda.svg?maxAge=2592000)](https://github.com/suddi/tweetindex-lambda)

AWS Lambda hosted RESTful API to retrieve stock tweets from Twitter's streaming API implemented in Python

## Requirements

* Python 2.7 (At the time of writing this, AWS Lambda only supports Python 2.7).
* Pip (~8.1.1)
* Virtualenv (~15.0.0)
* Virtualenvwrapper (~4.7.1)

## Setup

````
mkvirtualenv tweetindex-lambda

pip install -r requirements.txt
````

You will also need to setup the `~/.aws/credentials` file:

````
[default]
region =
aws_access_key_id =
aws_secret_access_key =
````

## Usage

To test out the usage:

````
lambda invoke
````

To deploy to AWS lambda:

````
lambda deploy
````