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.6.tar.gz (3.3 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.6-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nju_login_simple-1.1.6.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","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.6.tar.gz
Algorithm Hash digest
SHA256 bfdbd8d3b57e5efc8c723bd22643e78dd52d266ad945e6a1f39816669913c566
MD5 6067ebce26d16215c66fcec7cc72d94c
BLAKE2b-256 4e2fcb5ebaee65028c252132182001b05302d6f3f150a866c83b25c1caedc798

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nju_login_simple-1.1.6-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 6b40d7a16e05aa645d3240001e7a51a528d115ad209abe2c403dc5466dc3a3dc
MD5 1323fa9ce9eb5be16d53319481882e3a
BLAKE2b-256 1a73b98a667783d80f623b16f66b454c8eac160319d2279964e030da56bf2abf

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