Created
March 14, 2012 14:28
-
-
Save cryptix/2036854 to your computer and use it in GitHub Desktop.
monitor epetitions from the german bundestag. currently acta
This file contains hidden or 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
signed=0; | |
while [ $signed -lt 50000 ]; | |
do sleep 5; | |
signed=$(curl "https://epetitionen.bundestag.de/index.php?action=petition;sa=details;petition=22697" 2>/dev/null \ | |
| grep pet_det_td_4 \ | |
| cut -d '"' -f3 \ | |
| cut -d ' ' -f1 \ | |
| tr -d '>' \ | |
) | |
left=$(echo "50000 - $signed" | bc) | |
echo $(date): $signed ppl signed. $left left | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment