北邮统一登录网关 API
Project description
BUPT Session
北邮统一登录网关 Session。用于需要登录的网络请求。
Usage
from bupt_session_py import Session
session = Session()
try:
session.login('2022114514', 'yjsp1919810')
# 进行一些北邮服务的网络请求
# 这里以查询电费服务为例子
# (More detail: https://github.com/jerrymakesjelly/electricity-monitor)
session.post('https://app.bupt.edu.cn/buptdf/wap/default/chong', allow_redirects=False)
session.post('other url')
# ...
except Exception as e:
print(e)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file bupt_session-0.1.0a0.linux-x86_64.tar.gz
.
File metadata
- Download URL: bupt_session-0.1.0a0.linux-x86_64.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a13e4d8273cb154f9dec0daed296ed106664fa91c6e6c436ef120179f17a5c9c |
|
MD5 | 448a265ed2499445bcb307b06226017a |
|
BLAKE2b-256 | c2d591f6f54abddf274b26285c4f2f1c5a2a0e43d1fee7507bc153d9ea59b24c |