Last active
August 29, 2015 14:08
-
-
Save gpedro/35e771e3f26ddab5ccbc to your computer and use it in GitHub Desktop.
Resultado PUCPR 2014
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import re,requests,os,time | |
while(1): | |
ping = requests.get('http://resultado2015.pucpr.br/') | |
p = re.compile(ur'Em breve, resultado do Vestibular 2015', re.IGNORECASE) | |
if ping.status_code == 200: | |
if not re.search(p, ping.text): | |
os.system('notify-send -u critical "Resultado PUCPR" "Resultado já disponível no site: http://resultado2015.pucpr.br/"') | |
time.sleep(300) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment