DAGDA SEARCH | Back to results | Support

AnsKhurshid (Ans Khurshid) · GitHub

Source: https://github.com/AnsKhurshid

@AnsKhurshid AnsKhurshid Follow More @AnsKhurshid AnsKhurshid Follow View AnsKhurshid's full-sized avatar

Ans Khurshid AnsKhurshid

Follow 0 followers · 3 following

Achievements

Achievement: YOLO

Achievements

Achievement: YOLO

Block or report AnsKhurshid

Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse More AnsKhurshid/README.md

Job Search Agent

A local, private tool that discovers → analyses → shortlists → tailors resumes → reports on data-engineering jobs, starting with LinkedIn and prioritising Pakistan (on-site, hybrid and remote).

What it will never do: apply to jobs, message recruiters, upload your resume anywhere, or claim experience you don't have. You review and send every application yourself.

The docs/ folder holds unrelated database documentation and is not part of the application.


1. Quick start

# Python 3.11+ (tested on 3.13)
pip install -e ".[dashboard,dev]"          # add ",anthropic" for optional AI analysis
python -m jobagent init                    # creates data/ folders, database, .env

# 1) your resume (kept local, never modified)
cp ~/Downloads/MyResume.docx data/resume/master_resume.docx     # .pdf also works
python -m jobagent profile extract
#    -> edit data/profile/candidate_profile.yaml (fix anything wrong, reclassify 'listed' skills)
python -m jobagent profile show
python -m jobagent profile approve

# 2) find jobs (see "LinkedIn workflow" below)
python -m jobagent links                   # search links to open in your browser
#    save job pages / paste descriptions into data/inbox/linkedin/

# 3) analyse, shortlist, report (add --tailor to generate resumes for every shortlisted job)
python -m jobagent run
python -m jobagent jobs --status shortlisted
python -m jobagent show 12                 # why did job 12 get its score?
python -m jobagent tailor 12               # DOCX + PDF + tailoring report
python -m jobagent dashboard               # http://localhost:8501

PDF resumes need LibreOffice (soffice) on your PATH; without it you get DOCX only.

2. LinkedIn workflow (and why it works this way)

LinkedIn has no public job-search API for individuals, and its User Agreement prohibits scraping and automated access (including using your logged-in session). Doing it anyway risks your account. So the LinkedIn connector never contacts linkedin.com. Instead:

  1. python -m jobagent links writes data/reports/linkedin_search_links.html, with searches for each preferred title, Pakistan-wide (geo filter) for all arrangements plus a remote-only search, limited to recent posts. --per-city adds Lahore/Karachi/Islamabad/... links.
  2. Open them in your browser and bring back the jobs you care about, in any of these forms, dropped into data/inbox/linkedin/:
    • Saved job page: on the job's page press Ctrl+S, then "Webpage, HTML only". Title, company, location, description and date are extracted.
    • Pasted text: a .txt file with a few header lines, a blank line, then the description (see tests/fixtures/jobs/pasted_job.txt):
      Title: Data Engineer
      Company: Example Corp
      Location: Lahore, Pakistan
      Work arrangement: Hybrid
      URL: https://www.linkedin.com/jobs/view/1234567890/
      
      <full description>
      
      Separate several jobs in one file with a line containing ---.
    • Just URLs: a .txt file of job links. These are tracked and deduplicated, but marked needs_manual_review until you add the description with python -m jobagent add-details <id> <file.txt|file.html>.
  3. python -m jobagent run imports everything. Rerunning is safe: no duplicate jobs or resumes are created.

Other sources: data/inbox/manual/ accepts CSV/JSON (flexible column names: title, company, location, description, url, ...), pasted-text files and saved pages from any job board. --url <link> fetches a public job page (e.g. a company careers page) only if its robots.txt allows it. LinkedIn, Indeed and Glassdoor are never fetched automatically.

Every import reports how many records were complete, partial, needed manual review or failed. Reports always state that coverage is limited to what you imported.

3. How matching works

Matching is deterministic first: the same inputs always give the same score, and every point is explained (jobagent show <id>, or the dashboard's Job detail tab).

Component (default weight) How it's computed
Technical skills (30) Required, preferred and other mentioned skills from the description, credited by your evidence level: professional 1.0, project 0.6, studied 0.25. Equivalent technologies get partial transferable credit (e.g. Redshift ← PostgreSQL 0.7, Airflow ← Step Functions 0.35). Synonyms map to one skill, so repetition never counts twice.
Responsibilities (25) Each responsibility line is matched against work themes (pipelines, API ingestion, data quality, troubleshooting, optimisation, …) evidenced in your experience bullets.
Seniority (15) Required years (or the level implied by the title) vs your experience.
Role alignment (15) Data Engineer / AWS DE / ETL / Python & SQL DE / Analytics / Integration roles score high; analyst, scientist and generic SWE roles score low.
Location (10) Preferred Pakistani city, other Pakistani city, Pakistan-eligible remote, remote with unstated eligibility, or abroad.
Domain (5) Matches matching.candidate_domains / preferred industries; excluded industries score 0.

Your own decisions (set-status ... applied|reviewed|closed) are never overwritten by re-analysis.

4. Resume tailoring and accuracy

For a selected job, the tailoring engine:

An independent validator then checks employers/titles/dates, bullet traceability, unsupported skills, new numbers, years-of-experience claims, placeholders, duplicates and keyword stuffing. It runs again on the text read back from the generated DOCX. If any check fails, the resume is saved as needs_review (never ready), with the reasons in the report.

Output per job, in data/resumes/<Company>_<Title>_J<id>/: …_Resume.docx, …_Resume.pdf, …_tailoring_report.md (keywords included, requirements not supported by your profile, what changed, validation results) and …_changes.json.

Optional resume.ai_rewrite_bullets: true lets the AI reword bullets. Any rewrite that adds or drops a number or adds a skill is rejected and the original wording is kept.

5. Configuration

config/settings.yaml (annotated) controls the resume path, preferred titles (priority order), country and cities, arrangements, experience range, industries, excluded title keywords, scoring weights and thresholds, max jobs per run, output folders, AI provider/model/effort/cost rates, and enabled sources. config/skills_taxonomy.yaml defines skills, synonyms and transfer relationships, and is safe to extend.

Secrets go only in .env (see .env.example); nothing secret is read from YAML. Use another settings file with --config path or JOBAGENT_CONFIG.

6. Privacy

7. Architecture

jobagent/
  config.py           settings (Pydantic) + startup checks
  models.py           shared data models (RawJob, CandidateProfile, JobRequirements, MatchResult …)
  taxonomy.py         skill synonyms / implications / transferable equivalents
  sources/            connectors: base interface, linkedin (compliant import), manual (CSV/JSON/text/URL),
                      html_parser (schema.org JobPosting + layout fallback), url_fetch (robots.txt, rate limit)
  ingestion/          normalisation (titles, companies, locations, URLs, salary) + idempotent dedupe/upsert
  profile/            resume parsing (DOCX/PDF) → evidence-based profile → review/approve
  matching/           requirement extraction, scoring + hard constraints, analyser (optional AI)
  ai/                 provider-neutral structured-output client, cache, usage & cost tracking
  resume/             tailoring, DOCX rendering, PDF conversion, validator, service
  reporting/          CSV / Excel / Markdown summary, search-links page
  dashboard/app.py    Streamlit UI
  storage/            SQLite schema + repository
  cli.py              commands

Adding a job source: subclass sources.base.JobSource, return RawJobs with an honest retrieval_status from collect(), and register it in sources/registry.py. Normalisation, deduplication, matching, resumes and reports need no changes.

Key choices: SQLite (no server, inspectable with any SQL client; additive schema; every job's history, sightings, description versions and status changes are kept), plain SQL rather than an ORM, argparse CLI, python-docx + LibreOffice for documents, Streamlit + Plotly for the dashboard. Each job is ingested and analysed in its own transaction, so a crash never loses completed work; jobagent retry re-runs only failed tasks.

Dependencies: pydantic, PyYAML, python-dotenv, requests, beautifulsoup4 + lxml (HTML), pdfplumber (PDF resumes), python-docx, pandas + openpyxl (reports); optional streamlit + plotly (dashboard), anthropic (AI), pytest.

8. Commands

Command Purpose
init / status set up folders; show readiness, job counts, pending tasks, AI usage and cost
profile extract | show | approve build, inspect and approve the candidate profile
links [--per-city] LinkedIn search links page
import [files] [--url U] [--no-inbox] import jobs only
run [files] [--tailor] import → analyse → (tailor shortlisted) → reports
analyze [--job ID] [--force] (re)score jobs; unchanged jobs are skipped
jobs [--status S] [--min-score N] [--needs-details] list jobs
show ID full score explanation and status history
tailor ID… | --shortlisted [--force] generate tailored resumes
add-details ID FILE attach a description to a URL-only job
set-status ID reviewed|applied|rejected|closed … record your own decisions
report CSV (all + shortlist), Excel (all / shortlisted / skill gaps), summary
retry retry failed analysis/tailoring tasks
dashboard local Streamlit dashboard
purge --jobs/--resumes/--reports delete local data (with confirmation)

9. Testing

python -m pytest -q

69 tests run on synthetic fixtures only (a fictional resume and fictional jobs; no network). They cover taxonomy, parsing, deduplication and reruns, URL canonicalisation, the robots/LinkedIn fetch refusal, scoring and hard constraints, AI evidence verification and caching (with a fake provider), retry tracking, resume factuality (including adversarial tampering and AI rewrites that add facts), reports, and a full CLI end-to-end run.

10. Troubleshooting

11. Known limitations

Pinned Loading

  1. Customer-Personality-Analysis-Dashboard-Project Customer-Personality-Analysis-Dashboard-Project Public

    1

  2. 99Bikes_DataWarehouse_and_Tableau_Visualization 99Bikes_DataWarehouse_and_Tableau_Visualization Public

  3. Bike-Sales-Excel-Project Bike-Sales-Excel-Project Public

  4. Covid19-Data-Analysis-Project Covid19-Data-Analysis-Project Public

  5. Nashville-Housing-Data-Cleaning-Project Nashville-Housing-Data-Cleaning-Project Public

  6. Tableau-Projects Tableau-Projects Public

Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.

Uh oh!

There was an error while loading. Please reload this page.