GithubHelp home page GithubHelp logo

alexsaidani / tweetamo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dselman/tweetamo

0.0 2.0 0.0 192 KB

An experimental integration between AWS Kinesis and Twitter

License: Apache License 2.0

tweetamo's Introduction

tweetamo

An experimental integration between AWS Kinesis, Dynamo and Twitter. The "client" code subscribes to tweets using Twitter's streaming API and pushes them to a Kinesis stream. The "server" code subscribes to the stream and writes the Twitter status updates to a Dynamo table for offline query and analysis (TBD). The code is still very much evolving.

To run this code you will need to create 2 authentication files: one for AWS and one for Twitter. Both files need to be in the classpath when you run.

AwsCredentials.properties:

# Fill in your AWS Access Key ID and Secret Access Key
# http://aws.amazon.com/security-credentials
accessKey=***
secretKey=***

TwitterCredentials.properties:

# Fill in your Twitter OAuth security credentials
# https://dev.twitter.com/docs/auth/oauth
consumerKey=***
consumerSecret=***
accessToken=***
accessTokenSecret=***

Use the AWS console to create a Kinesis stream named tweetamo.

Launch the Tweetamo client Java application. The first argument is the language of the tweets to monitor, the second argument a search string. E.g

org.selman.tweetamo.TweetamoClient en rugby. 

Once launched the client will connect to the tweetamo Kinesis steam and publish the tweets that match your search string to the stream.

Launch the org.selman.tweetamo.TweetamoServer Java application. This application connects to your tweetamo stream and simply logs the tweets to the console.

Building

Download the code, open a shell at the org.selman.tweetamo directory and type:

mvn clean install

You may need to first build https://github.com/awslabs/amazon-kinesis-client locally, depending on what has been published to Maven central.

tweetamo's People

Contributors

dselman avatar

Watchers

James Cloos avatar Alex Saidani 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.