Skip to main content

HustPass support for Python-Requests

Project description

HustAuth

HustPassLogo

This project provides HustPass support for Requests

Variation of HustLogin

Installation

pip install requests-hustauth

Dependency

(automatically handled by PIP)

Requests
Pillow
numpy
pycryptodome
fake_useragent

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-1.0.1.tar.gz (6.7 kB view hashes)

Uploaded Source

Built Distribution

requests_hustauth-1.0.1-py3-none-any.whl (5.3 kB view hashes)

Uploaded Python 3

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