Commit Graph

11 Commits

Author SHA1 Message Date
bob
15310f0fd0 prevent negative prices 2026-06-01 11:11:41 -05:00
bob
763305ca89 almost ready 2026-06-01 10:52:06 -05:00
bob
8b0eb0db78 Cut metered-proxy bandwidth: re-sweep floor + wire-size logging
JobQueue now skips bands swept within MinResweepHours (config, default 6h) instead of re-scraping the whole catalogue continuously — the dominant cost on the metered residential proxy. Roughly linear savings with no data loss (full pagination retained); 0 disables it. Worker logs the real compressed transferSize per job (what the proxy bills) rather than the ~6.5x-larger decompressed length, so spend is visible.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-05-31 15:27:37 -05:00
bob
94177f9a8c Fix worker proxy relay leak and enable noVNC under --scale
_relay waited for both pipe directions (gather), leaking a task holding two sockets on every half-closed tunnel — visible as a flood of pending-task lines under load. Tear the tunnel down when either side closes (FIRST_COMPLETED + close both writers), matching the .NET LocalForwardingProxy's WhenAny. Also move the worker's noVNC to an ephemeral host port so replicas don't collide under 'docker compose up --scale worker=N'.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-05-31 15:12:51 -05:00
bob
dc7c3f99ae Add cs.money worker stack with per-worker IPRoyal residential proxy
Brings up the pull-model scraper: the .NET C2 hands skin+wear jobs to Python nodriver workers that scrape cs.money and post results back, plus the supporting Core/EFCore data model, migrations, and docker-compose orchestration.

IPRoyal proxying lets workers scale horizontally with a distinct residential exit IP each: every worker process mints its own sticky session at startup, and an in-process forwarding proxy injects the gateway auth so Chromium talks only to an auth-free localhost endpoint (zero CDP). On a Cloudflare challenge a worker rotates to a fresh session/IP and re-warms. Verified end-to-end against live IPRoyal: distinct US residential exits per worker and IP rotation on demand.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-05-31 15:03:53 -05:00
bob
eb5fb0dac7 remove selenium related code for now 2026-05-29 22:17:11 -05:00
bob
d1752b1b07 add csfloat api usage 2026-05-29 22:08:32 -05:00
bob
b51f1d9f5f Change to static skin catalog population 2026-05-29 18:36:17 -05:00
bob
6f3c0175cd Add init weapon scraper 2026-05-29 14:00:58 -05:00
bob
286d1366fe update db usage and init db files 2026-05-29 13:13:11 -05:00
bob
3d3a5c2a5e init efcore 2026-05-29 12:21:42 -05:00