Skip to content

Instantly share code, notes, and snippets.

@mesmere
Created May 19, 2025 01:55
Show Gist options
  • Select an option

  • Save mesmere/70abde7d08db81511c8499e4d480abd5 to your computer and use it in GitHub Desktop.

Select an option

Save mesmere/70abde7d08db81511c8499e4d480abd5 to your computer and use it in GitHub Desktop.
curl -s "https://crosshare.org/dailyminis/2022/1" | grep -oP '(?<=href="/crosswords/)\w+(?=/)' | awk 'NR%2' | (
index=0
while read crossid; do
((index++))
filename=$(printf "%02d %s\n" $index "$(curl -Is https://crosshare.org/api/puz/$crossid | grep -Po '(?<=filename=").+(?=")')")
curl -o "$filename" https://crosshare.org/api/puz/$crossid
done
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment