A powerful multi-account Instagram automation bot built by ZehraSec that enables automated interactions across multiple Instagram accounts with advanced proxy support.
██╗███╗ ██╗███████╗████████╗ █████╗ ███████╗██╗ ██╗ █████╗ ██████╗ ███╗ ███╗
██║████╗ ██║██╔════╝╚══██╔══╝██╔══██╗██╔════╝██║ ██║██╔══██╗██╔══██╗████╗ ████║
██║██╔██╗ ██║███████╗ ██║ ███████║███████╗██║ █╗ ██║███████║██████╔╝██╔████╔██║
██║██║╚██╗██║╚════██║ ██║ ██╔══██║╚════██║██║███╗██║██╔══██║██╔══██╗██║╚██╔╝██║
██║██║ ╚████║███████║ ██║ ██║ ██║███████║╚███╔███╔╝██║ ██║██║ ██║██║ ╚═╝ ██║
╚═╝╚═╝ ╚═══╝╚══════╝ ╚═╝ ╚═╝ ╚═╝╚══════╝ ╚══╝╚══╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝
🤖
["InstaSwarm"]
.-"""-.
/ .===. \
\/ 6 6 \/
( \___/ )
___ooo__V__ooo___
⚙️ InstaSwarm by ZehraSec | Multi-account IG Bot
- 🔥 Multi-Account Support: Manage multiple Instagram accounts simultaneously
- 🌐 Advanced Proxy Support: HTTP(S), SOCKS4, and SOCKS5 proxy compatibility
- 🎯 Automated Actions: Like, comment, follow, and auto-reply to comments
- 📊 Comprehensive Logging: Detailed activity logging for monitoring
- 🔀 Smart Randomization: Random delays and proxy rotation for authenticity
- 🛡️ Error Handling: Robust error management and recovery
- 📱 Cross-Platform: Works on Windows, Linux, and Termux (Android)
- Python 3.7+
- pip package manager
-
Clone the repository
git clone https://github.com/yashab-cyber/instaswarm.git cd instaswarm -
Install dependencies
pip install -r requirements.txt
-
Set up configuration files
- Create
accounts.txtwith your Instagram accounts - Create
comments.txtwith comments to use - Configure
proxies.txtwith your proxy list (optional)
- Create
instaswarm/
├── bot.py # Main bot script
├── requirements.txt # Python dependencies
├── accounts.txt # Instagram account credentials
├── comments.txt # Comment templates
├── proxies.txt # Proxy list (optional)
├── instaswarm.log # Activity log file
└── README.md # This file
Add your Instagram accounts in the format:
username1,password1
username2,password2
username3,password3
Add comments that the bot will randomly select:
Amazing post! 🔥
Love this content! ❤️
Great work! 👏
Awesome! 😍
Configure proxies for enhanced anonymity:
# HTTP/HTTPS Proxies
http://user:pass@proxy1.example.com:8080
https://user:pass@proxy2.example.com:8080
# SOCKS5 Proxies
socks5://user:pass@proxy3.example.com:1080
# SOCKS4 Proxies
socks4://user:pass@proxy4.example.com:1080
-
Run the bot
python bot.py
-
Enter Instagram Post URL
- Paste the Instagram post URL you want to interact with
- The bot will automatically extract the post ID
-
Monitor Activity
- Check
instaswarm.logfor detailed activity logs - Watch terminal output for real-time status
- Check
PROXY_ENABLED = True # Enable/disable proxy usage
PROXY_FILE = "proxies.txt" # Proxy file location- Log file:
instaswarm.log - Log level: INFO
- Includes timestamps and detailed activity tracking
- Proxy Rotation: Automatically rotates through available proxies
- Random Delays: Implements human-like delays between actions
- Error Recovery: Continues operation even if individual accounts fail
- Proxy Validation: Validates proxy format before usage
For each account, the bot performs:
- Login with proxy support
- Like the target post
- Comment with random message from your list
- Follow the post author
- Auto-reply to recent comments on the post
- Logout safely
All activities are logged to instaswarm.log including:
- Account login status
- Proxy usage information
- Action confirmations (likes, comments, follows)
- Error messages and recovery attempts
- Timestamps for all activities
- Rate Limiting: Built-in delays prevent Instagram rate limiting
- Account Safety: Use high-quality proxies to protect accounts
- Terms of Service: Ensure compliance with Instagram's ToS
- Responsible Usage: Use for legitimate engagement only
instagrapi: Instagram API clientpysocks: Advanced proxy supportpillow: Image processing support
| Proxy Type | Supported | Format |
|---|---|---|
| HTTP | ✅ | http://user:pass@host:port |
| HTTPS | ✅ | https://user:pass@host:port |
| SOCKS4 | ✅ | socks4://user:pass@host:port |
| SOCKS5 | ✅ | socks5://user:pass@host:port |
-
Login Failed
- Check account credentials in
accounts.txt - Verify proxy connectivity
- Ensure accounts aren't restricted
- Check account credentials in
-
Proxy Errors
- Validate proxy format and credentials
- Test proxy connectivity manually
- Check proxy server status
-
Rate Limiting
- Increase delays between actions
- Use fewer accounts simultaneously
- Implement longer session breaks
- Fork the repository
- Create a feature branch
- Make your changes
- Test thoroughly
- Submit a pull request
This project is for educational purposes only. Users are responsible for compliance with Instagram's Terms of Service and applicable laws.
- 📷 Instagram: @_zehrasec
- 📘 Facebook: ZehraSec
- 💬 WhatsApp: Channel
- 🔗 LinkedIn: Company
- 🐦 Twitter: @zehrasec
- 🌐 Website: zehrasec.com
- 🧠 Lewis AI: lewis.zehrasec.com
- 👁 ZehraSight: zehrasight.zehrasec.com
If you find this project helpful, please give it a star! For support and questions, reach out through our social media channels.