Scrapes SIU result page for multiple results. All you need is the list of PRNs for which you want to find the result, and a range of possible Seat Numbers.
The script will then do its magic, and store all results in a directory ./result
in the form of PNG
images. It will additionally create a file data.csv
which will contain details of all the generated data.
However, the script isn't pure magic, so wait for SIU to release the result before you start cursing the develepor.
-
Remember your PRN but not your Seat Number? Don't worry, just choose an appropriate range and the script will find it for you.
-
Want to find results for multiple people (like your friends, or even your batch!)? All you need is their PRN.
This project was made for educational purposes only.
Scraping the web might be considered illegal in some cases. All I ask is that you use this script responsibly, ethically, and at your own risk!
If you're from the SIU Administration and feel that this script violates any institutional policy, please contact me and I'll be happy to remove it.
$ pip install Selenium
$ pip install Pillow
Clone this repository to your local machine. Navigate to the root directory.
Inside script.py
, there are two places at the start of the file marked # MAKE CHANGES HERE
. Go ahead and make the following changes:
-
Change values of
start_prn
andend_prn
. The script will work to capture results of this range of PRNs. -
Change values of
start_seat_num
andend_seat_num
such that the range[start_seat_num, end_seat_num]
contains the seat numbers for each required PRN. Take a good logical guess and choose a wide range of seat numbers. It won't matter as long as its reasonable (or if you've got a supercomputer!).
That's it. Run it now! What are you even waiting for?
Further improvements in mind are operating upon the data for analysis, and creating a front-end for mass usability. Contact me if you want to contribute.