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

Get the following list of a public user #1746

Open
1 task
AnujSsStw opened this issue Dec 21, 2023 · 1 comment
Open
1 task

Get the following list of a public user #1746

AnujSsStw opened this issue Dec 21, 2023 · 1 comment
Labels
question unconfirmed This issue hasn't been read/confirmed/accepted by an admin

Comments

@AnujSsStw
Copy link

General Question

Read the Notes and fill out the form.
Switch to Preview for reading.

Form

Put an [x] if you meet the condition, else leave [ ].

Question

get the a following list of a user whose id is public. Like eminem following list.

@AnujSsStw AnujSsStw added question unconfirmed This issue hasn't been read/confirmed/accepted by an admin labels Dec 21, 2023
@RodrigoSKohl
Copy link

            const targetUsername = "eminem";
            // Get target user ID
            const targetUser = await retry(() => ig.user.searchExact(targetUsername), { retries: 3 });
            if (!targetUser) {
                throw new Error(`User ${targetUsername} not found`);
            }

            // Get target user followers
            const followersFeed = ig.feed.accountFollowers(targetUser.pk);
            const followers = await retry(() => followersFeed.items(), { retries: 3 });

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question unconfirmed This issue hasn't been read/confirmed/accepted by an admin
Projects
None yet
Development

No branches or pull requests

2 participants