Unlock Social Insights with Osintgraph: Mapping Instagram Networks Using Neo4j
The Power of Social Network Analysis
In today’s interconnected world, social relationships reveal more about individuals than surface-level profiles suggest. Osintgraph bridges the gap between Instagram’s social data and professional network analysis through Neo4j’s graph database technology. This powerful combination transforms social connections into actionable intelligence for legitimate research purposes.
Core Functionality Explained
🔧 Essential Command Toolkit
⚙️ Global Configuration Options
# Adjust default limits (1000 each)
-follower_limit 1500
-followee_limit 1500
# Enable troubleshooting
-debug
# Prevent detection
-rate_limit 200 # Pauses after 200 requests
Practical Insights from Network Analysis
📍 Geographical Connections
When targets and their connections follow local businesses or community pages, we can:
-
Identify frequent location tags -
Map clustered business connections -
Cross-reference check-in patterns
https://github.com/user-attachments/assets/71a7bd04-7a5f-4e59-9bb2-2233ce62423b
👥 Professional & Educational Context
Network patterns reveal:
-
Corporate account connections → Career indicators -
Alumni groups → Educational background -
Industry communities → Professional interests
🎭 Interest Profiling
graph LR
A[Target Account] --> B(Sports Clubs)
A --> C(Art Galleries)
A --> D(Tech Brands)
B & C & D --> E[Interest Profile]
🌐 Cultural & Linguistic Clues
Observing:
-
Regional language accounts -
Local festival participation -
Geographic content preferences
👨👩👧👦 Relationship Mapping
Strong connection indicators:
-
Mutual follows -
High interaction frequency -
Shared communities -
Profile similarities
🕵️ Multiple Account Detection
Spotting alternate accounts through:
-
Overlapping follower circles -
Similar posting schedules -
Matching behavioral patterns -
Connected private/public profiles
📊 Behavioral Profiling
Step-by-Step Implementation Guide
🖥 Environment Setup
-
Create Neo4j Instance
-
Visit https://neo4j.com -
Select “Get Started Free” -
Save administrator credentials
-
-
Install Osintgraph
git clone https://github.com/XD-MHLOO/Osintgraph.git cd Osintgraph pip install -r requirements.txt
🔑 Initial Configuration
python main.py -setup
When prompted:
-
Enter Neo4j connection details -
Provide Instagram credentials -
Supply browser User-Agent string
📊 Data Collection Methods
Basic discovery:
python main.py -discover "target_username"
Network exploration:
# Analyze 10 connections
python main.py -explore "username" -max_people 10
# Resume partial collections
python main.py -resume_fetching -max_rounds 3
🌐 Data Visualization
-
Access https://console-preview.neo4j.io/tools/explore -
Enter query: SHOW ME A GRAPH
-
Explore connection patterns
https://github.com/user-attachments/assets/71a7bd04-7a5f-4e59-9bb2-2233ce62423b
🛡️ Account Security Protocol
-
Login Methodology
+ Use Firefox session authentication - Avoid direct credential input
-
Device Identification
# Provide actual browser signature -user_agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64)"
-
Risk Mitigation
-
✅ Activate two-factor authentication -
✅ Establish account history before scraping -
❌ Disable VPN connections -
⏱ Limit sessions to <6 hours
-
-
Operation Isolation
During scraping: └─ No browsing activity └─ No content interaction └─ No device switching
Technical Implementation
📦 Core Components
⚙️ Data Model Structure
(:USER {
username: "example",
posts_count: 150,
is_private: false
})-[:FOLLOWS]->(:USER)
Frequently Asked Questions
❓ Can I analyze private accounts?
“
Yes. By examining public connections (friends, communities, interactions), you can reconstruct network attributes without accessing private profiles directly.
❓ How to troubleshoot collection issues?
-
Verify -rate_limit
settings -
Enable -debug
mode -
Execute -resume_fetching
in stages
❓ What’s the most efficient discovery method?
python main.py -explore "central_user" \
-max_people 20 \
-follower_limit 1500 \
-rate_limit 300
❓ How to track changes over time?
Schedule periodic:
python main.py -resume_fetching -max_rounds 5
Compare results to identify:
-
New connections -
Relationship changes -
Interest evolution
Ethical Implementation Framework
Osintgraph reveals powerful social insights that require responsible application:
-
Strictly comply with Instagram’s Terms of Service -
Respect privacy boundaries -
Employ only for legitimate research purposes -
Maintain transparency about data usage
“
Security acknowledgments: https://github.com/ahmdrz
Project repository: https://github.com/XD-MHLOO/Osintgraph