mifi / instauto

Instagram bot / automation library written in Javascript for Node.js
797 stars 145 forks source link

Running multiple accounts and following only the users that other accounts havent followed yet #103

Open mostfurious opened 2 years ago

mostfurious commented 2 years ago

Hey, Really like this bot idea where browser is exposed and you can do whatever you want before passing it to the instauto.

I would like to run multiple accounts at once like 2 at the same time with 10 accounts in queue. Puppeteer allows you to make userdata paths where it saves the cookies and browsing date (which is what i plan to do for each and every account). Set multiple options with their own cookies.json. And then in async await. Once the browser is closed, open another one with different account.

I dont see why i couldnt do that by making multiple puppeteer and insauto instances in once script.

The problem is i dont want the accounts to look spammy. I can see that there is an option to set up a db where followers are being tracked so that in the future they would not be followed again. Question is, how do you make that db global for ALL accounts ?

If for each and every account i would set followedDbPath: './followed.json' (to the same file) would it work ? How does unfollow work ? Does it use that file for reference when unfollowing ?

mifi commented 2 years ago

The db was never designed to work with multiple concurrent instances running against the same file, so I'm not sure if that will work. You can try but no guarantees

unfollow uses followed.json and unfollowed.json files

mostfurious commented 2 years ago

Thanks unfortunate... thanks for the answer. Hopefuly in the future this could be a feature