Graduate information lookup CLI - for those who don't want to use the official HCMUS graduate information lookup website.
Official HCMUS graduate information lookup website
pip install -r requirements.txtdocker pull ghcr.io/khongsomeo/hcmus-dstn:latestUsage:
usage: check.py single [-h] [--student_name STUDENT_NAME] [--degree_id DEGREE_ID] [--language LANGUAGE]
optional arguments:
-h, --help show this help message and exit
--student_name STUDENT_NAME
Student Name (Vietnamese with/without diacritics; upper/lowercased; or just use your Student ID)
--degree_id DEGREE_ID
Degree ID no.
--language LANGUAGE Language (en/vn)Examples:
# Python
python check.py single --student_name "nguyen van a" --degree_id "QH123456"# Docker image
docker run ghcr.io/khongsomeo/hcmus-dstn:latest single --student_name "nguyen van a" --degree_id "QH123456"Usage:
usage: check.py multiple [-h] [--file FILE]
optional arguments:
-h, --help show this help message and exit
--file FILE Path to the .csv file to checkThe .csv file must follow this format:
name1,degreeid1
name2,degreeid2
...
Examples:
# Python
python check.py [--output_file output.csv] multiple --file check.csv# This command check for degress in test.csv.
# Note that you must sync files in `pwd` using -w and -v flags.
docker run -w `pwd` -v `pwd`:`pwd` ghcr.io/khongsomeo/hcmus-dstn:latest [--output_file output.csv] multiple --file test.csvConfigurations can be found in configs/config.json and configs/config.yaml. By default, the program will use configs from config.json (though they have the same content).
configs/config.json:
{
"api_url": "https://example.com/dstn/api", // Official school API
"headers": {
"User-Agent": ... // Do not edit the User-Agent
},
"results": {
"rows": 10, // Max of results per row
"page": 1, // Show results per page.
"sord": "desc" // Sorting order
}
}configs/config.yaml:
api_url: https://example.com/dstn/api
headers:
User-Agent: ... # Do not edit the User-Agent
results:
rows: 10
page: 1
sord: descThis project is licensed under THE GNU GPL v3