|
Download walkthrough.md from Aiagenttribe/Automation_Insta_Messages: direct link, hf CLI and curl.
- Browser
- Download file 1.29 kB
-
https://huggingface.co/Aiagenttribe/Automation_Insta_Messages/resolve/main/walkthrough.md
- Command line
-
hf download hf://Aiagenttribe/Automation_Insta_Messages/walkthrough.md
-
curl -L -o walkthrough.md https://huggingface.co/Aiagenttribe/Automation_Insta_Messages/resolve/main/walkthrough.md
1.29 kB
Instagram Bot Setup Guide
The Instagram automation agent has been generated. Follow these steps to get it running.
1. Setup Environment
- Open the file
.env.exampleand rename it to.env(or create a new.envfile). - Fill in your Instagram credentials:
IG_USERNAME=your_actual_username IG_PASSWORD=your_actual_password IG_MESSAGE_TEXT=Hi! Thanks for following. Check out my link...
2. Install Dependencies
Open a terminal in the project directory and run:
pip install -r requirements.txt
3. Run the Bot
python main.py
How it works
- First Run: It will just fetch your current followers and save them to
followers.json. It will not sends DMs to existing followers. - Subsequent Runs: It checks every 10 minutes. If it finds a new follower (someone not in the JSON file), it sends them the DM and adds them to the list.
- Two-Factor Authentication (2FA): If you have 2FA enabled,
instagrapimight ask for the code in the terminal or fail. It is recommended to use a dedicated account or disable 2FA for the bot if possible (though less secure).- Safety: Do not decrease the polling interval (600s). Fast actions can lead to temporary or permanent bans.