Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

vaibhav

By: a guest on Mar 10th, 2009  |  syntax: Python  |  size: 0.44 KB  |  views: 51  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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)