mirror of
https://github.com/arnaucube/argos.git
synced 2026-02-07 11:06:39 +01:00
implemented analysis of tweet, getting retweets to detect Bots
This commit is contained in:
@@ -84,3 +84,14 @@ func printUserData(user *twitter.User) {
|
||||
fmt.Print("number of favs: ")
|
||||
c.Purple(strconv.Itoa(user.FavouritesCount))
|
||||
}
|
||||
|
||||
func getRetweets(client *twitter.Client, tweetId int64) []twitter.Tweet {
|
||||
var tweets []twitter.Tweet
|
||||
tweets, _, err := client.Statuses.Retweets(tweetId, &twitter.StatusRetweetsParams{
|
||||
Count: 200,
|
||||
})
|
||||
if err != nil {
|
||||
fmt.Println(err)
|
||||
}
|
||||
return tweets
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user