How henryalbu/auto-instagram-posting-bot works
AIPB is a desktop GUI bot that collects images and captions from 9gag or an Instagram account, queues them locally, then uses Selenium to publish them to Instagram. The main workflow runs from the GUI through the posting loop; collection differs by source. Local queue and duplicate tracking support that flow. The README also documents category selection, polling, post limits, and Facebook login. Source excerpts show the core calls and file transfers; unsampled UI and initialization details are represented only where documented.
Main entry points: insta.py Posting loop · ninegag.py 9gag collector · insta_scraper.py Instagram scraper · app.py Desktop UI
Components 15
User Control
- Desktop UI
app.py - Runtime settings
settings.py
Image Collection
- 9gag collector
ninegag.py - Instagram scraper
insta_scraper.py
Local State
- Post queue
- Duplicate ledger
- Image files
Instagram Publishing
- Posting loop
insta.py - Browser automation
insta.py
Other components
- Bot operator
- 9gag
- Source Instagram
- Scraper CLI
- Posting Instagram
- Facebook login
Connections 21
- Bot operator → Desktop UI: configures run
README.md - Desktop UI → Runtime settings: sets options
app.py - Desktop UI → Posting loop: starts posting
app.py - Posting loop → Runtime settings: reads options
insta.py - Posting loop → 9gag collector: requests posts
insta.py - Posting loop → Instagram scraper: requests posts
insta.py - 9gag collector → 9gag: fetches images
ninegag.py - Instagram scraper → Scraper CLI: runs scraper
insta_scraper.py - Scraper CLI → Source Instagram: retrieves media
- 9gag collector → Post queue: writes posts
ninegag.py - Instagram scraper → Post queue: writes posts
insta_scraper.py - 9gag collector → Duplicate ledger: records IDs
ninegag.py - Instagram scraper → Duplicate ledger: records IDs
insta_scraper.py - 9gag collector → Image files: downloads images
ninegag.py - Scraper CLI → Image files: saves media
- Posting loop → Post queue: loads next post
insta.py - Posting loop → Browser automation: drives publishing
insta.py - Browser automation → Post queue: reads caption
insta.py - Browser automation → Image files: selects image
insta.py - Browser automation → Posting Instagram: logs in and posts
insta.py - Browser automation → Facebook login: uses login
insta.py