Skip to main content

Login to authserver.nju.edu.cn, using python requests

Project description

南京大学统一认证登陆

从账号密码拿到 CASTGC cookie

import nju_login
response = nju_login.login('学号', '统一认证密码')

高级用法

response = nju_login.login(
  '学号',
  '统一认证密码',
  # 验证码识别回调,不传则使用ddddocr识别
  lambda x: "45cx"
)

# Now the cookies in response represent your login state.
# Specifically the CASTGC cookie.

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

nju_login_simple-1.1.5.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nju_login_simple-1.1.5-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file nju_login_simple-1.1.5.tar.gz.

File metadata

  • Download URL: nju_login_simple-1.1.5.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for nju_login_simple-1.1.5.tar.gz
Algorithm Hash digest
SHA256 089ce6570afa8cbfcfb2a3ceabcbfc0cd7ecdcc4857616460a170e35cb0e25cc
MD5 6820091802b757805edcac25bee1d610
BLAKE2b-256 5c822354e86b6f32e565a13b41c9786e8bb72d37fb7aef63a0fc9e66bb12627a

See more details on using hashes here.

File details

Details for the file nju_login_simple-1.1.5-py3-none-any.whl.

File metadata

  • Download URL: nju_login_simple-1.1.5-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for nju_login_simple-1.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 8be5ae1a592820a1c053a8d0d55df3e67da1b8502bc0f3d48d9a6bc8ef020dc0
MD5 72b3b0fbcc9cd716c11def807ceac3c0
BLAKE2b-256 ad9f64a0e24636d557bf9946d4a40df2155a61928e59d84fed01801a319dc0c4

See more details on using hashes here.

Supported by

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