Skip to main content

HustPass support for Python-Requests

Project description

HustAuth

HustPassLogo

This project provides HustPass support for Requests

Variation of HustLogin

Installation

  • Step1: install the lib

    pip install requests-hustauth
    
  • Step2: install Tesseract-OCR back-end

    sudo apt install tesseract-ocr
    

    P.S. For Windows users download binary here (5.0.0+)

Usage

example.py

import requests
from requests_hustauth import HustAuth

session = requests.Session()
hust_auth = HustAuth('USERID','PASSWORD')

resp = session.get('http://m.hust.edu.cn/wechat/apps_center.jsp',auth=hust_auth)
print(resp.text)

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

requests_hustauth-0.0.1.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

requests_hustauth-0.0.1-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file requests_hustauth-0.0.1.tar.gz.

File metadata

  • Download URL: requests_hustauth-0.0.1.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.0

File hashes

Hashes for requests_hustauth-0.0.1.tar.gz
Algorithm Hash digest
SHA256 3c6fa44fa645b5739cef880592c5056e48322448962b75e657b37ef342ab67df
MD5 a9f3e7d25dbb7e474c06508a417a3f71
BLAKE2b-256 3d785f0a8599a0b160dc447ef347ab72e0e16eab82037e02838cf87707073ab6

See more details on using hashes here.

Provenance

File details

Details for the file requests_hustauth-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for requests_hustauth-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3f4663d1d0e9571f1115407ddc1ceb38d3f1ab605916a31560b4727716fa28b0
MD5 b277ec39a15a4bc7e06297d699b499e9
BLAKE2b-256 fa4c217cc9b3e6a4e227a217535f04aad10d0cbd66387ac30aa715e4d78f3685

See more details on using hashes here.

Provenance

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