#spider #yxy #yixiaoyuan

bin+lib yxy

YXY platform spider

2 releases

Uses new Rust 2021

0.1.3 Jun 18, 2022
0.1.2 May 27, 2022

#37 in Email

Download history 24/week @ 2022-05-27 12/week @ 2022-06-03 2/week @ 2022-06-10 32/week @ 2022-06-17

70 downloads per month

Apache-2.0

39KB
1K SLoC

YXY

YXY(YSchool) platform spider library, written in rust.

crates.io CI

中文说明文档

WIP

  • Query electricity balance.
  • Simulate APP login.
  • Subscribe some balance status.
    • Email ❌
    • WeChat(ServerChan) ✅
  • Automatic electricity bill payment.
  • More query or features...

How to run

  1. Prepare Rust development environment.

  2. Clone the repo

    git clone https://github.com/I-Info/yxy.git
    
  3. Change the working directory

    cd yxy
    
  4. Edit the conf.yaml (example in conf.example.yaml)

  5. Compile & Run by Cargo

    cargo run
    

Features

The following uses yxy to represent the main program

  1. Query electricity by conf

    • conf.yaml file is located in the current working directory

      ./yxy
      
    • Or in other place

      ./yxy -c <PATH>
      
  2. Other Queries

    1. UID

      Get UID by simulating app login, so you need to register yxy app account first.

      ./yxy query uid <phone number>
      
    2. Electricity

      (Simply query by UID without config file)

      ./yxy query ele <UID>
      

Disclaimer

For learning only, do not use for commercial purposes.

Dependencies

~9–19MB
~383K SLoC