Skip to content

Instantly share code, notes, and snippets.

@kantorkel
Created July 12, 2017 11:51
Show Gist options
  • Save kantorkel/bd4c651969756dd33aa1e1aed4e6cea5 to your computer and use it in GitHub Desktop.
Save kantorkel/bd4c651969756dd33aa1e1aed4e6cea5 to your computer and use it in GitHub Desktop.
danke polizei tweets.csv
anaconda.SetConsumerKey("asd")
anaconda.SetConsumerSecret("asdf")
api := anaconda.NewTwitterApi("asdfg", "asdfgh")
v := url.Values{}
v.Set("count", "30")
v.Set("result_type", "recent")
searchResult, _ := api.GetSearch("danke to:@PolizeiHamburg since:2017-07-12 until:2017-07-13", v)
for _, tweet := range searchResult.Statuses {
fmt.Printf("%s,%s,%d,%d,%d,%d,%s\n", tweet.CreatedAt, tweet.User.ScreenName, tweet.User.FollowersCount, tweet.User.FavouritesCount, tweet.User.StatusesCount, tweet.User.FriendsCount, tweet.Text)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment