Ion Auto Login script in Python

i was just thinking about making the very famous IAL script of DJ in python and here is it and its damn simple

<code>import urllib, urllib2, time
username = "Your username"
password = "Your Password"
interval = 10
data = {"loginID":username,"loginpassword":password,"flag":"0","popcheck":"0","submit":"Sign In"}
value = urllib.urlencode(data)
request = urllib2.Request("",value)
print "Logging In\nMade by Ankur -"
while (1):
        open = urllib2.urlopen(request)
        responce =
        for i in range (1,interval):
                print (interval-i),"min Till Next Login"
        print "Logging In\nMade by Ankur -"

or downlaod

run it by typing python

it uses urllib, urllib2 and time which are the default module, you have to change the username and password to your username and password, changing the interval changes the time interval in which auto login takes place.

PS - current it does no check if your connection is active or not, will add that soon

Published: September 16 2008

  • category:
  • tags:
blog comments powered by Disqus