Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Job Search Agent

A FastAPI backend that:

  1. accepts company websites, a resume, and an optional cover letter,
  2. scrapes career-related pages from each company site,
  3. stores scraped text in local .txt files,
  4. sends the scraped data plus candidate documents to OpenAI for matching,
  5. renders matching job IDs on a web page.

Setup

python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
cp .env.example .env

Set OPENAI_API_KEY in .env or your shell environment.

Admin login now uses Google OAuth. Set these values in .env:

ADMIN_EMAIL=your-authorized-google-account@example.com
GOOGLE_CLIENT_ID=...
GOOGLE_CLIENT_SECRET=...
GOOGLE_REDIRECT_URI=http://127.0.0.1:8000/admin/auth/google/callback

In Google Cloud Console, create an OAuth 2.0 Web application client and register the exact same redirect URI.

Run

uvicorn app.main:app --reload

Open http://127.0.0.1:8000.

Documentation

  • See architecture.md for the current system architecture and data flow overview.

Database Schema

Set DATABASE_URL in .env once your Cloud SQL instance is ready.

For a local Cloud SQL Auth Proxy connection to MySQL, use:

DATABASE_URL=mysql+pymysql://DB_USER:DB_PASSWORD@127.0.0.1:3306/DB_NAME

Create the table schema with:

python -m app.Model.database

Notes

  • Scraping is heuristic. Some career sites render jobs with JavaScript or external ATS platforms, so you may need to extend the scraper for specific companies.
  • Scraped files are written to app/data/scraped_data/.
  • The OpenAI integration uses the Responses API. OpenAI recommends Responses for new projects, and structured outputs can be defined with text.format JSON schema support in Responses.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages