
vaibhav
By: a guest on
Mar 10th, 2009 | syntax:
Python | size: 0.44 KB | hits: 50 | expires: Never
# Script to log-off from Reliance Internet.
import urllib
data = urllib.urlencode({"confirmed":"true"})
url = "http://www.reliancebroadband.co.in/accountLogoff/home"
try:
page = urllib.urlopen(url, data)
if "authenticateForm" in page.read():
print "Logged off successfully!"
else:
print "ERROR logging off."
except IOError, e:
print "An exception occured while opening the log off page."
print e
import time
time.sleep(3)