gog-sales-analytics

Weekly GOG sales scraper, AI analysis via Gemini, and Feishu Drive report sync. Scrapes all discounted games from GOG catalog, generates markdown insights, and uploads to Feishu.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "gog-sales-analytics" with this command: npx skills add terrycarter1985/gog-sales-analytics

GOG Sales Analytics

Automated weekly workflow: scrape GOG discounts → Gemini analysis → Feishu Drive report.

What It Does

  1. Scrape — Fetches all currently discounted games from the GOG catalog API (paginated, no auth needed)
  2. Analyze — Sends full discount dataset to Google Gemini for deal analysis, trend comparison, and budget recommendations
  3. Upload — Syncs the markdown report to a Feishu Drive folder with proper multipart upload

Prerequisites

  • Python 3.10+
  • Environment variables (set in .env or environment):
    • GEMINI_API_KEY — Google Gemini API key
    • FEISHU_APP_ID — Feishu app ID
    • FEISHU_APP_SECRET — Feishu app secret
    • FEISHU_DRIVE_FOLDER_ID — Target Feishu Drive folder token

Usage

pip install -r requirements.txt
python main.py

Or import individual modules:

from scraper.gog_api_scraper import scrape_and_save
from analysis.gemini_analyzer import analyze_sales_data
from sync.feishu_upload import upload_file_to_feishu

sales_file = scrape_and_save()
report_file = analyze_sales_data(sales_file)
url = upload_file_to_feishu(report_file, folder_id)

File Structure

├── main.py                    # Workflow orchestrator
├── scraper/
│   └── gog_api_scraper.py     # GOG catalog API scraper
├── analysis/
│   └── gemini_analyzer.py     # Gemini-powered analysis
├── sync/
│   └── feishu_upload.py       # Feishu Drive upload
├── requirements.txt
├── .env.example
└── SKILL.md

Notes

  • GOG catalog API requires no authentication
  • Gemini analysis processes the full discount dataset (no truncation)
  • Feishu upload uses the upload_all multipart endpoint
  • Scraping is rate-limited (0.5s between pages)

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

Airtable Overview

Explains what Airtable is and how data is structured — bases, tables, fields, records, views, automations, and interfaces. Use when you need context about th...

Registry SourceRecently Updated
Automation

NEXO Brain

Cognitive memory system for AI agents — Atkinson-Shiffrin memory model, semantic RAG, trust scoring, and metacognitive error prevention. Gives your agent per...

Registry SourceRecently Updated
Automation

Google Stitch Workflow

Use when working with Google Stitch through a disciplined MCP-first workflow. Prefer this skill for project inspection, controlled screen generation and edit...

Registry SourceRecently Updated
Automation

Podcast Automation

播客自动化全流程技能——支持播客抓取、Whisper转录、Sonos播放、飞书Wiki归档。Use when you need to scrape podcast episodes, transcribe audio, play on Sonos speakers, or archive to Feishu Wiki.

Registry SourceRecently Updated