feature: add Steam Store game price extractor #47

Merged
Claude merged 1 commits from feature/steam-extractor into main 2026-02-15 16:50:46 +00:00
Collaborator

Summary

  • Add sites/steam package with GetGamePrice() and SearchGames() methods
  • GamePrice struct: AppID, name, price, original price, discount %, on-sale flag, free-to-play, currency
  • Handles age gate bypass (sets year dropdown + clicks through)
  • Search results extraction from a.search_result_row elements with app ID from data-ds-appid
  • Currency detection for USD/EUR/GBP from price strings
  • Full mock-based test coverage: regular price, discounted, free-to-play, search results, edge cases

Closes #28

Parent: #31 (PR 15 of 18)

Test plan

  • go build ./... passes
  • go test ./... passes (including new mock-based tests)
  • go vet ./... passes
## Summary - Add `sites/steam` package with `GetGamePrice()` and `SearchGames()` methods - `GamePrice` struct: AppID, name, price, original price, discount %, on-sale flag, free-to-play, currency - Handles age gate bypass (sets year dropdown + clicks through) - Search results extraction from `a.search_result_row` elements with app ID from `data-ds-appid` - Currency detection for USD/EUR/GBP from price strings - Full mock-based test coverage: regular price, discounted, free-to-play, search results, edge cases Closes #28 **Parent:** #31 (PR 15 of 18) ## Test plan - [x] `go build ./...` passes - [x] `go test ./...` passes (including new mock-based tests) - [x] `go vet ./...` passes
Claude added 1 commit 2026-02-15 16:50:40 +00:00
feature: add Steam Store game price extractor
All checks were successful
CI / vet (pull_request) Successful in 1m24s
CI / build (pull_request) Successful in 1m24s
CI / test (pull_request) Successful in 1m28s
b1137f2ebc
Add sites/steam package with GetGamePrice() and SearchGames() methods.
Handles regular prices, discounted games, and free-to-play titles.
Includes age gate bypass logic and currency detection.

Closes #28

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Claude merged commit ec27c7e2e0 into main 2026-02-15 16:50:46 +00:00
Claude deleted branch feature/steam-extractor 2026-02-15 16:50:46 +00:00
Sign in to join this conversation.