ZJUWebVPNSession
A Python wrapper for accessing Zhejiang University WebVPN automatically.
Login once, access all ZJU internal sites as if you are on campus.
Features
- Auto login to webvpn.zju.edu.cn
- Transparent URL conversion (no need to manually rewrite URLs)
- Fully compatible with
requestsAPI - Easy to download files, submit forms, crawl internal resources, etc.
Install
pip install ZJUWebVPN
Quick Start
from ZJUWebVPN import ZJUWebVPNSession
# Create a session and login
session = ZJUWebVPNSession('your_zju_username', 'your_zju_password')
# Example: GET request to an internal site
resp = session.get('https://www.cc98.org/')
print(resp.text)
Examples
1. GET a page
resp = session.get('https://www.cc98.org/')
print(resp.text)
2. POST a form
data = {'key1': 'value1', 'key2': 'value2'}
resp = session.post('https://test.zju.edu.cn/submit', data=data)
print(resp.text)
3. Context Manager
with ZJUWebVPNSession(user, pwd) as session:
r = session.get('https://example.com')
Requirements
requestspycryptodome
Metadata
Release files for ZJUWebVPN 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| zjuwebvpn-0.2.1.tar.gz | 4.4 kB | Without provenance | Details for zjuwebvpn-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| zjuwebvpn-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for zjuwebvpn-0.2.1-py3-none-any.whl |
Total release size: 9.0 kB
Release files / zjuwebvpn-0.2.1.tar.gz
| Download URL | zjuwebvpn-0.2.1.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5d34c11e39f48e8aae4f9a3ffce4c29f525f3ab39afba77150a94ebfa5924f74
|
|
BLAKE2b-256 checksum How to use checksums |
935c9ec3c8d12d609ee4db589df707a4efd7a557bea40e96ae56242362b78ca3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / zjuwebvpn-0.2.1-py3-none-any.whl
| Download URL | zjuwebvpn-0.2.1-py3-none-any.whl |
|---|---|
| Size | 4.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9ba20f9cc16e517970878285627abfd02594b4f90901ec09fc78c53051b87ff8
|
|
BLAKE2b-256 checksum How to use checksums |
b9487ae7bae2cd25728067c685dececcc81f374cfa42ecc4d91780eb6093bbad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Security for ZJUWebVPN 0.2.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.