python app.pygunicorn -w 4 -b 0.0.0.0:5000 app:app --timeout 120docker build -t bid-app .
docker run -p 5000:5000 --env-file .env bid-appGET /users— List usersPOST /users— Create userGET /filters— List filtersPOST /filters— Create filterGET /output— List all outputs (optionally weighted)POST /output— Add output recordGET /public-bid-links— Extract filtered links from HTMLPOST /get_state_and_federal_bids— (Custom) Fetch authenticated content via Playwright
See the code for full details and request/response formats.
- Uses NLP (Sentence Transformers) for semantic trade matching
- Geocodes and scores locations
- Scores budget, project size, and past relationships
- Customizable parameter weights
- Returns ranked list of bids
See ranking3.py for details.
stateandfederal.pyprovides functions to log in and fetch authenticated pages using Playwright.- Session state is saved and reused for efficient scraping.
- All configuration is via environment variables or
.envfile. - Database is auto-created on first run (SQLite by default).
- For schema changes, delete
app.dband restart the app (or use migrations if enabled).
MIT (or your chosen license)