Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support getting a user's followers #7

Merged
merged 4 commits into from
Jul 8, 2021
Merged

Support getting a user's followers #7

merged 4 commits into from
Jul 8, 2021

Conversation

jdennes
Copy link
Owner

@jdennes jdennes commented Jul 8, 2021

Similar to #6, but getting a user's followers instead of who they're following.

Can be used like:

package main

import (
	"github.com/jdennes/mubi"
)

func main() {
	api := mubi.NewMubiAPI()
	userId, page, perPage := int64(7995037), 1, 20
	followers := api.GetFollowers(userId, page, perPage)
	// etc
}

Example command implemented:

$ mubi followers --userid 6164674
Atefe - https://mubi.com/users/8819661
Bio: 
Followed on 2021-07-08 14:16:19 +0200 CEST
-----
MAT - https://mubi.com/users/11706732
Bio: mateocc
Followed on 2021-07-08 08:48:59 +0200 CEST
-----
Davi Dantas - https://mubi.com/users/8196670
Bio: A film school dropper. Happy though :)
Followed on 2021-07-07 19:59:34 +0200 CEST
-----
Al - https://mubi.com/users/11031631
Bio: 
Followed on 2021-07-05 10:41:02 +0200 CEST
-----
...

@jdennes jdennes self-assigned this Jul 8, 2021
@jdennes jdennes merged commit 1b96c35 into main Jul 8, 2021
@jdennes jdennes deleted the jdennes/followers branch July 8, 2021 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant