How hongyime/unifiedcollector works
UnifiedCollector is a read-only, multi-platform social-data ingestion service. Its principal workflow is platform collection—through native collectors or the logged-in-browser extension—followed by ingestion and persistence in shared PostgreSQL; operators inspect collection and media status in the dashboard. The repository also includes scheduled operations, Telegram control/notifications, and WhatsApp and Instagram/browser bridges. The README establishes the product-level workflow and capabilities; source excerpts clarify the browser-ingest path. Several internal links are omitted or marked unverified where implementation wiring was not shown.
Main entry points: connection.py PostgreSQL · collectors Platform collectors · api Dashboard API · startup.py Scheduler
Components 15
Collection
- Collection worker
src/worker/__init__.py - Platform collectors
src/collectors - Browser extension
extension/src/content.ts
Ingestion bridges
- Social ingest bridge
src/bridges/ig_ingest/app.py - WhatsApp bridge
src/bridges/whatsapp/src/index.ts - Browser ingest handlers
src/bridges/ig_ingest/_browser_ingest.py
Operations and integrations
- Scheduler
src/scheduler/startup.py - Control bot
src/notifications/collector_bot.py - Realtime feeds
src/notifications/realtime_feed.py
Storage and dashboard
- PostgreSQL
src/db/connection.py - Schema migrations
src/db/migrate.py - Dashboard API
src/dashboard/api - Dashboard UI
src/dashboard/frontend/src/App.tsx
Other components
- Operator
- Social platforms
Connections 16
- Operator → Dashboard UI: inspects status
README.md - Social platforms → Platform collectors: provides source data
README.md - Collection worker → Platform collectors: runs collection
src/worker/__init__.py - Platform collectors → PostgreSQL: writes collected data
README.md - Social platforms → Browser extension: logged-in access
README.md - Browser extension → Social ingest bridge: sends scraped data
README.md - Social ingest bridge → Browser ingest handlers: routes ingest
src/bridges/ig_ingest/app.py - Browser ingest handlers → PostgreSQL: persists media
src/bridges/ig_ingest/_browser_ingest.py - WhatsApp bridge → PostgreSQL: forwards collected data
- Scheduler → Collection worker: dispatches work
- Scheduler → PostgreSQL: runs scheduled operations
- Control bot → Dashboard API: uses control routes
src/notifications/collector_bot.py - Realtime feeds → PostgreSQL: reads feed data
- Schema migrations → PostgreSQL: applies schema
- Dashboard UI → Dashboard API: requests dashboard data
- Dashboard API → PostgreSQL: queries status and records
src/dashboard/api/ingestion.py