Skip to content

Instantly share code, notes, and snippets.

@0x4a
Created August 12, 2017 21:02
Show Gist options
  • Save 0x4a/474246cf44f7a3ed585342cc632737d1 to your computer and use it in GitHub Desktop.
Save 0x4a/474246cf44f7a3ed585342cc632737d1 to your computer and use it in GitHub Desktop.
get the first 100 bytes of a webpage every minute #bash #script
#!/bin/bash
timestamp() {
date +"%Y-%m-%d_%H-%M-%S"
}
while :
do
curl -s -k https://www.google.com | head -c 100 > curl_$(timestamp).html
echo saved: $(timestamp)
sleep 60
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment