MAYA-Xtractor is a script to extract all the timetables over the faculties and tabulate them in CSV files.
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
To run the program
$ python maya-xtractor.py
CTRL+C
to terminate the program during the runtime.
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.
To update the script when there is new version.
$ cd MAYA-Xtractor/
$ git pull
You're free to fork / modify the code for your own purpose, however please link this repository somewhere in your program.