instagram-private-api icon indicating copy to clipboard operation
instagram-private-api copied to clipboard

Trying to get all of my following(7500) but gets 7395 instead

Open hare1994 opened this issue 5 years ago • 7 comments

General Question

Form

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

Question

Hi

I am trying to get all of my following

I follow 7500 people(the maximum allowed)

but when i tried to get them all i get only 7395

The 105 missing is the 105 users whom i followed first (5 years ago)

This is the code

friendshipsRouter.get('/getAllUserFollowingFast/:username', (req,res ,next) => {
    (async() => {
        const targetUser = await ig.user.searchExact(req.params.username);
        let feed = ig.feed.accountFollowing(targetUser.pk);
        let allResults = [];
        let currentPage;
        do {
            currentPage = await feed.items(); //
            currentPage.users.forEach(user => {
                allResults.push(user.username);
            });
        }
        while(feed.isMoreAvailable());

        res.send({allFollowing:allResults, number : allResults.length});
    })()
});

Does anyone have an idea how to solve this?

hare1994 avatar Jan 09 '20 21:01 hare1994

i have same issues

lazyboy1801 avatar Jul 13 '20 09:07 lazyboy1801

Same issue. The followers count is not accurate. Any ideas??

tinmarin avatar Jul 29 '20 16:07 tinmarin

Same issue. The followers count is not accurate. Any ideas??

Does it happen in the app?

Nerixyz avatar Jul 29 '20 17:07 Nerixyz

The error occurs when the number of followers is over 2k. Some followers are duplicated.

lazyboy1801 avatar Aug 06 '20 09:08 lazyboy1801

Same issue. The followers count is not accurate. Any ideas??

Does it happen in the app?

I tried to get all followers from the Instagram web UI by scrolling down to the end in the followers link but there are no duplicates there and the number of followers and the list of users match.

The error occurs when the number of followers is over 2k. Some followers are duplicated.

This is wrong. I also get duplicate followers when the number of followers is around 300.

aliozcan avatar Sep 20 '20 16:09 aliozcan

up!

skinnynpale avatar Nov 04 '21 01:11 skinnynpale

up!

asab1rd avatar Dec 05 '21 02:12 asab1rd