Skip to main content

Python interface for getting data from different platforms of ZJU International College

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zjuintl_assistant-0.0.3.tar.gz (9.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zjuintl_assistant-0.0.3-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

Details for the file zjuintl_assistant-0.0.3.tar.gz.

File metadata

  • Download URL: zjuintl_assistant-0.0.3.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for zjuintl_assistant-0.0.3.tar.gz
Algorithm Hash digest
SHA256 feafe220cfbe1b01412be89ac087c56d51bcad17e0bbfdeae3ff6c14b9c2802f
MD5 1ab3f24d95eebfb5732b6428f314bded
BLAKE2b-256 6574bf4807e459d4019cf5eff76396bc9bd2375b000784db3ec6791b6d78e188

See more details on using hashes here.

File details

Details for the file zjuintl_assistant-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for zjuintl_assistant-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2dbedce68851c44f057c3e8ee0f5dedc1ca815886c5914f74df3fd65c7e1e04f
MD5 21abc83dd95dfc073f3d9e3ae2d79049
BLAKE2b-256 323860284606eacff97c40632665695a4a19d451cbe1ab8fd4672840a8f17f13

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page