Skip to main content

A Solution to get timetable automatically

This is designed at first to get excel timetable from http://my.cqu.edu.cn/enroll/ but failed at last because of js Ajax loading of specific page. I tried every method I can but gave up at last.
So this solution maybe design for getting token for logging in process as we have known that all requests need this token.

Usage

Refer to main function of main.py as a demo, and docstring of cm_http class.

To List

  • get token
  • get json format timetable
  • parsing timetable.json translate it to xlsx format for example
  • using in cqu_timetable_new

Although I'd like to use these scripts on desktop, more people seem to get an automatically one.
Another reason why I have to build this is that I hate the new wecqu under the Student Union of CQU. I'd like to use AGPL to force them ether opensource of their code or make another one without my function.

License

AGPL 3.0

Metadata

Release files for cm-http-api 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cm-http-api 0.1.1
File Size Uploaded Provenance Actions
cm-http-api-0.1.1.tar.gz 16.3 kB Without provenance Details for cm-http-api-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cm-http-api 0.1.1
File Interpreter ABI Platform Actions
cm_http_api-0.1.1-py3-none-any.whl Python 3 none any Details for cm_http_api-0.1.1-py3-none-any.whl

Total release size: 33.7 kB

Release files / cm-http-api-0.1.1.tar.gz

Download URL cm-http-api-0.1.1.tar.gz
Size 16.3 kB
Tags Source
SHA-256 checksum
How to use checksums
df472a3832c2cb25ff80d8c4ee33ada1ff530ead5a00aa5b6dd8a409bed9a740
BLAKE2b-256 checksum
How to use checksums
558d541f7d5d4571749f4702acab5efa73581efc721096ec63329ae4f0ace649
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.4 CPython/3.9.1 Linux/5.4.0-1039-azure

Release files / cm_http_api-0.1.1-py3-none-any.whl

Download URL cm_http_api-0.1.1-py3-none-any.whl
Size 17.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9efe3f88eedff936db7687fe55b14d9dcedbebcbbce77f2959efec1e03f28aee
BLAKE2b-256 checksum
How to use checksums
9687d0b97c3959d6d4997dd9eb91515ea66d029f2a36c46c1ddd9104583b8662
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.4 CPython/3.9.1 Linux/5.4.0-1039-azure

Security for cm-http-api 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page