This project automates the process of logging into Instagram, navigating to specific profiles or posts, scraping all available comments, and storing them in a MySQL database. Built with Playwright for browser automation and MySQL Connector for database operations, it is designed to simulate human behavior and avoid detection by Instagram's anti-bot mechanisms.
- β Instagram Login Automation
- β Simulates Human-like Behavior (random delays, scrolling, etc.)
- β Scrapes Comments from specific posts or profile feeds
- β Keyword Matching (e.g. highlight or filter comments containing a word like "mata")
- β Stores Comments in MySQL Database
- β Creates Table Automatically if Not Exists
| Tool | Purpose |
|---|---|
| Python | Core scripting language |
| Playwright | Headless browser automation |
| MySQL | Data storage |
| mysql-connector-python | Python interface for MySQL |
| Random & Time | Delay functions to mimic human behavior |
pip install playwright mysql-connector-python playwright install