Skip to content

Instantly share code, notes, and snippets.

@mattjbones
Created June 25, 2016 00:33
Show Gist options
  • Save mattjbones/b360998977f33daaff339044610f8d47 to your computer and use it in GitHub Desktop.
Save mattjbones/b360998977f33daaff339044610f8d47 to your computer and use it in GitHub Desktop.
Eu Reref counter
#!/bin/bash
while true
do
result=`curl --silent https://petition.parliament.uk/petitions/131215 | grep -b2 "signature-count-number" | grep "<span>"`
IFS=" " read -ra ADDR <<< "$result"
echo `date +%d-%m:%X` - ${ADDR[1]} signatures
sleep $((RANDOM%30+15))
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment