Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import urllib
- from googlevoice import Voice
- from googlevoice.util import input
- import time
- voice = Voice()
- voice.login("spinnelein@gmail.com","password")
- phoneNumber = "612-532-xxxx"
- text = "CHEM440 may be OPEN"
- i=0
- site = "https://oncourse.umn.edu/recreg/Pages/frmCourseDetail.aspx?serviceoff_pk=251757"
- a=urllib.urlopen(site).read()
- while a.find("0 available") != -1:
- time.sleep(60)
- a=urllib.urlopen(site).read()
- print a.find("0 available")
- while i < 10:
- voice.send_sms(phoneNumber, text)
- time.sleep(60)
- i = i + 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement