Created
June 25, 2016 00:33
-
-
Save mattjbones/b360998977f33daaff339044610f8d47 to your computer and use it in GitHub Desktop.
Eu Reref counter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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