A sophisticated Instagram automation bot built with Python, featuring intelligent engagement, content management, and analytics capabilities.
- Smart Following/Unfollowing: Target users based on hashtags, locations, and user interactions
- Intelligent Liking: Like posts with customizable filters and rate limiting
- Comment Management: Post contextual comments with anti-spam protection
- Analytics Dashboard: Track performance metrics and engagement rates
- Safety First: Built-in rate limiting and Instagram API compliance
- Configurable Settings: Easy-to-modify configuration for different strategies
- Python 3.8+
- Instagram account
- Stable internet connection
- Clone the repository:
git clone <repository-url>
cd instagram-bot- Install dependencies:
pip install -r requirements.txt- Configure your settings:
cp config/config_template.json config/config.json- Update
config/config.jsonwith your Instagram credentials and preferences.
from src.instagram_bot import InstagramBot
bot = InstagramBot()
bot.login()
bot.start_automation()See the Instagram_Bot_Tutorial.ipynb notebook for detailed examples and explanations.
instagram-bot/
├── src/
│ ├── instagram_bot.py # Main bot class
│ ├── engagement.py # Engagement strategies
│ ├── analytics.py # Analytics and reporting
│ └── utils.py # Utility functions
├── config/
│ ├── config.json # Configuration file
│ └── config_template.json # Template configuration
├── data/
│ ├── logs/ # Bot activity logs
│ └── analytics/ # Analytics data
├── notebooks/
│ └── Instagram_Bot_Tutorial.ipynb
├── requirements.txt
└── README.md
Key configuration options in config/config.json:
username: Your Instagram usernamepassword: Your Instagram passwordtarget_hashtags: Hashtags to target for engagementdaily_follows: Maximum follows per daydaily_likes: Maximum likes per daycomment_probability: Probability of commenting (0-1)
The bot provides comprehensive analytics including:
- Engagement rates
- Follower growth
- Activity logs
- Performance metrics
- Rate Limiting: The bot includes built-in delays to avoid Instagram's rate limits
- Account Safety: Use responsibly to avoid account restrictions
- Terms of Service: Ensure compliance with Instagram's Terms of Service
- Testing: Always test with a secondary account first
- Fork the repository
- Create a feature branch
- Make your changes
- Submit a pull request
This project is for educational purposes only. Use responsibly and in accordance with Instagram's Terms of Service.
Common issues and solutions:
- Login Issues: Check credentials and 2FA settings
- Rate Limiting: Reduce activity rates in configuration
- Element Not Found: Instagram may have updated their interface
For more help, check the Jupyter notebook tutorial or open an issue.
For questions and support, please refer to the documentation in the Jupyter notebook or create an issue in the repository.