Skip to main content

A python module for using Luogu Api.

Project description

# 如何使用 首先,引用本模块: ` import pyluog ` 你可以定义一个账号变量,需要两个字符串参数,分别是账号密码: ` a=pyluog.User('name','password') ` 注意,以上操作并没有进行登录,登录操作需要执行: ` a.login() ` 中途会要求输入验证码,请根据显示的图片验证码正确输入。 如果过程顺利,最后会输出 登录成功!。 登录操作完成后,你可以用: 1. a.getUserData() 获取当前用户的信息 2. a.getRecordList(‘name’,’1’) 获取指定用户的评测提交记录 (两个参数分别是用户名和页数) 3. a.getNotification(1,1) 获取当前用户的通知,(两个参数分别是类型和页数) -类型1: @我的 -类型2: 回复 -类型3: 系统通知

以上操作均会返回一个json对象。

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

pyluog-0.13.tar.gz (1.7 kB view hashes)

Uploaded Source

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