nlp / AnalyzeTweets / 0.1.13

Analyze Tweets

Royalty Free API Calls - 17,096
Searches Twitter by keyword and analyzes tweets for sentiment and LDA topics
Python 2.x
The Algorithm Platform License is the set of terms that are stated in the Software License section of the Algorithmia Application Developer and API License Agreement. It is intended to allow users to reserve as many rights as possible without limiting Algorithmia's ability to run it as a service. Learn More
This is necessary for algorithms that rely on external services, however it also implies that this algorithm is able to send your input data outside of the Algorithmia platform.
This allows an algorithm to compose sophisticated functionality using other algorithms as building blocks, however it also carries the potential of incurring additional royalty and usage costs from any algorithm that it calls.

Run an Example

"{"negLDA":[{"seattle's":2,"adults":2,"breaking":2,"oldest":1,"liveonkomo":1,"teens":2,"seattle":5,"charged":3},{"forever":2,"cafe":2,"flight":13,"missed":13,"hear":2,"seattle":23,"beach":13,"lifeaseva":13},{"summer":8,"duo":7,"crater":7,"apathy":7,"fight":7,"skin":7,"song":7,"seattle":8},{"poor":1,"housing":2,"thing":2,"jungle":2,"amp":2,"seattle":7,"homelesspeople":1,"shooters":2}],"allTweets":[{"text":"RT @Harry_Styles: Thanks for having us Seattle. You were amazing tonight. Hope you enjoyed the show. All the love","created_at":"Thu Feb 04 19:34:18 +0000 2016","negative_sentiment":0.0,"tweet_url":"","positive_sentiment":0.55,"overall_sentiment":0.9524,"neutral_sentiment":0.45},{"text":"@kexp is super moody, super fun. Really have dug listening to them while in #Seattle \n\nProbably most lined up with my listening prefs","created_at":"Thu Feb 04 19:31:04 +0000 2016","negative_sentiment":0.077,"tweet_url":"","positive_sentiment":0.34,"overall_sentiment":0.8625,"neutral_sentiment":0.583},{"text":"Have you voted for Seattle Bride Magazine's Best of 2016?  Be sure to get your votes in for your favorite wedding...","created_at":"Thu Feb 04 19:45:12 +0000 2016","negative_sentiment":0.0,"tweet_url":"","positive_sentiment":0.333,"overall_sentiment":0.8591,"neutral_sentiment":0.667},{"text":"Baked happy hour oysters from @RockCreekSea | The best seafood restaurant in Seattle right now #SeattleEats","created_at":"Thu Feb 04 19:39:00 +0000 2016","negative_sentiment":0.0,"tweet_url":"","positive_sentiment":0.361,"overall_sentiment":0.836,"neutral_sentiment":0.639},{"text":"Great images of Ethiopian Orthodox churches celebrating Epiphany in Seattle.","created_at":"Thu Feb 04 19:46:02 +0000 2016","ne"

Install and Use


Install the Algorithmia CLI client by running:

curl -sSLf | sh

Then authenticate by running:

algo auth
CLI Install Docs


algo run nlp/AnalyzeTweets/0.1.13 -d '{
  "query": "seattle",
  "numTweets": "1000",
  "auth": {
      "app_key": "YOUR_TWITTER_APP_KEY",
      "app_secret": "YOUR_TWITTER_APP_SECRET",
      "oauth_token": "YOUR_TWITTER_OAUTH_TOKEN",
      "oauth_token_secret": "YOUR_TWITTER_OAUTH_TOKEN_SECRET"
}' --timeout 300
CLI Docs