Spaces:
Sleeping
Sleeping
Update src/gametracker/grab_gt_stats.py
Browse files42 unmodified lines43444546474842 unmodified lines"""Download an image from GameTracker and save it locally."""out_path.parent.mkdir(parents=True, exist_ok=True)r = requests.get(url, timeout=20)r.raise_for_status()out_path.write_bytes(r.content)return out_path42 unmodified lines4344454647484950515242 unmodified lines"""Download an image from GameTracker and save it locally."""out_path.parent.mkdir(parents=True, exist_ok=True)r = requests.get(url, timeout=20)# --- DEBUGGING ---print("Request URL:", url)print("Status code:", r.status_code)print("Response text (first 200 chars):", r.text[:200])r.raise_for_status()out_path.write_bytes(r.content)return out_path
src/gametracker/grab_gt_stats.py+4