-
Notifications
You must be signed in to change notification settings - Fork 382
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Adds a simple scanner to the social-media app that uses Twitter's
public stream API to search for tweets that match a simple filter and puts them through the classification pipeline * Moves the configuration for the social-media app from multiple json files into a single python file and documents it * Fixes typos and other mistakes in README files as well as the mechanical turk template * Renames a function in the lambda code to reflect what the function actually does * Fixes a small bug where the create-lambda-function script would fail if a kinesis stream already existed with the configured name
- Loading branch information
Cesar Romero
committed
Oct 1, 2015
1 parent
45095c6
commit d7cf7c3
Showing
15 changed files
with
294 additions
and
273 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# The following parameters are used to create the Amazon Kinesis | ||
# stream, AWS Lambda function that reads from the stream and the | ||
# Amazon SNS topic Lambda will publish to whenever a tweet is | ||
# classified as actionable. | ||
AWS = { | ||
'awsAccountId' : "", | ||
'kinesisStream' : "tweetStream", | ||
'lambdaExecutionRole' : "tweetStreamExecutionRole", | ||
'lambdaFunctionName' : "classifyTweet", | ||
'mlModelId' : "", | ||
'region' : "", | ||
'snsTopic' : "actionableTweets" | ||
} | ||
|
||
# The parameters below are used by scanner.py to read tweets from the | ||
# public stream twitter API[1] and push them to a kinesis | ||
# stream. Configure this with twitter credentials for your own application[2] | ||
# | ||
# [1] https://dev.twitter.com/streaming/reference/post/statuses/filter | ||
# [2] https://apps.twitter.com | ||
CONSUMER_KEY = '' | ||
CONSUMER_SECRET = '' | ||
ACCESS_TOKEN = '' | ||
ACCESS_TOKEN_SECRET = '' | ||
# Learn more about how this filter is used by Twitter's API | ||
# https://dev.twitter.com/streaming/reference/post/statuses/filter | ||
TWITTER_FILTER = 'aws' | ||
# Learn more about Kinesis partitions | ||
# http://docs.aws.amazon.com/kinesis/latest/dev/amazon-kinesis-producers.html | ||
KINESIS_STREAM = AWS['kinesisStream'] | ||
KINESIS_PARTITION = 'demo' |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.