A FastAPI backend that:
- accepts company websites, a resume, and an optional cover letter,
- scrapes career-related pages from each company site,
- stores scraped text in local
.txtfiles, - sends the scraped data plus candidate documents to OpenAI for matching,
- renders matching job IDs on a web page.
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
cp .env.example .envSet 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/callbackIn Google Cloud Console, create an OAuth 2.0 Web application client and register the exact same redirect URI.
uvicorn app.main:app --reloadOpen http://127.0.0.1:8000.
- See
architecture.mdfor the current system architecture and data flow overview.
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_NAMECreate the table schema with:
python -m app.Model.database- 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.formatJSON schema support in Responses.