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:
23
.env.example
Normal file
23
.env.example
Normal 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
|
||||
Reference in New Issue
Block a user