Skip to content

Instantly share code, notes, and snippets.

@kiy0taka
Forked from irof/gist:1020274
Created June 11, 2011 08:57
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kiy0taka/1020384 to your computer and use it in GitHub Desktop.
Save kiy0taka/1020384 to your computer and use it in GitHub Desktop.
twitter4j-streamを使ってみる
@Grab('org.twitter4j:twitter4j-stream:2.2.3')
import twitter4j.*
new TwitterStreamFactory().instance.with {
addListener([onStatus:{println "@${it.user.screenName}: ${it.text}"}] as UserStreamAdapter); user()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment