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

CodivUpload Social Manager

Use when the user wants to publish, schedule, cross-post, or manage social media content on YouTube, Instagram, Facebook, X (Twitter), TikTok, Threads, or Pi...

Registry SourceRecently Updated
Automation

Hermes Tweet

Use Xquik from Hermes Agent for X search, posting, replies, likes, retweets, follows, DMs, monitors, extraction jobs, draws, media, and trends.

Registry SourceRecently Updated
Automation

Session Log Analyzer

Analyze agent session logs and generate PDF reports with Notion sync

Registry SourceRecently Updated
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