Skip to main content

模拟登录西南科技大学一站式网上服务大厅,带验证码识别

Project description

auth_swust

PyPI Python Version Code style: black

免责声明

请自觉遵守所在国家/地区法律法规,本程序仅供学习参考,一切法律责任由用户自己承担,与开发者无关。

开始使用

安装:

pip install auth-swust

注意,在你开始使用之前,需要安装需要的两个深度学习框架之一

注意,在你开始使用之前,需要安装需要的两个深度学习框架之一

注意,在你开始使用之前,需要安装需要的两个深度学习框架之一

在你的项目中引入包:

import os
import sys

# 设置验证码识别框架 需要先安装 keras, tensorflow
os.environ['CAPTCHA_BACKEND'] = "keras"
from loguru import logger
from auth_swust import Login, default_logger

# 设置 log 等级
logger.remove(default_logger)
logger.add(sys.stdout, level="DEBUG")

login = Login("xxxxxx", "xxxxxxx")
res, info = login.try_login()
# 使用上面的返回值进行下一步的处理
# 具体返回值类型可以查看代码 try_login 的注释

如果你想设置 log 等级,请查看: 设置 LOG

FAQ点我点我

开发须知

开发前安装依赖

pip install -r requirements.txt

测试所需依赖:

pip install -r dev/requirements_test.txt

测试:

pytest

在本地安装

python setup.py install

生成包:

python setup.py sdist bdist_wheel

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

auth_swust-1.4.0.tar.gz (2.3 MB view details)

Uploaded Source

Built Distribution

auth_swust-1.4.0-py3-none-any.whl (2.3 MB view details)

Uploaded Python 3

File details

Details for the file auth_swust-1.4.0.tar.gz.

File metadata

  • Download URL: auth_swust-1.4.0.tar.gz
  • Upload date:
  • Size: 2.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.6.8

File hashes

Hashes for auth_swust-1.4.0.tar.gz
Algorithm Hash digest
SHA256 a9d9d1198195c3cb1b698044ef05e241001ed0abd01eec97e5948d4ec252453c
MD5 7bf214529a205ba25d0eb4aae540a5f2
BLAKE2b-256 b715a65ece0b9ce4e33cd4f1c4403bfe1b3ba7ae28d7f0accf770c02d93a6a22

See more details on using hashes here.

File details

Details for the file auth_swust-1.4.0-py3-none-any.whl.

File metadata

  • Download URL: auth_swust-1.4.0-py3-none-any.whl
  • Upload date:
  • Size: 2.3 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.6.8

File hashes

Hashes for auth_swust-1.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9867d128135153840d80f5939f2ffd79fa67ddc4c9fb50a9f46ab51df7fd3fc1
MD5 e9213c05bbff4378ed6969cf57369b87
BLAKE2b-256 bb8b64c0ef38ab58356449e63d8db54b40fd515fa83ae0e28c477aa02d9bd3e4

See more details on using hashes here.

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