Coder Social home page Coder Social logo

compasshxm / maj-soul-log-tools Goto Github PK

View Code? Open in Web Editor NEW

This project forked from acehinnnqru/maj-soul-log-tools

0.0 0.0 0.0 19 KB

A project to auto download tenhou-format logs of maj-soul

License: MIT License

JavaScript 78.40% Python 21.60%

maj-soul-log-tools's Introduction

maj-soul-log-tools

A tool for Maj-Soul log analysis.

Disclaimer

This project is only for personal use, and it is not recommended to use it for commercial purposes.

If it is used for commercial purposes, the author will not be responsible for any problems caused by it.

Also, if this project harms the interests of the game company, the author will delete this project.

Usage

Install Dependencies

pip install -r requirements.txt

Help

!!! Support Chrome only

python main.py --help

Save current state for your account

This command will open the browser then you should enter your account and password in the browser. The default timeout is 60 seconds.

python main.py state --help

The argument "file" is the path of the file to save the state. The default value is "state.json".

Download Logs

!!! Require state file

Download logs with state file and chrome profile dir.

python main.py dl --profile {chrome profile dir} log_id/log_ids_file

log_id is the id of the log you want to download.

log_ids_file is the path of the file which contains the ids of the logs you want to download.

log_ids_file example:

xxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxx

Logs Tool

List Logs

python main.py logs --logs_dir {logs dir}

Check diff ids between data file and logs dir

The data is the data file which contains the ids of the logs you want to check.

python main.py logs --diff --data {data file} --logs_dir {logs dir} --output_dir {output dir}

The output will be the diff.txt in the output_dir dir.

Calculate Tools

Longest Fail User

python main.py cal longest_fail --logs_dir {logs dir} --output_dir {output dir}

This command will calculate the longest fail user and save the middle result to the output dir (longest_fail.json and longest_fail.txt).

The final result will appear in the console.

maj-soul-log-tools's People

Contributors

acehinnnqru avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.