Tweet is a twitterbot listener and distributor of relevant tweets written in Golang. It comprises of a http server, a UI for custom parameters and a wrapper library that interacts with Twitter API v2.
Using Tweet is easy. To use the library, go get
will install the libraries and dependencies for your project.
go get github.com/rodionlim/tweet
Later, to receive updates, run
go get -u github.com/rodionlim/tweet
To spin up the webserver and start the twitter notification service
# Run in the root of the repository
go run .
# Go to http://localhost:3000 for the UI
The following Go code searches for twitter user Bloomberg Markets
and any tweets that contains the keywords.
keywords := []string{"oil", "copper", "rates", "inflation", "gold", "nickel", "powell", "fed", "bonds", "metals", "equities", "energy", "central bank", "commodities", "fx"}
users := []string{"markets"}
req := tweet.NewReq(tweet.WithUsers(users), tweet.WithKeywords(keywords))
req.Get()
Tweet is released under the Apache 2.0 license. See LICENSE