Wednesday, April 1, 2009

VTU-RESULTS and ISE-RANKLIST

This is an application to check VTU results and also ise ranklist. I did this using GAE, python, CSS, HTML. I wanted to do this during my 3rd sem. I could do it within a month after learning python and GAE. These are those applications.
VTU RESULTS and
ISE RANKLIST .

It was my longtime dream to develop an application to fetch and display vtu results. Finally I could do it using Python and GAE. Thanks to google for providing such a platform, and giving free hosting :-)


For Linux users :


$python
>>>import urllib
>>>res=urlllib.urlencode({'rid':'type your usn','submit':'submit'})
>>>req=urllib.urlopen({'http://results.vtu.ac.in/default.php',res)
>>>data=req.readlines()
>>>data[245]




For windows users :



Download IDLE IDE for python from www.python.org. Its free and its of 10 Mib. Then after installing open it. You will get a prompt like this
>>>
Then type the following.
>>>import urllib
>>>res=urlllib.urlencode({'rid':'type your usn','submit':'submit'})
>>>req=urllib.urlopen({'http://results.vtu.ac.in/default.php',res)
>>>data=req.readlines()
>>>data[245]

/* Here is the complete description of the above five lines. First we have to import the library for extracting internet resources. Python provides a library for the same. Since the usn what we type will be stored in the text box of VTU site, it will be in the form of key value pair and it needs to be encoded. So, we are using the second line. Then, the result corresponding to the entered usn will be returned in the form of a file object by urlopen function. Then, that needs to be read in the form line by line (using readlines() ) or in the form of a string (using read() ) . Finally if readlines() function is used, we can display the fetched content using data[245]. It will be in the form of a list. So, it will display the result of the corresponding student */

8 comments:

  1. Nice post.. How to check ise ranklist?
    Thanks.

    ReplyDelete
  2. dude how to use this script
    i tried it in many ways but this isn't seem to be working...

    ReplyDelete
  3. @Abhishek: Can u type here the exact commands you ran and the output you are getting?

    ReplyDelete
  4. Hrishikesh HuilgolkarDecember 24, 2009 at 7:20 AM

    >>>import urllib
    >>>res=urlllib.urlencode({'rid':'type your usn','submit':'submit'})
    >>>req=urllib.urlopen({'http://results.vtu.ac.in/default.php',res)
    >>>data=req.readlines()
    >>>data[245]

    ReplyDelete
  5. Hrishikesh HuilgolkarDecember 24, 2009 at 7:22 AM

    There were some small errors in script. I fixed them for you. The above code works for python 2.6 (Windows).

    ReplyDelete
  6. Hrishikesh HuilgolkarDecember 24, 2009 at 7:23 AM

    Woops... the above code wont work. the correct code is below..
    >>>import urllib
    >>>res=urllib.urlencode({'rid':'type your usn','submit':'submit'})
    >>>req=urllib.urlopen('http://results.vtu.ac.in/default.php',res)
    >>>data=req.readlines()
    >>>data[245]

    ReplyDelete
  7. Hey guys I created my own python script and implemented it at http://www.vtuclub.com to check results

    ReplyDelete
  8. how to implement this script on website?
    is any coaching is there for python in Bangalore?
    can any one send me the working script?

    ReplyDelete