How juleslemee/instagram-algorithm-research works
This repository is an academic research system with two separate workflows: Instagram persona simulation and account-bias collection, plus image-based political-bias model training and evaluation. Part 1’s sampled code shows scraper orchestration, browser automation, image categorization, and S3 upload. Part 2’s README documents CLIP/Doc2Vec feature extraction and classifier workflows; its file-level wiring is not established by the excerpts, so those relationships are shown as unverified.
Main entry points: collector.py Account Collector · doomscroller.py Persona Simulation · categorizor.py Image Categorizer · open_ig.py Instagram Login
Components 27
Instagram Collection
- Session Runner
research-part-1/src/mainsim.py - Persona Simulation
research-part-1/src/doomscroller.py - Account Runner
research-part-1/src/maincol.py - Account Collector
research-part-1/src/collector.py - Political Labels
research-part-1/src/collector.py
Collection Support
- Instagram Login
research-part-1/src/open_ig.py - Chrome Driver
research-part-1/drivers/driver_chrome.py - Image Categorizer
research-part-1/src/categorizor.py - Topic List
research-part-1/input/topics/topics.py - OpenAI Key
research-part-1/input/keys/openai_key.py - Screenshot Upload
research-part-1/src/aws.py - AWS Credentials
research-part-1/input/keys/credentials.py
Image Analysis
- CLIP Features
research-part-2/clip_features.py - CLIP Model
research-part-2/clip_model.py - Original Features
research-part-2/og_extract_features.py - Project Features
research-part-2/our_extract_features.py
Model Training
- CLIP Stage Two
research-part-2/clip_stage_2.py - Original Training
research-part-2/og_train_model.py - Original Evaluation
research-part-2/og_train_eval_stage_2.py - Modified Evaluation
research-part-2/og_train_eval_stage_2_modified.py - Project Training
research-part-2/our_train_model.py - Project Evaluation
research-part-2/our_train_eval_stage_2.py
Other components
- Researcher
- OpenAI
- Amazon S3
- Image Dataset
Connections 30
- Researcher → Session Runner: starts simulation
README.md - Session Runner → Persona Simulation: runs
research-part-1/src/mainsim.py - Researcher → Account Runner: starts collection
README.md - Account Runner → Account Collector: runs
research-part-1/src/maincol.py - Persona Simulation → Instagram Login: opens reels
research-part-1/src/doomscroller.py - Account Collector → Instagram Login: opens reels
research-part-1/src/collector.py - Instagram Login → Chrome Driver: uses driver
research-part-1/src/open_ig.py - Persona Simulation → Chrome Driver: controls browser
research-part-1/src/doomscroller.py - Account Collector → Chrome Driver: controls browser
research-part-1/src/collector.py - Instagram Login → Instagram: logs in
research-part-1/src/open_ig.py - Persona Simulation → Instagram: interacts with reels
README.md - Account Collector → Image Categorizer: categorizes thumbnails
research-part-1/src/collector.py - Image Categorizer → OpenAI: requests labels
research-part-1/src/categorizor.py - Account Collector → Screenshot Upload: uploads screenshots
research-part-1/src/collector.py - Screenshot Upload → Amazon S3: writes images
research-part-1/src/aws.py - Account Collector → Political Labels: writes account labels
research-part-1/src/collector.py - Image Categorizer → Topic List: imports topics
research-part-1/src/categorizor.py - Image Categorizer → OpenAI Key: loads key
research-part-1/src/categorizor.py - Screenshot Upload → AWS Credentials: loads credentials
research-part-1/src/aws.py - Researcher → Image Dataset: supplies images
README.md - Image Dataset → CLIP Features: provides images
README.md - CLIP Features → CLIP Model: extracts CLIP features
README.md - CLIP Model → CLIP Stage Two: supports classification
README.md - Image Dataset → Original Features: provides images
README.md - Original Features → Original Training: feeds classifier
README.md - Original Training → Original Evaluation: supports evaluation
README.md - Original Training → Modified Evaluation: supports evaluation
README.md - Image Dataset → Project Features: provides images
README.md - Project Features → Project Training: feeds classifier
README.md - Project Training → Project Evaluation: supports evaluation
README.md