This directory contains template configuration files for the Instagram bot.
- session_morning.yml.example - Morning session (9-11am), Python/Backend focus
- session_lunch.yml.example - Lunch session (12-2pm), Infrastructure/DevOps focus
- session_evening.yml.example - Evening session (5-7pm), Data/Cloud focus
- session_extra.yml.example - Extra session (flexible), General tech content
- strategy_growth.yml.example - Daily growth (follow/like competitors)
- strategy_cleanup.yml.example - Weekly cleanup (unfollow non-mutuals)
- filters.yml.example - Quality filters for all sessions
Windows:
mkdir accounts
# Session configs
copy config-templates\session_morning.yml.example accounts\session_morning.yml
copy config-templates\session_lunch.yml.example accounts\session_lunch.yml
copy config-templates\session_evening.yml.example accounts\session_evening.yml
copy config-templates\session_extra.yml.example accounts\session_extra.yml
# Strategy configs
copy config-templates\strategy_growth.yml.example accounts\strategy_growth.yml
copy config-templates\strategy_cleanup.yml.example accounts\strategy_cleanup.yml
# Filters
copy config-templates\filters.yml.example accounts\filters.ymlLinux/Mac:
mkdir -p accounts
# Session configs
cp config-templates/session_morning.yml.example accounts/session_morning.yml
cp config-templates/session_lunch.yml.example accounts/session_lunch.yml
cp config-templates/session_evening.yml.example accounts/session_evening.yml
cp config-templates/session_extra.yml.example accounts/session_extra.yml
# Strategy configs
cp config-templates/strategy_growth.yml.example accounts/strategy_growth.yml
cp config-templates/strategy_cleanup.yml.example accounts/strategy_cleanup.yml
# Filters
cp config-templates/filters.yml.example accounts/filters.yml# For USB devices (physical phone)
adb devices
# Example output: fbc9d1f30eb2 device
# For emulators (MEmu)
adb connect 127.0.0.1:21533
adb devices
# Example output: 127.0.0.1:21533 deviceEdit each config file and replace placeholders:
YOUR_USERNAME_HERE→ your Instagram usernameYOUR_DEVICE_ID_HERE→ your device ID
Quick edit (Linux/Mac):
# Replace in all files at once
sed -i 's/YOUR_USERNAME_HERE/maxhaider.dev/g' accounts/*.yml
sed -i 's/YOUR_DEVICE_ID_HERE/fbc9d1f30eb2/g' accounts/*.ymlQuick edit (Windows PowerShell):
Get-ChildItem accounts\*.yml | ForEach-Object {
(Get-Content $_.FullName) -replace 'YOUR_USERNAME_HERE', 'maxhaider.dev' |
Set-Content $_.FullName
}Create .env file in project root:
INSTAGRAM_USER_A=your_instagram_username
INSTAGRAM_PASS_A=your_instagram_password
DEVICE=your_device_idNote: Username and device in YAML configs override .env values.
Session Configs (session_*.yml):
- Update
hashtag-likers-topwith hashtags relevant to your niche - Update
blogger-post-likerswith competitor/influencer accounts - Each session should have different sources for variety
Example niches:
- Backend/DevOps: python, django, kubernetes, terraform, aws, docker
- Frontend: react, nextjs, typescript, webdev, javascript, vuejs
- Data Science: datascience, machinelearning, ai, analytics, bigdata
- Mobile: flutter, reactnative, ios, android, kotlin, swift
Strategy Configs (strategy_*.yml):
- Update
blogger-post-likerswith competitors in your niche - Adjust limits based on account age/activity
Filters (filters.yml):
- Modify
blacklisted-wordsto filter unwanted accounts - Enable
mandatory-wordsto target specific keywords - Adjust follower ranges for your target audience
- Setting up cron/scheduled automation
- Want different content sources at different times
- Building daily routine (morning/lunch/evening)
Example:
# Linux cron
30 9 * * * cd ~/repos/instabot && .venv/bin/python runner.py morning
45 13 * * * cd ~/repos/instabot && .venv/bin/python runner.py lunch
15 18 * * * cd ~/repos/instabot && .venv/bin/python runner.py evening- Manual runs for specific goals
- Testing different approaches
- One-off growth campaigns
Example:
python runner.py growth # Daily growth
python runner.py cleanup # Weekly cleanup# Test individual sessions
python runner.py morning
python runner.py lunch
python runner.py evening
python runner.py extra
# Test strategies
python runner.py growth
python runner.py cleanup# Run morning session at 9:30am daily
30 9 * * * cd ~/repos/instabot && .venv/bin/python runner.py morning >> logs/cron.log 2>&1See docs/ for Windows Task Scheduler setup.
instabot/
├── accounts/
│ ├── maxhaider.dev/ # Account-specific (created by bot)
│ │ └── filter.json # Account filters
│ ├── session_morning.yml # Morning session config
│ ├── session_lunch.yml # Lunch session config
│ ├── session_evening.yml # Evening session config
│ ├── session_extra.yml # Extra session config
│ ├── strategy_growth.yml # Growth strategy
│ ├── strategy_cleanup.yml # Cleanup strategy
│ └── filters.yml # Base filters
├── config-templates/ # Templates (this directory)
├── logs/ # Session logs (gitignored)
└── .env # Credentials (gitignored)
accounts/ directory to git. They may contain sensitive device IDs and settings.
The .gitignore file protects:
accounts/directory.envfilelogs/directorycrashes/directory
Only these template files (with .example extension) should be committed to version control.
With 3 session days (Tue/Thu/Sat/Sun):
- Morning + Lunch + Evening
- ~110-120 interactions
- ~65-75 likes
- ~22-25 follows
With 4 session days (Mon/Wed/Fri):
- Morning + Lunch + Extra + Evening
- ~135-150 interactions
- ~80-90 likes
- ~27-30 follows
Weekly cleanup (Sunday):
- Unfollows non-mutuals
- Keeps followers and mutuals
- ~5-10 minutes
- Begin with 3 sessions/day
- Monitor for 1 week
- Gradually increase if no issues
- Different hashtags per session
- Mix hashtags + blogger-post-likers
- Rotate targets weekly
New accounts (< 3 months):
- Reduce limits by 30-40%
- 2 sessions/day max
- Avoid aggressive following
Established accounts (> 6 months):
- Can use template limits as-is
- 3-4 sessions/day safe
- Higher follow percentages OK
- Full Setup Guide:
docs/LINUX_USB_DEVICE_SETUP.mdordocs/SETUP_MEMU.md - Quick Reference:
docs/LINUX_QUICK_REFERENCE.md - Project Overview:
README.md - Architecture:
CLAUDE.md