Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Instagram Data Parsing & Analysis (Pure Python)

A Python project that parses Instagram-style raw text data, cleans it, converts it into structured JSON, and performs analysis to extract insights like:

  • Most followed profile
  • Profile with maximum posts
  • Profile following the most users
  • Category distribution

This repository contains both:

  • ✅ A runnable script version (main.py)
  • ✅ A Jupyter notebook (notebooks/instagram_data_parsing_analysis.ipynb)

🚀 Features

  • Parse unstructured raw text records
  • Clean & normalize fields
  • Store structured data as JSON
  • Run analytics (top accounts, category counts)
  • Export cleaned CSV

📂 Project Structure

instagram-data-analysis/
│── main.py
│── src/
│   ├── parser.py
│   ├── analysis.py
│   └── utils.py
│── notebooks/
│   └── instagram_data_parsing_analysis.ipynb
│── data/
│   ├── initialdata.txt
│   ├── finaldata.csv
│   └── data.json
│── README.md
│── requirements.txt
│── .gitignore
│── LICENSE

⚙️ Installation

git clone https://github.com/Nandd11/instagram-data-analysis.git
cd instagram-data-analysis
python -m venv venv
venv\Scripts\activate
pip install -r requirements.txt

▶️ Run (Script Mode)

python main.py

It will:

  1. Parse data/initialdata.txt
  2. Create data/data.json
  3. Create data/finaldata.csv
  4. Print analytics summary

🧪 Example Output

Total profiles: 150
Top by followers: user_abc (1,200,000)
Top by posts: user_xyz (12,430)
Top by following: user_pqr (7,210)

Category distribution:
Blogger: 42
Fitness: 31
Business: 21
...

👤 Author

Nand Patel
GitHub: https://github.com/Nandd11

About

Parse unstructured Instagram-style text data into JSON/CSV and perform analytics using Python.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages