Created
July 12, 2017 11:51
-
-
Save kantorkel/bd4c651969756dd33aa1e1aed4e6cea5 to your computer and use it in GitHub Desktop.
danke polizei tweets.csv
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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