Skip to content

Latest commit

 

History

History
56 lines (40 loc) · 2.02 KB

README.md

File metadata and controls

56 lines (40 loc) · 2.02 KB

zjuintl_assistant

Features

  • Get deadline of assignments from Blackboard
  • Get latest grades of assignments from Blackboard
  • Get latest announcements from Blackboard
  • Get notices from myZJU
  • Get information from PeopleSoft. I've not figured out how to do this yet. PRs and disscussions are welcome!

Usage

Install the package from PyPI:

pip install zjuintl-assistant

Then you can use the package in your code:

from zjuintl_assistant import Assistant

assistant = Assistant(username='your_username', password='your_password')

# Get deadlines of assignments
deadlines = assistant.get_deadlines()
# Get 10 latest grades
grades = assistant.get_grades(10)
# Get 10 latest announcements (excluding ones without main content)
announcements = assistant.get_announcements(10)
# Get 10 latest announcements (including ones without main content)
announcements_full = assistant.get_announcements(10, full=True)
# Get 10 latest notices from myZJU (not fetching main content)
notices = assistant.get_notices(10)
# Get 10 latest notices from myZJU (English version and including main content)
notices_en_full = assistant.get_notices(10, EN=True, get_content=True)

For more details, please refer to wiki.

Development Notes

This project is simply a spider that replay the requests of the browser. Login process of zjuam is based on package capture and reverse engineering of javascript code. However, the analysis of PeopleSoft is too difficult for me. So any help is welcome! I think possible difficulty is the management of cookies.

Links

Credits