Skip to content

华中科技大学统一身份认证登录接口

Notifications You must be signed in to change notification settings

1kuzus/HustCASLogin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

HustCASLogin

华中科技大学统一身份认证登录接口

分析过程

这篇博客记录了详细的分析过程。

准备

git clone https://github.com/1kuzus/HustCASLogin.git
pip install requests pyexecjs ddddocr lxml

快速开始

# demo.py
from caslogin import login

headers = {
    "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36",
}

username = "Uyyyyxxxxx"
password = "xxxxxxxxxx"

resp_login, session = login(
    url_cas="http://pass.hust.edu.cn/cas/login?service=http://register.hust.edu.cn/caslogin",
    username=username,
    password=password,
    headers=headers,
)

print(resp_login.status_code)
print(resp_login.url)

1kuzus

About

华中科技大学统一身份认证登录接口

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages