Skip to content

Latest commit

 

History

History
79 lines (58 loc) · 1.96 KB

README.md

File metadata and controls

79 lines (58 loc) · 1.96 KB

Introduction

A auto clock-in script based on python3 for BJUTer.

It could clock in at 9:00 a.m everyday.

The script is inspired by tsosunchia

What can I do ?

  • Clock in at 9:00 a.m everyday
  • Send the email after clocking in

Usage

  1. Fork the project

  2. Update your information

    • Open info.json and complete it with your own information

    • The id & token are easy to get through any network protocol analyzer

      ⚠️NOTICE

      • Once id & token are invalid, you have to update the script manually once a week.

      • If your mobile device is on iOS, I'm willing to recommend the Stream App which is free & concise :)

  3. [option] Email Settings

    You can escape this step in branch no-email

    Open the settings in your forking repository, add the following info to your secrets.

    EMAIL_USERNAME 
    EMAIL_PASSWORD 
    EMAIL_SERVER
    EMAIL_PORT
    

Test

Run the script

python3 app.py

Example

Inspired by tsosunchia,I extract the user info module as a single file, which is easy for us to update own info.

A example of info.json is listed as below.

{
    "id": "402880c97b5d8ad1017c39dcd10*****",
    "token": "CA6CD39AFDAC284ED68BB81BD54*****",
    "c1": "在籍本科生",
    "c2": "在校内居住",
    "c3": "",
    "c4": "",
    "c5": "正常",
    "c6": "正常",
    "c7": "无情况",
    "c8": "在京内",
    "c12": "北京市,北京市,朝阳区,",
    "c9": "",
    "c10": "",
    "c11": "",
    "c14": "未接种",
    "location_longitude": "40",
    "location_latitude": "110",
    "location_address": "北京市朝阳区平乐园100号北京工业大学"
}

Thanks

Woodykaixa