Skip to content

Instantly share code, notes, and snippets.

@tobetchi
Created October 19, 2018 04:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tobetchi/35a3324bcca50a6e358a142eadec73d7 to your computer and use it in GitHub Desktop.
Save tobetchi/35a3324bcca50a6e358a142eadec73d7 to your computer and use it in GitHub Desktop.
Get apple logos from https://www.apple.com/apple-events/ (Apple Special Event October 30, 2018)
#!/bin/sh
urls=$(curl -s https://www.apple.com/v/apple-events/home/a/built/styles/overview.built.css | grep -Eo 'background[^)]+)' | grep hero_image_ | grep large_2x | grep -v past | sed -E 's/^.+"([^"]+)".+$/\1/' | sort | uniq)
for url in $urls
do
curl -O https://www.apple.com/$url
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment