feat: initial commit for oil price scraper service

FastAPI-based scraper for commodity ticker prices (HO, CL, RB futures)
and competitor oil pricing from NewEnglandOil. Includes cron-driven
scraping, PostgreSQL storage, and REST endpoints for price retrieval.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-08 17:57:44 -05:00
commit af9c2f99e7
25 changed files with 1566 additions and 0 deletions

23
.env.example Normal file
View File

@@ -0,0 +1,23 @@
# Environment variables for eamco_scraper - PRODUCTION
# Copy this to .env.prod and fill in actual values
# Application mode
MODE=PRODUCTION
CURRENT_SETTINGS=PRODUCTION
# Database configuration
POSTGRES_USERNAME=postgres
POSTGRES_PW=your_password_here
POSTGRES_SERVER=192.168.1.204
POSTGRES_PORT=5432
POSTGRES_DBNAME=auburnoil
# Logging
LOG_LEVEL=INFO
# Scraper configuration
SCRAPER_DELAY=2.0
SCRAPER_TIMEOUT=10
# CORS (optional - comma-separated)
# CORS_ORIGINS=https://oil.edwineames.com,https://edwineames.com