Skip to content

Commit

Permalink
Update twitter.scala
Browse files Browse the repository at this point in the history
  • Loading branch information
robaleman authored Dec 26, 2017
1 parent 2044b22 commit 8aaaf8a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions twitter/twitter.scala
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ object Twitter {

def main(args: Array[String]) {

// authenticate using personal Twitter API tokens
// authenticate using personal Twitter API tokens, replace "hidden" with your appropriate API keys
val consumerKey = "hidden"
val consumerSecret = "hidden"
val accessToken = "hidden"
Expand All @@ -36,7 +36,7 @@ object Twitter {
// extracts text from incoming tweets
val statuses = tweets.map(status => status.getText())

// filters tweets that contain certain keywords and prints to console
// filters tweets that contain certain keywords and prints to console, replace "bitcoin" with your desired currency
val btc_tweets = statuses.filter(status => status contains "bitcoin")
btc_tweets.print()

Expand Down

0 comments on commit 8aaaf8a

Please sign in to comment.