Skip to content
This repository has been archived by the owner on Aug 25, 2023. It is now read-only.

always return 0 in user.FollowerCount call #124

Closed
ALYREZA opened this issue Jun 2, 2018 · 4 comments
Closed

always return 0 in user.FollowerCount call #124

ALYREZA opened this issue Jun 2, 2018 · 4 comments

Comments

@ALYREZA
Copy link

ALYREZA commented Jun 2, 2018

hi guyz,
I'm trying to get some user's followers in this loop I want to get mediaCount FollowerCount of each of theme but always return 0 :(

@dgrr
Copy link
Contributor

dgrr commented Jun 2, 2018

In many cases Instagram returns partial user information. Try using https://godoc.org/github.com/ahmdrz/goinsta#User.Sync

for i := range ... {
   user.Sync()
   fmt.Println(user.FollowerCount)
}

And be careful making a lot of requests per minute you could be banned

@dgrr dgrr closed this as completed Jun 2, 2018
@ALYREZA
Copy link
Author

ALYREZA commented Jun 2, 2018

do you have any idea about number of request per minutes ?
I must bring some limitation over users.Next() function ?

@dgrr
Copy link
Contributor

dgrr commented Jun 2, 2018

No, I don't know how many requests you can do per minute but I set time.Sleep(time.Second * 10) after any users.Next()

@ahmdrz
Copy link
Owner

ahmdrz commented Jun 3, 2018

@ALYREZA Use goinsta like android application. How can you fast in scrolling ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants