mifi / instauto

Instagram bot / automation library written in Javascript for Node.js
797 stars 145 forks source link
automation bot bot-library follow instagram instagram-automation instagram-bot javascript unfollow

Discord PayPal

instauto is an Instagram automation/bot library (API) written in modern, clean javascript using Google's Puppeteer. Goal is to be very easy to set up, use, and extend, and obey instagram's limits. Heavily inspired by InstaPy, but I thought it was way too heavy and hard to setup.

There is also a GUI application for those who don't want to code: SimpleInstaBot

Setup

You can run this code for example once every day using cron or pm2 or similar

See index.js for available options.

Supported functionality

See example.js for example of features

Tips

Troubleshooting

Running on Raspberry Pi

Because puppeteer chrome binaries are not provided for RPi, you need to first install chromium using apt.

Then replace your puppeteer launch code:

browser = await puppeteer.launch({
    executablePath: '/usr/bin/chromium-browser',
    headless: true,
    args: ['--disable-features=VizDisplayCompositor'],
});

See also:

Also you might want to install the more lightweight package puppeteer-core instead of puppeteer.

Running with pm2

First install pm2. (npm i -g pm2) Then copy instabot.yml into the same dir as example.js and run:

pm2 start instabot.yml
pm2 save
pm2 startup

Now it will run automatically on reboot! 🙌

Running in Docker

We've added a Docker support for instauto! In the environment section of your docker-compose.yml you need to specify your configuration for login and performance. If you want to raise another container, just copy the service with diff name and run the compose. You'll need to specify different ports.

docker-compose --profile instauto up -d

Donate 🙈

This project is maintained by me alone. The project will always remain free and open source, but if it's useful for you, consider supporting me. :) It will give me extra motivation to improve it.

Paypal | crypto

Credits


Made with ❤️ in 🇳🇴

More apps by mifi.no

Follow me on GitHub, YouTube, IG, Twitter for more awesome content!