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.1.tar.gz
(4.1 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.1.tar.gz.
File metadata
- Download URL: zjuwebvpn-0.1.1.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
88d9506185ef2af22885f8938ffda979a47b65424daef2f1e411156588d86871
|
|
| MD5 |
8f302fd761661279a73c576c9202023c
|
|
| BLAKE2b-256 |
234e35b1ee5a2e765a3a0c619a08e9f2df0141aace2d970bf2887497623fee96
|
File details
Details for the file zjuwebvpn-0.1.1-py3-none-any.whl.
File metadata
- Download URL: zjuwebvpn-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.3 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 |
5d5a5a7e08718e31e748a7485e03edf82c010261cb201ac6b3e7a82fb47a9af0
|
|
| MD5 |
f3583eb8ed50096338b4ce54d94bc187
|
|
| BLAKE2b-256 |
ab9703c0879644168d51066798ad5c4ce92f1ae6483c6e25222a01ea35ce0405
|