Automatic Job Application and Tracking System
Intelligent Job Application Automator
An autonomous web-agent framework designed to automate the complete lifecycle of online job applications across dynamic corporate portals. The core engine is built in Python, uses Playwright for browser control, SQLite for persistent storage, and an LLM for cognitive decision-making.
Tags: AI, Automation, Backend
Automatic Job Application and Tracking System
Autonomous web-agent for automated job applications. Uses Playwright and Gemini to traverse portals, upload files, and submit forms in under 5s on cached domains.
Execution Telemetry
// 10X SPEEDUP OVER MANUAL OR STANDARD AUTOMATION //
Distributed FSM
Four concurrent workers (sourcing, redirection, classification, execution) communicate via event bus. Vector RAG aligns questionnaire prompts with dossiers without exposing raw data.
WORKER 01 SOURCING Streams listings from external boards into a centralized queue. Deduplicates canonical URLs in real-time.
WORKER 02 REDIRECTION Stealth service maps unstructured external links to canonical endpoints. Cascading locator strategies bypass bot detection.
WORKER 03 CLASSIFICATION Vector RAG aligns questionnaire prompts with structured dossiers. Semantic mapping bypasses fragile RPA selectors.
WORKER 04 EXECUTION Multi-strategy file uploads, form fills, OAuth routing. Captures pre/post/crash screenshots per selector action.
Cascading Locators
Progressively resilient selector chain: ARIA roles → text match → CSS cascade → shadow DOM piercing.
1
ARIA ROLE RESOLUTION
Maps role="button" and role="link" elements to application form entry points using Playwright's built-in role locators.
2
TEXT & VISIBILITY MATCH
Fallback to Playwright text locators with visibility checks. Filters hidden or off-screen elements using bounding-box heuristics.
3
CSS SELECTOR CASCADE
Progressive CSS selector chain: data attributes → class names → ID references. Each step strips unstable styling classes to target semantic structure.
4
SHADOW DOM PIERCING
Recursive shadow-root traversal for web-component-heavy SPAs. Enters nested shadow boundaries to reach deeply embedded form controls.
// CASCADING STRATEGY — PROGRESSIVELY RESILIENT LOCATOR CHAIN //
ARIA Snapshot → YAML
Playwright ARIA snapshot engine extracts viewport layout to YAML. Strips styling/scripts to map form controls to the cognitive pipeline.
Debugging & Screenshots
Three-tier logging captures pre-action, post-action, and crash-state screenshots for every selector and click.
TIER 01 PRE-ACTION
01
Captures viewport state before each interaction. Validates that the target element exists, is visible, and enabled. Logs page URL and active frame context.
TIER 02 POST-ACTION
02
Captures viewport after simulated click or input. Compares DOM state delta — detected mutations, navigation events, and form-field population results.
TIER 03 CRASH-STATE
03
Emergency capture on timeout, navigation failure, or selector error. Logs full stack trace, current URL, DOM snapshot, and all prior state transitions.
Site Guide Caching
Records form-field mappings to SQLite on first visit. Cached hostnames bypass the AI pipeline entirely — sub-5s execution.
FIRST VISIT — AI PIPELINE ACTIVE LLM analyses page structure, RAG maps form fields to dossier. Site guide records successful mappings to local SQLite DB.
~50s
CACHED HOST — DB LOOKUP AI pipeline bypassed. Site guide replay loads pre-recorded selector chains, iframe contexts, and field mappings from database.
<5s
Deduplication & Iframe Tracking
Resolves query-param variants to canonical URLs. Proactively tracks the dominant iframe in multi-frame SPAs.
URL DEDUPLICATION
Resolves query-param variants, tracking fragments, and redirect chains into a single canonical entry per listing.
/jobs/123?ref=linkedin → /jobs/123
DOMINANT-IFRAME TRACKING
Proactively identifies the primary content frame in multi-iframe SPAs. Locks navigation to the active form context.
Frame depth: 3 | Active: #application-form → Content locked
Core EnginePython, Playwright Async API
Cognitive PipelineGemini Flash & Pro, Vector RAG
Data LayerSQLite, BeautifulSoup4
Layout ParsingARIA Snapshot Engine, YAML Generator
Auth & SecurityOAuth Routing, Stealth Redirection
DebuggingThree-Tier Logging, Pre/Post/Crash Screenshots