July 14, 2021
A multifunctionality automated instagram bot that can mass text users, receive and read a message and store it somewhere with user details and much more. Powered by Selenium.
$ pip install pipenv
$ pipenv install
$ pipenv shell
Inside the virtual environment, type:
$ flask run
and open the URL.
from BOT import Bot
bot = Bot()
bot.login(username, password)
bot.logout()
from BOT import Bot
bot = Bot()
bot.login(username, password)
bot.dm('user','Hi there')
bot.logout()
from BOT import Bot
bot = Bot()
bot.login(username, password)
bot.follow_users(['user1','user2'])
bot.logout()
from BOT import Bot
bot = Bot()
bot.login(username, password)
bot.like_by_keyword(keyword, numOfPosts)
bot.logout()
from BOT import Bot
bot = Bot()
bot.login(username, password)
bot.group_dm(['user1','user2', 'user3'],'Final Testing')
bot.logout()
from BOT import Bot
bot = Bot()
bot.login(username, password)
bot.multiple_dm(['user1','user2', 'user3'],'Final Testing')
bot.logout()
from BOT import Bot
bot = Bot()
bot.login(username, password)
# if csv file doesn't contains message column
bot.multiple_dm_from_csv('path to csv file','general message')
# else
bot.multiple_dm_from_csv('path to csv file')
bot.logout()
from BOT import Bot
bot = Bot()
bot.login(username, password)
bot.multiple_dm_from_db(general_message)
bot.logout()
from BOT import Bot
bot = Bot()
bot.login(username, password)
bot.multiple_dm_followers(general_message)
bot.logout()
    UPDATE THE IMAGES DIRECTORY WITH SCREENSHOTS TAKEN FROM YOUR COMPUTER
    UPDATE THE DATABASE CREDENTIALS IN db_credentials.py FILE
For further reference watch this video: https://www.youtube.com/watch?v=XI_GyOnw3M0
from BOT import Bot
bot = Bot()
bot.login(username, password)
bot.retrieve_messages([users])
bot.logout()
    UPDATE THE IMAGES DIRECTORY WITH SCREENSHOTS TAKEN FROM YOUR COMPUTER
    UPDATE THE DATABASE CREDENTIALS IN db_credentials.py FILE
For further reference watch this video: https://www.youtube.com/watch?v=XI_GyOnw3M0
from BOT import Bot
bot = Bot()
bot.login(username, password)
bot.retrieve_messages_from_csv('path to csv file')
bot.logout()
    UPDATE THE IMAGES DIRECTORY WITH SCREENSHOTS TAKEN FROM YOUR COMPUTER
    UPDATE THE DATABASE CREDENTIALS IN db_credentials.py FILE
For further reference watch this video: https://www.youtube.com/watch?v=XI_GyOnw3M0
from BOT import Bot
bot = Bot()
bot.login(username, password)
bot.retrieve_messages_from_inbox(tolerance = 2)
bot.logout()
from BOT import Bot
bot = Bot()
bot.login(username, password)
bot.download_pics(keyword)
bot.logout()
from BOT import Bot
bot = Bot()
bot.login(username, password)
bot.share_latest_post()
bot.logout()
    UPDATE THE IMAGES DIRECTORY WITH SCREENSHOTS TAKEN FROM YOUR COMPUTER
    UPDATE THE DATABASE CREDENTIALS IN db_credentials.py FILE
For further reference watch this video: https://www.youtube.com/watch?v=XI_GyOnw3M0
``` from __retrieve_messages__ import Retrieve_messages Retrieve_messages(driver, [users]) ```    UPDATE THE IMAGES DIRECTORY WITH SCREENSHOTS TAKEN FROM YOUR COMPUTER
    UPDATE THE DATABASE CREDENTIALS IN db_credentials.py FILE
For further reference watch this video: https://www.youtube.com/watch?v=XI_GyOnw3M0
``` from __retrieve_messages_from_csv__ import Retrieve_messages_from_csv Retrieve_messages_from_csv(driver, 'path to csv file') ```    UPDATE THE IMAGES DIRECTORY WITH SCREENSHOTS TAKEN FROM YOUR COMPUTER
    UPDATE THE DATABASE CREDENTIALS IN db_credentials.py FILE
For further reference watch this video: https://www.youtube.com/watch?v=XI_GyOnw3M0
``` from __retrieve_messages_from_inbox__ import Retrieve_messages_from_inbox Retrieve_messages_from_inbox(tolerance = 1) ```Platform: Python files. Virtual Environment using PIPENV.
Libraries: Selenium, Instabot, InstaPy, Time, Pyperclip, Pyautogui, OpenCv, os, wget, pymongo
Softwares: Windows Chromedriver, MongoDB
Low-Level Specs: Whole program is built in Object Oriented fashion and Modular structure is followed throughout.