A basic, mildly unreliable bot for Instagram, made using the Selenium API
This is an Instagram bot built using the Selenium API. It includes basic functionality for a personal account, and right now, it doesn’t try to expand user sphere of influence whatsoever. It simply likes posts in the feed and checks on some information. Later versions might have some of that more intense stuff, but for now this is all it does.
Using the FunctionalBot requires only a username and password. If you’re using mac, you can quickly enable this bot by first enabling ‘develop menu’ in preferences, then selecting ‘allow remote automation’.
For non-Mac users, and for blind-haters of Safari, use the instructions at this link to set up Selenium correctly.
The bot package contains most of the logic that the bot employs to perform actions.
The Instagram package contains object wrappers to make parsing through Instagram a little easier.
The default package for implementing extensions of the FunctionalBot, and also where the running of the final bot should occur.
Selenium - This took a long time to get used to using, but once I figured out some of the basics it got a lot easier — it’s a very powerful API once you understand what methods to copy-paste from StackOverflow.
Tools QA Selenium tutorial - Used this to get a basic grasp of some of the features of Selenium.
XPath Tutorial - Used this to start to learn XPath.
XPath Generator - This made XPath stuff a lot easier to learn. Another alternative is this (both are Chrome extensions).
JBrowserDriver - I couldn’t get this to work, so it’s not included in the project, but it’s a cool potential direction for the future.
HTMLUnit - I’m going to try to use this to remove the ‘visible browser’ part of the bot.
Instagram - I couldn’t have done this project without the HTML, servers, and existence of Instagram.