Skip to content

Instantly share code, notes, and snippets.

@molecyll
Forked from pepijn/ticketswap.sh
Last active August 29, 2015 14:07
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 molecyll/77bbb23ed37dfee0dd73 to your computer and use it in GitHub Desktop.
Save molecyll/77bbb23ed37dfee0dd73 to your computer and use it in GitHub Desktop.
blackboard grade checker
#!/bin/bash
HOST=http://blackboard.uva.nl/webapps/portal/frameset.jsp
COURSE="$1" #go to "course-exam information" and select everything after ../frameset.jsp
while [ 1 ]:
do
count =`curl -s "$HOST$COURSE" | grep -c "uitslag"
if [ "$count" != "0" ]
then
say "good news" "Grades are online!"
exit 0
fi
sleep 60
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment