I have created a Instagram Automated Messaging Tool using Python to send a private message to the profile links you provide! This script uses Selenium browser to execute the commands.
To install and run this project,
You can download the zip file or Clone the Project Repository using Git with the below command:
git clone https://github.com/DhruvAthaide/Instagram-Messaging-Automation.git
Once, you have installed the Repository then you can cd into the directory and pip install the requirements needed to run the tool:
cd Instagram-Messaging-Automation
pip install -r requirements.txt
Then, you need to create a CSV File and name it:
Name: profile_links.csv
Then, you need to set the following column name in the Excel File and paste the Instagram profile's link you want to message in this column:
Column 1: Profile Links
Then, in the 'Instagram.py' file on Line 12 & 13 Enter your Username/Email ID and Password in between the Quotes for the String:
username = "Enter Your Username/Email"
password = "Enter Your Password"
Once the execution is done, there will be a new CSV File called 'profile_links_updated.csv' and in that file there will be a column next to the profile links and it will tell the status of whether it has messaged that particular profile or not.
Then, Enter the path to your profile_links_updated.csv file on Line 68 in the Code:
updated_file_path = "Enter the path to your Profile_links_updated.csv"
Then, customize your messages which you want to send to the Instagram profile's on Line 59-64 and you can add multiple messages which you want to send and the script will randomize the messages sent to each user:
messages = [
"Message 1",
"Message 2",
"Message 3",
# Add more messages as needed
]
Then, you can simply run the python file and not touch anything and it will execute the message sending to the Instagram profile's provided in the XLSX or Excel File.
Keep in mind, the scipt will randomly select any message from the 'messages' array to send to each user profile.