Skip to content

Fetch MSBTE polytechnic results and store in a excel file! Exploit the script to fetch more data from more MSBTE type of results!

Notifications You must be signed in to change notification settings

AJV009/MSBTE_Results_Fetcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 

Repository files navigation

MSBTE_Result_Fetcher

A python script to fetch MSBTE polytechnic results and store in a excel file. If the script doesnt work please open a issue. As of now only seat numberare supported. The script will be improved after next SEM end exam.

Dependencies Installation

$ pip install --upgrade 'setuptools<45.0.0'
$ pip install colorama pandas pyinstaller pytest-timeit pywin32 lxml openpyxl

Usage

$ git clone https://github.com/AJV009/MSBTE_Results_Fetcher.git
$ cd MSBTE_Results_Fetcher
$ python msbte_res.py --from_seat="407517" --to_seat="407520" --export_file_name="dataout1"

Try --help flag to find more info

$ python msbte_res.py --help
INFO: Showing help with the command 'msbte_res.py -- --help'.
NAME
    msbte_res.py - Description: Takes in a range of seat number then exports marks to a excel file!
SYNOPSIS
    msbte_res.py <flags>
DESCRIPTION    
    Flags:
    --sample="<seat_number>"          =  give a working seat number with the perfect format of results!
    --from_seat="<seat_number>"       =  From seat number (for looping through)
    --to_seat="<seat_number>"         =  To seat number. e.x. till 407518
    --export_file_name="<file_name>"  =  Only the file name, .xlsx will be added automatically!
    --help                            =  Display this help!

    e.x. python msbte_res.py --from_seat="407520" --to_seat="407525" --export_file_name="dataout"
FLAGS
    --sample=SAMPLE
    --from_seat=FROM_SEAT
    --to_seat=TO_SEAT
    --export_file_name=EXPORT_FILE_NAME

Using pyinstaller to compile to a win32 exe file

  • Packed (32mb, SLOW)
$ pyinstaller --hidden-import='pkg_resources.py2_warn' --onefile msbte_res.py
  • Unpacked (82mb, FAST)
$ pyinstaller --hidden-import='pkg_resources.py2_warn' msbte_res.py

Linux users can better create a env and run the script in it!

NOTE!

As of now its only for MSBTE! AND the url is static! (I meant I have placed it in the code, so if you wish to fetch the same type of results but with different URL and stuff, please youll have to make changes in the code. the URL var!)

You can contribute by opening issues!

About

Fetch MSBTE polytechnic results and store in a excel file! Exploit the script to fetch more data from more MSBTE type of results!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages