Davincible / goinsta

Unofficial Instagram API written in Golang (v2022)
MIT License
182 stars 56 forks source link

Explore page fails to unmarshal #14

Closed veramine closed 2 years ago

veramine commented 3 years ago

Just testing this for the first time and I got this error on login

Non fatal error while fetching explore page json: cannot unmarshal number into Go struct field .clusters.id of type string

Here was the full function:

func main() {
    insta := goinsta.New("[removed]", "[removed]")

    err := insta.Login()
    if err != nil {
        panic(err)
    }

    acc := "joeel56"
    profile, err := insta.VisitProfile(acc)
    if err != nil {
        log.Fatal(err)
    }

    user := profile.User
    fmt.Printf(
        "%s has %d followers, %d posts, and %d IGTV vids\n",
        acc, user.FollowerCount, user.MediaCount, user.IGTVCount,
    )

}
Davincible commented 3 years ago

Ahh type mismatch. Thanks for reporting, I'll update it later today

Davincible commented 2 years ago

Should be fixed now