#!/bin/bash
UA="BSN-OpenClaw/1.0 (Brettspiel-News.de; kontakt@brettspiel-news.de)"
KEY="de3b01db-9be3-4c80-bd80-d47e071b320e"
curl -s --max-time 15 \
  -H "User-Agent: ${UA}" \
  -H "Authorization: Bearer ${KEY}" \
  "https://boardgamegeek.com/xmlapi2/threads?forumid=1&sort=postdate&sortdir=desc&count=10" \
  > /home/hermes/workspace/bgg-scrape/forum1_threads.xml 2>&1
echo "Exit: $?"
wc -c /home/hermes/workspace/bgg-scrape/forum1_threads.xml
head -100 /home/hermes/workspace/bgg-scrape/forum1_threads.xml
