This tool is designed to get enrolled in NTUST courses by using Requests.
Since it's unlucky for some students to fail to get enrolled in courses they want, and I was learning python, so I made it to ameliorate the problem with what I've learned.
But I have to declare that it's only for research purposes because using such kinda tool is unfair for other students. The reason why I made it is all for training and improving myself.
The tool had out of work since NTUST has an upgrade the way to anti-robot with Google's reCAPTCHA in April 2020, so I think it's time to open source it.
The tool has a Selenium version, but the efficiency was terrible.
- Python
- HTTP methods (GET / POST)
- Requests
- Understand how NTUST student information system works.
Before running the codes, you will need the following packages:
- configparser: Parse configuration from config.ini.
- requests: Send requests to sever and fetch data.
- BeautifulSoup: Parse HTML elements and information.
- Image and pytesseract: Deal with captcha.
The following steps tell how my script works:
- Read configuration file and get user's login info with configparser.
- Get login page and captcha image in session by using Requests.
- Convert captcha image into text and delete garbled words.
- Login (Go back to step.1 if captcha is wrong)
- Submit course ID (check after submitting 10 times, if credits is still the same, keep doing)
- Mission Complete.