GOG Weekly Sales Analytics
Automated weekly workflow that scrapes GOG store discounts, analyzes the full discounted-game dataset with Gemini, generates a markdown insights report, and...
Latest: v1.2.3
Fix Feishu multipart upload (upload_all form-data) + analyze full discount dataset (remove 20-item cap)
Full description
Automated weekly workflow that scrapes GOG store discounts, analyzes the full discounted-game dataset with Gemini, generates a markdown insights report, and syncs it to Feishu Drive. Use for recurring game-deal reporting and team distribution.
GOG Weekly Sales Analytics
Automated workflow that:
- Scrapes weekly discounted game data from the GOG store
- Analyzes the full set of discounted games with Google Gemini to surface best-value deals
- Generates a markdown report with insights and recommendations
- Syncs the report to a shared Feishu Drive folder for team access
- Publishes the workflow as a reusable skill on ClawHub
Usage
cp .env.example .env
# Fill in API keys in .env
pip install -r requirements.txt
python main.py
Environment
| Variable | Purpose |
|---|---|
GEMINI_API_KEY | Gemini analysis |
FEISHU_APP_ID / FEISHU_APP_SECRET | Feishu Drive auth (tenant_access_token) |
FEISHU_DRIVE_FOLDER_ID | Target Drive folder for the report |
CLAWHUB_API_TOKEN | ClawHub publishing |
Notes
- Feishu upload uses the
upload_allmultipart/form-data API (metadata in the form body, binary viafiles). - Gemini analysis processes every discounted game in the dataset — there is no 20-item cap.
Skills Used
- web-scraper: GOG store data extraction
- gemini: AI-powered sales analysis and report generation
- feishu-drive: Cloud storage sync and permission management
- gog: Game metadata and platform integration
- clawhub: Skill publishing and distribution
