How dinhdung6/social-crawler works
This is a browser-based social crawler and reporting tool. A user logs in through the local Chrome profile, runs searches and post/comment collection across platform adapters, then generates topic workbooks and Markdown summaries from stored data, including Google Trends. The graph preserves the documented platform and optional-comment capabilities; some wiring is supported by the SOURCE INDEX rather than sampled call sites, and unsampled implementation details are not inferred.
Main entry points: run.py CLI orchestration · common.py Browser and DB helpers · instagram.py Instagram adapter · tiktok.py TikTok adapter
Components 14
Crawler workflow
- CLI orchestration
run.py - Browser and DB helpers
common.py
Platform collection
- Facebook adapter
platforms/facebook.py - Instagram adapter
platforms/instagram.py - LinkedIn adapter
platforms/linkedin.py - TikTok adapter
platforms/tiktok.py - YouTube adapter
platforms/youtube.py - Optional comment clients
comment_clients.py
Storage and reporting
- SQLite data
- Report generation
report.py
External integrations
- Installed Chrome
- Social platforms
- Google Trends
Other components
- User
Connections 25
- User → CLI orchestration: runs commands
README.md - CLI orchestration → Browser and DB helpers: uses helpers
run.py - CLI orchestration → Facebook adapter: dispatches collection
run.py - CLI orchestration → Instagram adapter: dispatches collection
run.py - CLI orchestration → LinkedIn adapter: dispatches collection
run.py - CLI orchestration → TikTok adapter: dispatches collection
run.py - CLI orchestration → YouTube adapter: dispatches collection
run.py - CLI orchestration → SQLite data: writes records
run.py - CLI orchestration → Report generation: starts reporting
README.md - Facebook adapter → Browser and DB helpers: uses helpers
platforms/facebook.py - Instagram adapter → Browser and DB helpers: uses helpers
platforms/instagram.py - LinkedIn adapter → Browser and DB helpers: uses helpers
platforms/linkedin.py - TikTok adapter → Browser and DB helpers: uses helpers
platforms/tiktok.py - YouTube adapter → Browser and DB helpers: uses helpers
platforms/youtube.py - Instagram adapter → Optional comment clients: supplements comments
platforms/instagram.py - TikTok adapter → Optional comment clients: queues comments
platforms/tiktok.py - Facebook adapter → Social platforms: searches and collects
platforms/facebook.py - Instagram adapter → Social platforms: searches and collects
platforms/instagram.py - LinkedIn adapter → Social platforms: searches and collects
platforms/linkedin.py - TikTok adapter → Social platforms: searches and collects
platforms/tiktok.py - YouTube adapter → Social platforms: searches and collects
platforms/youtube.py - Optional comment clients → Social platforms: fetches comments
README.md - Report generation → SQLite data: reads records
report.py - Report generation → Google Trends: queries trends
report.py - CLI orchestration → Installed Chrome: opens profile
README.md