Karsens / instauto

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

instauto

instauto is an Instagram automation/bot library 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.

NEW! 🎉 Now there is 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! 🙌