Skip to content

Kamran6789/Instagram-Comment-Scraper-using-Playwright-MySQL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“² Instagram Comment Scraper using Playwright & MySQL

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.


πŸš€ Features

  • βœ… 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

🧰 Tech Stack

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

πŸ“¦ Installation

pip install playwright mysql-connector-python playwright install

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages