/MAYA-Xtractor

MAYA-Xtractor is a script to extract all the timetables and tabulate them in CSV files.

Primary LanguagePythonMIT LicenseMIT

Hits

MAYA-Xtractor

MAYA-Xtractor is a script to extract all the timetables over the faculties and tabulate them in CSV files.

Prerequisite

Initialize

To begin, clone this repository in your local environment.

$ git clone https://github.com/chenghui-lee/MAYA-Xtractor/

And cd into the cloned directory

$ cd MAYA-Xtractor/

Install the required packages

$ pip install -r requirements.txt

Change the environment attributes in env.py according to your needs.

This including your Maya username, password and path to your ChromeDriver.

os.environ['USERNAME'] = '175598874' # Your new Maya ID here
os.environ['PASSWORD'] = 'password12345' # Your Maya Password
os.environ['PATH'] = 'E:\Selenium\ChromeDriver' # Path to your ChromeDriver
os.environ['HEADLESS'] = 'True' # Change to 'False' if you like to visualise it

Run

To run the program

$ python maya-xtractor.py

CTRL+C to terminate the program during the runtime.

Output

You can view the real-time progress of the script in your command line prompt.

The script will output a CSV file for every faculty.

fsktm-generated

Future Update

To update the script when there is new version.

$ cd MAYA-Xtractor/
$ git pull

License

You're free to fork / modify the code for your own purpose, however please link this repository somewhere in your program.