Skip to content

Pelellone/instagram-bot.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

InstagramBot.js

License powered by webdriverio Version Slack Chat Paypale Donate

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

Features

  • [✓] Login
  • [✓] 2FA
  • [✓] 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 | 750-900 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: 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

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 | 750-900 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)

About

🤖 Instagram Bot made with love and nodejs

Resources

License

Stars

Watchers

Forks

Packages

No packages published