Skip to content

Instantly share code, notes, and snippets.

@cryptix
Created March 14, 2012 14:28
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 cryptix/2036854 to your computer and use it in GitHub Desktop.
Save cryptix/2036854 to your computer and use it in GitHub Desktop.
monitor epetitions from the german bundestag. currently acta
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