Giter VIP home page Giter VIP logo

instagram-bot.js's Introduction

InstagramBot.js

License powered by webdriverio Version Slack Chat Paypale Donate

https://instagram-bot.js.ptkdev.io

Features

  • [โœ“] Login
  • [โœ“] 2FA (bad location)
  • [โœ“] 2FA (sms pin enabled)
  • [โœ“] Multi-Session
  • [โœ“] Errors manager (bad pin, bad password)
  • [โœ“] Screenshot and Verbose logger
  • [โœ“] Like Mode Classic: bot select random hashtag from config list and like 1 random photo (of last 20), and repeat this all time | 850-950 like/day. Limit is 1000/day for ig. This is safe mode.

Setup - Debian Server

Install bot dependencies:

  1. sudo apt-get install default-jre build-essential xvfb libssl-dev curl wget git chromium xauth

Install google chrome v63

  1. sudo dpkg -i ./bin/google-chrome-stable_current_amd64.deb
  2. sudo apt-get install -y -f

If you need lastest version of chrome update binary files in bin folder:

  1. /bin/chromedriver Download
  2. /bin/selenium-server-standalone.jar Download

Install Node and bot dependencies

  1. curl -sL https://deb.nodesource.com/setup_8.x -o nodesource_setup.sh
  2. sudo bash nodesource_setup.sh
  3. rm nodesource_setup.sh
  4. sudo apt-get install nodejs
  5. npm install

Run Selenium

If you have desktop environment (example: gnome) run:

  1. npm run start-selenium-desktop

If you not have a desktop environment (example: run bot on server) run:

  1. npm run start-selenium-server

Check if work, run:

  1. pm2 logs
  2. If last line is INFO - Selenium Server is up and running selenium work great.

BUG 1: if you received Unable to access jarfile edit sh files in bin folder and add full path of binary, example:

java -Dwebdriver.chrome.driver="/home/your_name/instagram-bot.js/bin/chromedriver" -jar /home/your_name/instagram-bot.js/bin/selenium-server-standalone.jar

BUG 2: selenium generate big log file. Use pm2 logrotate or run with -o /dev/null

Run Bot

  1. Copy root file config.js.tpl to config.js, fill it properly.
  2. Start the bot via npm run start or pm2 npm run start-pm2

Pin

If you received sms or email pin edit loginpin.txt and insert it on first line. Wait 3 minutes...

Check if work:

See logs: cat ./logs/debug.log or png images in ./logs/screenshot

TODO

Features:

  • likemode_superlike - select random hashtag from config list and like 3 random photo of same user | 850-950 like/day.
  • fdfmode_defollowall - defollow all your following (not defollow users in whitelist) | 90 defollow/hour.
  • fdfmode_classic - follow user from random hashtag and defollow after 1h | 300 follow-defollow/day.
  • Add total like/day in config.js

Nice have:

  • docker container

Social Manager Tools

Available:

Coming soon:

License

GNU GENERAL PUBLIC LICENSE

Copyright (c) 2018 Patryk Rzucidล‚o (PTKDev)

instagram-bot.js's People

Contributors

ptkdev avatar

Watchers

James Cloos avatar Aamir Shah avatar

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.