A project for Husters, helping you get exam schedule.
powered by HustAuth.
-
Python packages
requests requests_hustauth ics datetime
-
Tesseract-OCR back-end (essential, dependency of HustAuth)
sudo apt install tesseract-ocr
P.S. For Windows users download binary here (5.0.0+)
example:
from exam_query import *
from exam_process import *
Uname = 'U20xxxxxx'
Upass = 'xxxxxxxx'
exam_list = get_exam_info(Uname,Upass)
exam_to_md(exam_list, 'exam.md')
exam_to_calendar(exam_list, 'exam.ics')
explanation:
Uname
&Upass
: hust account u/pget_exam_info
: fetch exam list from webexam_to_md
: save the table as mdexam_to_calendar
: save as calendar format
![Image](https://private-user-images.githubusercontent.com/58030272/293456168-72290d94-222a-493b-a85d-843ffc7f7a32.jpg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjMzMzU3NjIsIm5iZiI6MTcyMzMzNTQ2MiwicGF0aCI6Ii81ODAzMDI3Mi8yOTM0NTYxNjgtNzIyOTBkOTQtMjIyYS00OTNiLWE4NWQtODQzZmZjN2Y3YTMyLmpwZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODExVDAwMTc0MlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTYzMTVmMzlkNTJkN2RjZmRmYjJmY2JmZDY1MTYwZWE2NDA2YjYwYThhZmVjODVlMDk2YzllYTUzMmUxZWZmMTEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.F2UmLbeS0oGZiQ0tLjGfHwQvKYd_-VnhSD-TfzTzdpE)
![Image](https://private-user-images.githubusercontent.com/58030272/293456171-71ed9569-a8c0-41c9-9876-e804a1c158f4.jpg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjMzMzU3NjIsIm5iZiI6MTcyMzMzNTQ2MiwicGF0aCI6Ii81ODAzMDI3Mi8yOTM0NTYxNzEtNzFlZDk1NjktYThjMC00MWM5LTk4NzYtZTgwNGExYzE1OGY0LmpwZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODExVDAwMTc0MlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWEyOGRmYjJlOTk3NGJkNjQwNGFlNDI4Yjk0OGFhZTE0NjBmNmZjOGM0YzIwZWNiNzI0OGI0N2YzMGNmMzU5MWYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.4rN6cEGPcYXcWyS2J5VUUAjbhFrlfae5tdn99lJl61M)