A Python wrapper for Zhejiang University WebVPN
Project description
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)
Requirements
requestspycryptodome
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
zjuwebvpn-0.1.5.tar.gz
(5.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file zjuwebvpn-0.1.5.tar.gz.
File metadata
- Download URL: zjuwebvpn-0.1.5.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
69d1aefaa170387b1768f0607acada3649d8301f746c6d7ef2d747801ecbb533
|
|
| MD5 |
ae540c8bc4078bfb7bf8da52ae63676d
|
|
| BLAKE2b-256 |
c98ea5ca5f509447eb986f8f880128d8d11d082a84e6f6b00a0fd4f91bd213cc
|
File details
Details for the file zjuwebvpn-0.1.5-py3-none-any.whl.
File metadata
- Download URL: zjuwebvpn-0.1.5-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8f2a653717a7bdff5dda8d26c9819576bb2276c55dbad5b3a425cb6ed6cac536
|
|
| MD5 |
c95e8307a348ef0fa854227d2c36b987
|
|
| BLAKE2b-256 |
99339462536f9ba77f9199db4d69bc681b2177809a211a99edc76bf1b7f8768e
|