SHARE
TWEET

vaibhav

a guest Mar 10th, 2009 51 Never
  1. # Script to log-off from Reliance Internet.
  2.  
  3. import urllib
  4.  
  5. data = urllib.urlencode({"confirmed":"true"})
  6. url = "http://www.reliancebroadband.co.in/accountLogoff/home"
  7.  
  8. try:
  9.         page = urllib.urlopen(url, data)
  10.  
  11.         if "authenticateForm" in page.read():
  12.                 print "Logged off successfully!"
  13.         else:
  14.                 print "ERROR logging off."
  15. except IOError, e:
  16.         print "An exception occured while opening the log off page."
  17.         print e
  18.  
  19. import time
  20. time.sleep(3)
RAW Paste Data
Top