Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 505 Bytes

README.md

File metadata and controls

17 lines (12 loc) · 505 Bytes

twitterfeed

Go channel providing live tweets containing search terms.

The following code reads all tweets containing "monkey" for five seconds:

ctx, _ := context.WithTimeout(context.Background(), 5*time.Second)

r := twitterfeed.NewTweetReader("consumerKey", "consumerSecret", "accessToken", "accessSecret")
for tweet := range r.Run(ctx, "monkey") {
	log.Println(tweet)
}

log.Println("done")
  • You can read the GoDocs if you prefer