Skip to main content

Auto submitter for xg.hit.edu.cn yqxx

Project description

学工平台每日上报

PyPI version GitHub release (latest by date) GitHub stars GitHub forks GitHub issues

本项目为命令行填报哈尔滨工业大学学工平台每日上报的工具。实现了统一身份认证登录、获取所有上报信息、按照配置文件自动上报功能。

如何使用

  1. pip install yqxx
  2. 按照下面模板填写账号密码等信息
  3. 运行 yqxx -c <配置文件名>

配置文件模板

配置文件为 YAML 格式,对配置文件进行编辑后保存到本地:

# 统一身份认证账号
username: '1234567890'

# 统一身份认证密码
password: 'PASSWORD'

# 建议修改为自己 WeLink 的 User-Agent
user-agent: 'Mozilla/5.0 (Linux; Android 10; AC2001) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/87.0.4280.101 Mobile Safari/537.36 HuaWei-AnyOffice/1.0.0/cn.edu.hit.welink'

# 经度
gpsjd: 126.630644
# 纬度
gpswd: 45.746883

# 居住地址(Residence Address)(请详细填写至门牌号,如:X省X市X区X街X小区/楼宇X单元X门牌号)(Road and doorplate,e.g.:Room XX No. XX Community XX)
# 走读需要填写
jzdz: ''

# 所在地点(Currrent location)
# 0 国(境)外(Overseas)
# 1 国内(Domestic)
kzl1: 1

# 所在国家或地区(Current Country or region Residing in)
# 国(境)外(Overseas)需要填写
kzl2: ''

# 所在国家城市(Current City Residing in)
# 国(境)外(Overseas)需要填写
kzl3: ''

# 所在国家具体地址(Address Residing in)
# 国(境)外(Overseas)需要填写
kzl4: ''

# 近1个月是否计划回国(Do you plan to return to China within one month)
# 国(境)外(Overseas)需要填写
# 0 否
# 1 是
kzl5: ''

# 定位信息建议通过 https://lbs.amap.com/demo/javascript-api/example/geocoder/regeocoding F12 获取
# 定位省
kzl6: '黑龙江省'

# 定位市
# 直辖市留空
kzl7: '哈尔滨市'

# 定位区
kzl8: '南岗区'

# 定位详细地址
# 街道名+门牌号
kzl9: '教化街30号'

# 定位信息
# kzl10 = kzl6 + kzl7 + kzl8 + kzl9
kzl10: '黑龙江省哈尔滨市南岗区教化街30号'

# 与上次定位在不同城市的原因
# 0 探亲(Visiting relatives)
# 1 旅游(Traveling)
# 2 回家(Homecoming)
# 3 因公出差/实习实训(Business /practical reasons)
# 4 其他(Others)
kzl11: ''

# 与上次定位在不同城市的原因
kzl12: ''

# 您当前所在地点是(Your current location is)(单元/社区/街道等) (unit/community/street, etc.)
# 0 低风险地区(Low risk area)
# 1 中风险地区(Medium risk area)
# 2 高风险地区(High risk areas)
kzl13: 0

# 您所处中/高风险地区所在街道,社区名称(The street and community name of your medium/high risk area is)
# 例:哈尔滨市呼兰区兰河街道沿河社区
kzl14: ''

# 当日是否途径中高风险地区(Any contact with medium or high risk area?)
# 0 否
# 1 是
kzl15: 0

# 中/高风险地区所在街道,社区名称(The street and community name of medium/high risk area is)
# 例:哈尔滨市呼兰区兰河街道沿河社区
kzl16: ''

# 今日体温范围(Today's temperature)
# 0 37.2℃及以上(Greater then or equal to 37.2°C;)
# 1 37.2°C以下( below 37.2°C)
kzl17: 1

# 今日是否出现不适(多选)?(Do you have any of the following symptoms(Multiple choice)?)
# 0 无不适(Asymptomatic)
# 1 乏力(Fatigue)
# 2 干咳(Dry cough)
# 3 呼吸困难(Difficulty in breathing)
# 4 其他(Other symptoms)
kzl18: '0;'

# 是否到相关医院或门诊检查(Did you go to a hospital or clinic for a check-up?)
# 0 否
# 1 是
kzl19: ''

# 检查结果(Examination results)
# 0 疑似感染(Suspected)
# 1 确诊感染(Infected)
# 2 其他(Others)
kzl20: ''

# 自行采取的救护措施?(Has any medications been taken by oneself?)
# 0 已口服药物,无其他异常(Already took oarl medication, no other symptoms)
# 1 未服药物,无其他异常(Didn't take any medications, no other symptoms)
# 2 其他情况(Other situations)
kzl21: ''

# 其他情况(Other situations)
kzl22: ''

# 当前的健康状况(Current health status)
# 0 正常(Normal)
# 1 新冠肺炎无症状感染者(Novel coronavirus pneumonia asymptomatic infection)
# 2 新冠肺炎确诊病例(Confirmed cases of novel coronavirus pneumonia)
kzl23: 0

# 是否处于隔离期?(Are you currently in an isolation period?)
# 0 否
# 1 是
kzl24: 0

# 隔离场所(Isolation place)
# 0 定点医院(Designated hospital)
# 1 集中隔离点(Centralized isolation location)
# 2 居家隔离(Isolate at home)
kzl25: ''

# 隔离详细地址(The detailed address of isolation)
# (请填写隔离医院/集中隔离点/居家隔离详细地址,精确到门牌号)(please fill in the detailed address of the isolated hospital/centralized isolation location/isolated at home, accurate to the door number)
kzl26: ''

# 隔离开始时间(Start date of isolation)
# 示例:2021-8-15
kzl27: ''

# 本人或共同居住的家人是否与确诊病例、无症状感染者、疑似病例行程轨迹有交集?(Do you or your family members living together cross paths with confirmed /asymptomatic/ suspected cases?)
# 0 否(No)
# 1 是(Yes)
kzl28: 0

# 是否与确诊病例、无症状感染者乘坐同次航班和列车(Has a confirmed or asymptomatic case  been detected in same transportation with you)
# 0 否(No)
# 1 是(Yes)
kzl29: ''

# 请详细说明(Please specify)
kzl30: ''

# 本人48小时内是否已进行核酸检测(Has COVID-19 nucleic acid test been conducted during 48 hours)
# 0 否(No)
# 1 是(Yes)
kzl31: ''

# 目前本人新冠疫苗接种情况(Vaccination status)
# 0 未接种(Unvaccinated)
# 1 已接种部分剂次(Single dose has been inoculated)
# 2 已接种全部剂次(Both doses inoculated)
kzl32: 0

# 其他信息(Other information)
kzl33: '无'
# 省(名称)
kzl38: '黑龙江省'
# 市(名称)
# 直辖市留空
kzl39: '哈尔滨市'
# 区(名称)
kzl40: '南岗区'

# 今日“龙江健康码”的码色
# 0 绿码
# 1 黄码
# 2 红码
kzl41: '0'

开源许可证

AGPL-3.0

简单来说,建议您做到以下几点:

  • 任何基于或与本项目有间接接触的项目均使用AGPL-3.0协议
  • 当你使用本项目或对其修改时,如果你所服务的对象向您索要源代码,请不要拒绝
  • 请不要将本项目用于商业用途

免责声明

本项目仅为方便通过命令行进行每日上报的工具。按照 LICENSE,开发者不对本工具的使用负责。

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

yqxx-0.8.2.tar.gz (12.4 kB view details)

Uploaded Source

Built Distribution

yqxx-0.8.2-py3-none-any.whl (20.5 kB view details)

Uploaded Python 3

File details

Details for the file yqxx-0.8.2.tar.gz.

File metadata

  • Download URL: yqxx-0.8.2.tar.gz
  • Upload date:
  • Size: 12.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.2

File hashes

Hashes for yqxx-0.8.2.tar.gz
Algorithm Hash digest
SHA256 bf8ef652b328ee8e11cbc5462644f8fa3911f68c34aa611b78f5d4575dcd8e3b
MD5 538b1146b9152f43f8135e7496850253
BLAKE2b-256 6a4de4c76302dc4459492ec0c4d36b43565162a9892206a17475e6cbb0695ea2

See more details on using hashes here.

File details

Details for the file yqxx-0.8.2-py3-none-any.whl.

File metadata

  • Download URL: yqxx-0.8.2-py3-none-any.whl
  • Upload date:
  • Size: 20.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.2

File hashes

Hashes for yqxx-0.8.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ddf197eb87c54bb361c23fc04dc4d66db1848e760b0074d735f11d1ca41eba86
MD5 36cf6a5e0e31f126a7d272eade635b7d
BLAKE2b-256 61499b26a579acb1625dfdf4f4760aa15753a981349371684a04f544ca29a1c9

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