How kanukuntla-r/rotto-backend-task-ruthvik works
Rotto is a Python/PostgreSQL job crawler for Reed and LinkedIn, with an Indeed public-access diagnostic rather than Indeed ingestion. The main workflow discovers listings, selects new or refresh-due details, parses and validates them, then reconciles observations into persistent records; it also tracks request/run activity and exports jobs and a run report. Reed’s multi-scope discovery, LinkedIn’s rate-limit-aware detail batches, conservative duplicate linking, and evidence-based removals are distinct product capabilities. Some orchestration details are only documented or indexed, so the graph omits uncertain call relationships.
Main entry points: main.py Crawl orchestrator · http_client.py HTTP client · persistence.py Job persistence · linkedin.py LinkedIn discovery and parser
Components 19
Crawling
- Crawl orchestrator
src/main.py - Reed discovery
src/crawlers/reed_discovery.py - Reed detail parser
src/crawlers/reed.py - LinkedIn discovery and parser
src/crawlers/linkedin.py - LinkedIn detail workflow
src/linkedin_workflow.py - Indeed access check
src/crawlers/indeed.py - HTTP client
src/http_client.py - Proxy configuration
src/proxy.py
Ingestion
- Job validation
src/validation.py - Refresh selection
src/refresh.py
Storage and lifecycle
- Observation reconciliation
src/reconciliation.py - Job persistence
src/persistence.py - Cross-board linking
src/deduplication.py - PostgreSQL records
src/schema.sql
Monitoring and outputs
- Proxy cost estimate
src/cost.py - Jobs export
src/export.py - Run report
src/main.py - Request log
src/schema.sql
Other components
- Operator
Connections 24
- Operator → Crawl orchestrator: starts crawl
README.md - Crawl orchestrator → Reed discovery: discovers listings
README.md - Crawl orchestrator → Reed detail parser: fetches details
README.md - Crawl orchestrator → LinkedIn discovery and parser: discovers listings
README.md - Crawl orchestrator → Refresh selection: selects due
README.md - Crawl orchestrator → LinkedIn detail workflow: batches details
README.md - Crawl orchestrator → Indeed access check: checks access
README.md - Reed discovery → HTTP client: requests pages
src/crawlers/reed_discovery.py - Reed detail parser → HTTP client: requests details
src/crawlers/reed.py - LinkedIn discovery and parser → HTTP client: requests pages
src/crawlers/linkedin.py - LinkedIn detail workflow → LinkedIn discovery and parser: fetches details
- Crawl orchestrator → Job validation: validates jobs
README.md - Crawl orchestrator → Observation reconciliation: reconciles observations
README.md - Observation reconciliation → Job persistence: upserts and removes
src/reconciliation.py - Job persistence → Job validation: checks fields
src/persistence.py - Crawl orchestrator → Cross-board linking: links duplicates
README.md - Job persistence → PostgreSQL records: writes jobs
README.md - Refresh selection → PostgreSQL records: reads refresh times
README.md - Cross-board linking → PostgreSQL records: links records
README.md - HTTP client → Request log: logs attempts
src/http_client.py - HTTP client → Proxy configuration: configures proxy
- Crawl orchestrator → Proxy cost estimate: estimates cost
README.md - Crawl orchestrator → Jobs export: exports records
README.md - Crawl orchestrator → Run report: writes summary
README.md