This Project is based on instauto, since the original project is not maintained anymore and out of date.
Main goal here was to migrate to latest tooling (updated Puppeteer, eslint, prettier), migration to typescript and more readable and easier improvable codebase. Also added new features like muting followed users and generally keeping the features up to date with latest instagram changes.
- Install Node 21.0.0 or higher
- Install dependencies
npm install
- Either use the default config and fill out the credentials and/or adjust the other options as needed. Or duplicate the default folder and name it
config/your-config-name
. - First start needs to be run with password as second argument. For example:
npm run start default MyPassword
.- Else run the bot with
npm run start
ornpm run start your-config-name
.
- Else run the bot with
- This is also how you can have different accounts and configs and run them in parallel.
- Fix liking images (I guess it's broken?)
- Fix taking screenshots
- Fix running puppeteer with chromium or firefox (
page.goto()
timeout after the initialization)
- Follow the followers of some particular users. (e.g. celebrities.) Parameters like max/min ratio for followers/following can be set.
- Unfollow users that don't follow us back. Will not unfollow any users that we recently followed.
- Unfollow auto followed users (also those following us back) after a certain number of days.
- The code automatically prevents breaching 100 follow/unfollows per hour or 700 per 24hr, to prevent bans. This can be configured.
- Have different configs for different accounts and run them in parallel.
- Mute followed users (follow and mute stories and posts), so your feed keeps clean.
Run this on a machine with a non-cloud IP to avoid being banned
- How to run the bot with a different config?
- Duplicate the default folder and name it
config/your-config-name
. - Adjust the options in the
options.ts
file. - Run the bot with
npm run start your-config-name
. - This is also how you can have different accounts and configs and run them in parallel.
- Duplicate the default folder and name it
-
running in Docker / Pi
- Currently running this bot with something else than chrome results in a timeout of
page.goto()
, so you need to run it with chrome, chromium does not work.
- Currently running this bot with something else than chrome results in a timeout of
-
Bot can't find the button and fields
- Usually this bot should set your Instagram to english, if it's not, you have to manually change the language to english in your instagram profile settings.
Support this project with a donation (paypal.me/hellotece) or make a pull request.