Analyze Tweets

Searches Twitter by keyword and analyzes tweets for sentiment and LDA topics

Algorithmia Platform License
apl
· Internet Access

This algorithm has Internet access.

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.
· Calls Other Algorithms

This algorithm has permission to call other algorithms.

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":"https://twitter.com/statuses/695329550536949761","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":"https://twitter.com/statuses/695328736531451904","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... https://t.co/O3gUFlHgLF","created_at":"Thu Feb 04 19:45:12 +0000 2016","negative_sentiment":0.0,"tweet_url":"https://twitter.com/statuses/695332295830441984","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 https://t.co/GHDBJgSYAC","created_at":"Thu Feb 04 19:39:00 +0000 2016","negative_sentiment":0.0,"tweet_url":"https://twitter.com/statuses/695330733712277505","positive_sentiment":0.361,"overall_sentiment":0.836,"neutral_sentiment":0.639},{"text":"Great images of Ethiopian Orthodox churches celebrating Epiphany in Seattle. https://t.co/TH0GgUlD0h https://t.co/VQvOj6tUJ8","created_at":"Thu Feb 04 19:46:02 +0000 2016","ne

Install & Use

Use

curl -X POST -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"
  }
}' -H 'Content-Type: application/json' -H 'Authorization: Simple YOUR_API_KEY' https://api.algorithmia.com/v1/algo/nlp/AnalyzeTweets/0.1.13