AI Job Hunter is a personal job-hunting project for Sangamesh Beloore. This document specifies the Job Search Engine module for that project: a Python module, job_search.py, that searches legitimate job search APIs and publicly accessible job sources where permitted, collects structured job records for the owner's target roles in Bengaluru, India, removes duplicates, and stores the results in SQLite through the project's existing database.py. The module must never fabricate job listings or application links, must keep API credentials in environment variables rather than source code, and must be integrated into the existing project without breaking existing functionality.
The audience is the project owner as Job Seeker — a fresher (less than 1 year of experience) targeting Full Stack Developer, Java Developer, React Developer, Application Engineer, and Software Engineer roles in Bengaluru with a Hybrid work preference, with skills in HTML, CSS, JavaScript, React, Java, SQL, JDBC, Hibernate, Spring, Spring Boot, Excel, and AI — and the owner as Project Developer, who configures credentials, runs and tests the engine, and keeps mock test data clearly separated from real listings.
job_search.py, integrated with the existing project without breaking existing functionality.database.py.The current delivery is a Python job search engine module inside the existing AI Job Hunter project. job_search.py queries multiple legitimate job sources, normalizes each result into the eight required job fields, discards duplicates, and persists the survivors to SQLite via database.py. The module runs against the project's shared FastAPI backend process and the provisioned MariaDB service remains available for the project's existing application-owned data; the job records specified here live in SQLite as explicitly required. Mock test data is produced and labeled by a separate mock path so it can never be confused with real listings.
Actors are the Job Seeker, who initiates searches, reviews collected job details, and applies through the real application URL, and the Project Developer, who configures environment-variable credentials, runs the engine, and tests it. Both are application-identified users of the module's first-party surfaces.
Removed from scope
The Job Search Engine is delivered as first-party functionality of the AI Job Hunter project: a Python module (job_search.py) plus its integration with database.py, exposed through the project's shared FastAPI backend so the Job Seeker can run searches and review results, and so the Project Developer can verify configuration and test behavior. Application-owned identity is used so each user's searches and stored results remain bound to the correct person and can be resumed.
Real job data comes only from legitimate job search APIs and publicly accessible job sources where permitted; the product never invents a listing, a field value, or an application link. When a source fails or omits information, the module reports the failure or the missing field rather than filling it in. Mock test data is a distinct, clearly labeled mode and is never mixed into real listings. Credentials are supplied through environment variables and are never written into source code or displayed. Applying to a job happens on the external source's own site through the collected application URL; the product does not own that surface. No future-horizon features are specified in the authoritative thread.
Not applicable — no reference directive with content_source was supplied.
database.py to SQLite; mock data provider kept in a separate, labeled path; error and missing-information panel.FR-1 — Create the Job Search Engine module. As the Project Developer, I should have a job_search.py module that implements the Job Search Engine for the AI Job Hunter project, so that job searching is a working, self-contained part of the project. Provenance: explicit. Lifecycle: the developer runs the module; it executes a search and reports its outcome; on failure it reports the error and can be re-run. Acceptance: job_search.py exists and performs a search end to end.
FR-2 — Integrate legitimate job search APIs and publicly accessible job sources where permitted. As the Project Developer, I should have the module query only legitimate job search APIs and publicly accessible job sources where permitted, so that all collected data comes from authorized sources. Provenance: explicit. Acceptance: every configured source is a legitimate API or a publicly accessible source used within its permitted terms; no other acquisition method is used.
FR-3 — Search using target roles and location. As the Job Seeker, I should run a search using my target roles (Full Stack Developer, Java Developer, React Developer, Application Engineer, Software Engineer) and my location (Bengaluru, India), so that results are relevant to me. Provenance: explicit. Lifecycle: the Job Seeker initiates a search with these criteria; the module queries the sources; results are shown and stored; a source failure is reported without discarding other sources' results; the Job Seeker can re-run. Acceptance: a search issues queries built from the target roles and Bengaluru location.
FR-4 — Apply the target experience, work preference, and skills context. As the Job Seeker, I should have my experience band (Fresher / Less than 1 year), work preference (Hybrid), and skills (HTML, CSS, JavaScript, React, Java, SQL, JDBC, Hibernate, Spring, Spring Boot, Excel, AI) reflected in the search context, so that collected jobs match my profile. Provenance: explicit. Acceptance: these values are part of the search context used for the target roles and location search.
FR-5 — Collect the eight required job fields. As the Job Seeker, I should see each collected job with its job title, company name, location, experience requirements, required skills, job description, posted date, and application URL, so that I can evaluate and apply. Provenance: explicit. Lifecycle: the module extracts each field from the source payload; a field absent at the source is recorded as missing, not invented; the job is displayed and stored with its fields. Acceptance: every stored and displayed job carries all eight field slots, with missing values marked missing.
FR-6 — Support multiple job sources. As the Project Developer, I should have the module query more than one job source in a single search, so that coverage does not depend on a single provider. Provenance: explicit. Lifecycle: each source is queried independently; each source's success or failure is reported separately; results from succeeding sources are combined. Acceptance: a search queries at least two configured sources and reports per-source outcomes.
FR-7 — Handle API errors and missing information. As the Project Developer, I should have API errors and missing information handled explicitly, so that a failing source or an incomplete record never corrupts results. Provenance: explicit. Lifecycle: on an API error the module records the failing source and reason, continues with other sources, and surfaces the error; on missing information the field is marked missing; the user can retry the failed source or re-run the search. Acceptance: a simulated source failure produces a named error while other sources' results remain available; a record with an absent field shows that field as missing.
FR-8 — Remove duplicate jobs. As the Job Seeker, I should have duplicate jobs removed from my results, so that the same opening is not shown or stored more than once. Provenance: explicit. Lifecycle: after collection, the module compares jobs and removes duplicates; the count before and after removal is observable; the deduplicated set is what is displayed and stored. Acceptance: submitting overlapping results from multiple sources yields one entry per job.
FR-9 — Store collected jobs in SQLite using database.py. As the Job Seeker, I should have collected jobs persisted in SQLite through the project's database.py, so that results survive between runs and can be revisited. Provenance: explicit. Lifecycle: after deduplication, surviving jobs are written via database.py; stored jobs are retrievable on later visits; a write failure is reported and the run can be retried. Acceptance: after a search, the jobs are present in the SQLite database and readable through database.py.
FR-10 — Never fabricate job listings or application links. As the Job Seeker, I should never see a job listing or application link that did not come from a real source, so that I can trust every result. Provenance: explicit (hard constraint). Acceptance: every displayed and stored real listing and application URL traces to a source response; no placeholder, generated, or guessed listing or link exists in real results.
FR-11 — Keep API credentials in environment variables. As the Project Developer, I should supply API credentials only through environment variables, so that secrets never appear in source code. Provenance: explicit (hard constraint). Lifecycle: the developer sets the variables; the module reads them at run time; a missing credential is reported by variable name without exposing values. Acceptance: no credential literal exists in source; a missing variable produces a clear configuration error.
FR-12 — Provide mock test data clearly separated from real listings. As the Project Developer, I should have a working job search module with mock test data that is clearly separated from real job listings, so that I can test without contaminating real results. Provenance: explicit. Lifecycle: the developer selects mock mode; mock records are produced and visibly labeled as mock; mock records are never presented or stored as real listings. Acceptance: mock results are labeled and distinguishable from real results in both display and storage.
FR-13 — Integrate without breaking existing functionality. As the Project Developer, I should have the module integrated into the existing project without breaking existing functionality, so that the rest of AI Job Hunter keeps working. Provenance: explicit (hard constraint). Acceptance: existing project behavior continues to work after integration; the module is added through the shared backend rather than replacing existing components.
FR-14 — Explain credential configuration and testing. As the Project Developer, I should receive written instructions on how to configure API credentials and how to test the job search engine after implementation, so that I can operate it. Provenance: explicit. Acceptance: documentation names each credential's environment variable and gives test steps for both mock and real modes.
FR-15 — Establish and verify application identity. As the Job Seeker or the Project Developer, I should complete self-service enrollment on first use and returning verification thereafter, so that my searches and stored results remain bound to me. Provenance: required_inference. Lifecycle: anonymous entry offers enrollment; on return, verification restores the session; failure allows retry; success grants access to Job Search and Search Configuration and Testing. Acceptance: a first-time user can enroll, a returning user can verify, and stored results are attributed to the correct user.
FR-16 — Set credentials before a real search. As the Project Developer, I should set API credentials in environment variables before a real search runs, so that real-source queries can authenticate. Provenance: required_inference. Lifecycle: the developer opens Search Configuration and Testing, sees which variables are absent, sets them in the environment, re-checks presence, and then runs a real search. Acceptance: a real search proceeds only when required variables are present; otherwise a configuration error names the missing variable.
The Job Seeker is Sangamesh Beloore in his job-hunting role: a fresher with less than 1 year of experience seeking Full Stack Developer, Java Developer, React Developer, Application Engineer, or Software Engineer positions in Bengaluru, India, preferring Hybrid work, with skills in HTML, CSS, JavaScript, React, Java, SQL, JDBC, Hibernate, Spring, Spring Boot, Excel, and AI. His primary goal is a trustworthy, deduplicated list of relevant openings with enough detail — experience requirements, required skills, description, posted date — to decide where to apply, and a real application URL for each. His distinct responsibilities are initiating searches with his target criteria, reviewing collected job details, and applying through the external application URL. His inputs are his target roles, location, experience band, work preference, and skills; his decisions are which jobs to pursue. He interacts with the Project Developer only indirectly, through the quality and honesty of the data the developer's configuration produces. Observable success: a search returns relevant Bengaluru roles, each with all eight fields (missing values marked), no duplicates, no fabricated listings or links, and results still available on return.
The Project Developer is Sangamesh Beloore in his builder role: the person who creates job_search.py, integrates it with database.py and the existing project, configures credentials, and tests the engine. His primary goal is a working, non-breaking module that queries multiple legitimate sources, handles errors and missing information, deduplicates, persists to SQLite, and never fabricates data. His distinct responsibilities are setting API credentials in environment variables, verifying their presence, running mock-data tests separately from real searches, confirming separation between mock and real listings, and documenting configuration and testing. His inputs are source credentials and the project's existing code; his decisions are which legitimate sources to configure and when a source's failure is acceptable versus blocking. He interacts with the Job Seeker by ensuring the data the Job Seeker sees is real, complete-as-available, and deduplicated. Observable success: the module runs end to end, existing functionality is intact, mock and real data never mix, and the written instructions let him reconfigure and retest without reading the source.
database.py, and the Job Seeker sees the deduplicated list with title, company, location, experience requirements, required skills, description, posted date, and application URL.job_search.py and its routes to the shared FastAPI backend, reusing the existing process and dependencies.database.py to SQLite.No user-specified palette, fonts, or brand values were supplied. The following coherent defaults apply and are labeled accordingly.
[Default — not specified by user]#FAF8F4; surface #FFFFFF; primary text #1F2421; secondary text #5A625D; accent (primary action) #0F6B5C; accent hover #0B5449; success #2E7D4F; warning #B26A00; error #B3261E; mock-data label #6B4FA1 on #F1ECFA; real-data label #0F6B5C on #E6F2EF; border #E2DED6. [Default — not specified by user]"IBM Plex Sans", system-ui, sans-serif; body "Source Sans 3", system-ui, sans-serif; job descriptions and field values "IBM Plex Mono", monospace for URLs and dates only. [Default — not specified by user][Default — not specified by user][Default — not specified by user][Default — not specified by user][Default — not specified by user]The signature idea is a provenance-first job ledger: every job card carries a visible origin strip showing its source name and a real/mock badge, and every field that a source did not provide is rendered as a muted "not provided" chip rather than blank space. The duplicate-removal count appears as a small ledger line above the list ("N collected · M duplicates removed · K stored"). This recomposes only accepted content — the eight fields, source identity, mock separation, and deduplication — into a visual language that makes the no-fabrication and separation constraints legible at a glance.
Interaction Model: Static (direction) Motion Tempo: restrained Hero Dimensionality: flat
Landing Hero Motion Brief: The focal subject is the job ledger itself — the first accepted surface, Job Search, with its search context and result list. The thesis: the Job Seeker's confirmed criteria (roles, Bengaluru, fresher, hybrid, skills) sit above the list; running the search transforms per-source status rows from "querying" to "succeeded" or "failed," then the deduplicated list settles into place with the ledger line updating. Motion vocabulary is limited to opacity and small vertical settles (120–180 ms, ease-out) on status rows and job cards; no scroll-linked effects. The composed first frame shows the criteria block, the real/mock mode selector, and an empty result area with the ledger line at zero. Reduced-motion state: all transitions become instant; status changes appear without animation.
database.py and remain retrievable across sessions.job_search.py as the Job Search Engine module and database.py as the existing SQLite persistence layer (explicit).database.py (explicit).backend and database services remain the runnable inventory; the module extends the backend.database.py and a FastAPI backend; the module extends them rather than replacing them. [Assumption][Assumption][Assumption]database.py, not in MariaDB (explicit).job_search.py module that queries sources, normalizes, deduplicates, and stores jobs.No completed page designs yet.
Completed design pages will appear here when they are ready to preview.
No completed page designs yet.
Completed design pages will appear here when they are ready to preview.
No comments yet. Be the first!