Skip to main content

北邮统一登录网关 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bupt_session-0.1.0.tar.gz (4.0 kB view hashes)

Uploaded Source

Built Distribution

bupt_session-0.1.0-py3-none-any.whl (4.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page