A tool to programmatically access and download Target store maps from their mobile app's Store Mode feature.
Successfully capture and download the store map for one Target store location.
Mobile App → API Calls → Proxy Interceptor → Parser → Store Map Data
- Android Emulator Setup - Run Target app in controlled environment
- Traffic Interception - Use mitmproxy to capture API calls
- GPS Spoofing - Simulate being inside a Target store
- API Analysis - Identify endpoints that deliver map data
- Data Extraction - Parse and save store map information
Store maps scraping/
├── README.md # This file
├── SETUP_GUIDE.md # Detailed setup instructions
├── requirements.txt # Python dependencies
├── config/
│ └── target_stores.json # Target store locations for testing
├── scripts/
│ ├── verify_setup.py # Verify emulator and proxy setup
│ ├── capture_api_traffic.py # Monitor and save API calls
│ ├── analyze_traffic.py # Parse captured traffic for map endpoints
│ └── download_store_map.py # v1: Download store map for one store
├── data/
│ ├── captured/ # Raw mitmproxy captures
│ ├── analyzed/ # Parsed API endpoint info
│ └── maps/ # Downloaded store maps
└── docs/
└── API_FINDINGS.md # Document discovered API endpoints
- macOS (you're on darwin 25.0.0)
- Android Studio with emulator
- Python 3.8+
- Target mobile app APK
cd "/Users/jordan.cheung/Documents/GitHub/Store maps scraping"
# Install Python dependencies
pip install -r requirements.txt
# Follow detailed setup guide
cat SETUP_GUIDE.md-
Setup Phase (One-time)
# Verify your environment python scripts/verify_setup.py -
Capture Phase
# Start mitmproxy and capture traffic python scripts/capture_api_traffic.py -
Analysis Phase
# Analyze captured traffic python scripts/analyze_traffic.py data/captured/target_session_1.har -
Download Phase (v1 Goal)
# Download store map for a specific store python scripts/download_store_map.py --store-id T-1234
- Emulator setup complete
- mitmproxy configured
- Target app installed
- GPS spoofing working
- API endpoints identified
- Store map downloaded (v1 goal)
- This is for educational/research purposes only
- Review Target's Terms of Service
- Store maps may be proprietary data
- Do not use for commercial purposes without permission
- Respect rate limits and don't overload Target's servers
- Complete emulator setup (see SETUP_GUIDE.md)
- Capture first API session
- Identify store map endpoints
- Extract map data
- Validate downloaded map