Esempio n. 1
0
func GetFollowers(api *anaconda.TwitterApi, account string) []int64 {
	v := url.Values{}
	v.Set("screen_name", account)
	v.Set("count", "200")
	var User anaconda.User
	var Followers []int64
	pages := api.GetFollowersListAll(v)
	counter := 0
	for page := range pages {
		//Print the current page of followers
		for _, User = range page.Followers {
			counter++
			Followers = append(Followers, User.Id)
			log.Debug("["+strconv.Itoa(counter)+"] Getting another Follower", User.Id)
		}
	}
	return Followers
}