Giter VIP home page Giter VIP logo

node-puppeteer-instagram-bot's Introduction

node-puppeteer-instagram-bot

A simple Node.js Instagram Bot using Puppeteer.js

This Instagram Bot will authenticate and login into your Instagram account. By providing a number of hashtags it creates engagement by liking posts and following users. It uses PouchDB as a local database to keep track of the users you are following and can unfollow users after a specific amount of days.

How to run the bot

  • Download or clone this repo.
  • Run npm install to install libraries.
  • Update the config.json file with your credentials and hashtags.
  • Run node index.js.

In depth guide

A complete guide on how the bot works is available here.

Additional info

  • This bot does not support two-factor authentication.
  • This bot relies on css selectors to navigate the Instagram website. These selectors are defined in the config.json. Once in a while Instagram pushes a new design and the selectors need to be updated. There's no guarantee this repo will always have the latest selectors.
  • Use responsibly, running this bot 24/24 is not a good idea and will get your account suspended or banned.

node-puppeteer-instagram-bot's People

Contributors

nicolas-multiminds avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

node-puppeteer-instagram-bot's Issues

The "In Depth Guide" is down

It looks like glamdevhero.com is down and I can't access the guide you linked to. I got started going through it already and would love to continue if there's a way to access it again. Thanks for putting it together.

Choose to do self like or not

If in the latest posts there are own images, then the script will like them:

// Decide to like post
if (hasEmptyHeart !== null && Math.random() < cnf.settings.like_ratio) {
     ...

But if there is a control for the username this will not happen, for example:

// Decide to like post
if ( username != cnf.username && hasEmptyHeart !== null && Math.random() < cnf.settings.like_ratio) {
     ...

Is it correct? Or it doesn't matter?

working good but

(node:99357) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: No node found for selector: span.fr66n > button
(node:99357) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Sometimes comes that and no working before restarting, i thought if this could be ... handled someway?

Doesn't seem to work..

Running...per the instructions from cloning the github on a digitalocean node clean onclick install and gettng this:

# node index.js
(node:2572) UnhandledPromiseRejectionWarning: Error: Chromium revision is not downloaded. Run "npm install" or "yarn install"
    at Launcher.launch (/root/bot-boy/node-puppeteer-instagram-bot/node_modules/puppeteer/lib/Launcher.js:112:15)
    at <anonymous>
(node:2572) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:2572) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

following the instructions, I run npm install

which then leads to a message:
npm WARN [email protected] No repository field.

Then if I manually add the path to Chromium it still gets a bunch of warnings/errors...just wondering if you have tried attempting to run per the instructions lately...I'm stuck.

Any updates...?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.