This project implements an automated bot to interact with Instagram and perform various tasks, alongside content scraping and analysis for actionable insights. Built using Selenium, it offers both automation and data visualization features for social media data.
- Login to Instagram: Automates logging into your Instagram account.
- Search Functionality: Searches for specific keywords (e.g., "food") and displays related accounts.
- Profile Management: Automates opening, following, and unfollowing profiles.
- Post Interaction: Likes and unlikes posts programmatically.
- Follower Analysis: Extracts follower lists from specific profiles.
- Story Viewer: Checks and views stories of specific accounts, handling error scenarios.
- Account Insights: Identifies top accounts with the highest followers from a search result.
- Post Frequency Analysis: Counts the number of posts by accounts in the last three days.
- Content Scraping: Extracts content from posts and identifies popular hashtags.
- Data Visualization: Creates pie charts for hashtags and bar graphs for follower-to-like ratios.
- Engagement Metrics: Calculates average likes and engagement ratios for profiles.
- Language: Python
- Automation Framework: Selenium
- Data Visualization: Matplotlib
- Web Scraping: Selenium
- Tools: WebDriver for browser automation
- Open Notebook 1 (Insta_bot_1.ipynb) for automation tasks.
- Open Notebook 2 (InstaBot_2.ipynb) for data scraping and analysis.
- Run the cells sequentially, following the inline comments for guidance.
- Automation: Seamless interaction with Instagram tasks.
- Data Analysis:
- CSV file with word frequency data.
- Pie chart for top hashtags.
- Bar graph for engagement metrics.
This project demonstrates the potential of automation and data analytics in leveraging social media platforms like Instagram. By combining Selenium for task automation with Python's data handling and visualization capabilities, it provides a powerful toolkit to automate repetitive tasks and derive insights from social media content.
From simplifying interactions such as logging in, following/unfollowing profiles, and liking posts, to advanced data scraping and analysis for hashtags and engagement metrics, the project highlights practical applications of programming in social media management. It sets the foundation for future enhancements, such as integrating AI-based analytics for sentiment analysis and improving scalability for large datasets.