ahmdrz / goinsta

Unofficial Instagram API written in Golang
MIT License
895 stars 247 forks source link

I can not get subscribers #298

Closed somethino closed 4 years ago

somethino commented 4 years ago

image

result: &{0xc0000e6000 <nil> friendships/311883787/followers/ false [] 0 }

ahmdrz commented 4 years ago

For other users in this community, it's better to paste your code in markdown format instead of an image. You have to write your code in this schema for every pagination instances:

        users, err := insta.Profiles.ByName("ozonru")
    if err != nil {
        log.Fatal(err)
    }
    followers := users.Followers()
    for followers.Next() {
        for _, user := range followers.Users {
            fmt.Println(user.Username)
        }
    }