Skip to content

EnkhAmar/Andro-Bot-Insta

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Andro-Bot-Insta

Simply put this instagram bot works with a Raspberry Pi or any computer connected to an android phone. Basically, I send a series of adb commands to the phone. These command can like pictures from a specific hashtag (in the "Recent" page of the hashtag). Since all images are different in size, and adb commands can only simulate simple clicks on the phone, in order to locate the like button (the little heart) I take a screenshot of the current page on the phone and then I use image recognition (package skimage) to find the coordinates of the like button.

Indeed, its a very simple mechanism but very efficient and I think that it might have a lot of potential.

I am not a programmer or developer so probably the file I have made its messy and not efficient at all, I hope someone will be interested in contributing.

This bot works with telegram as you can send commands and notifications of your phone of how the bot is behaving.

If you need more explanation feel free to ask me questions!!

Indeed, this code needs to be adapted for a different phone. You will see that I often define coordinates like x and y in order to click to a specific part of the screen. These coordinates varies from phon to phone so make sure to use the correct ones for your phone. I am currently running this code with a Raspberry Pi 3 and an android Moto G5.

The files:

  • heart.png is the like button icone used for image recognition
  • run.py is the file used to run the code with telegram
  • action.py contains all the actions and commands used to like, go to hashtags, close instagram, and so on

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%