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

Instagram ignores subscription request #237

Open
SenQ77 opened this issue Mar 18, 2021 · 1 comment
Open

Instagram ignores subscription request #237

SenQ77 opened this issue Mar 18, 2021 · 1 comment

Comments

@SenQ77
Copy link

SenQ77 commented Mar 18, 2021

The problem is that the bot stops subscribing when it reaches a number approximately equal to 40. Here is the code:

        await client.login()
        while (test.length <= 1440) {
            await client.getFollowers({
                userId: id,
                first: 50,
                after: cur
            }).then(followers => {
                followers.data.forEach(function (value) {
                    test.push(value.id);
                });
            })
            console.log(test.length)
        }

        function rand(min, max) {
            return (max - min) * Math.random() + min
        }

        setInterval(() => {
            for (let i = 0; i < 10; i++) {
                setTimeout(function () {
                    let data = new Date(),
                        h = data.getHours(),
                        m = data.getMinutes(),
                        s = data.getSeconds()
                    client.follow({ userId: `${test[p++]}` })
                    console.log(`${p}\nID - ${test[p]}\nDate - ${h < 10 ? `0${h}` : h}:${m < 10 ? `0${m}` : m}:${s < 10 ? `0${s}` : s}\n`)
                }, (Math.floor(Math.random() * 3000) + 1000) * i);
            }
        }, rand(600000, 800000))
@MonsieurBibo
Copy link

No idea, it might be IG detecting "malicious" activities.

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

No branches or pull requests

2 participants