The idea of repository based on https://github.com/chaserhkj/PyMajSoul/
Python wrappers for Majsoul allow you to interact with their servers from Python scripts.
- Install python packages from
requirements.txt
python example.py -u username -p password
This example is working only with Python3.7+.
Also, you need to have an account fron CN server to run this example, because only accounts from CN server has the ability to login with login and password.
If you want to login to EN or JP servers you need to write your code to authenticate via email code or social network. Protobuf wrapper from this repository contains all needed API objects for that.
- Install python packages from
requerements.txt
- Install protobuf compiler
sudo apt install protobuf-compiler
It was tested on Ubuntu.
- Download the new
liqi.json
file (find it in the network tab of your browser) and put it toms/liqi.json
python generate_proto_file.py
protoc --python_out=plugins=grpc:. protocol.proto
chmod +x ms-plugin.py
sudo cp ms-plugin.py /usr/bin/ms-plugin.py
protoc --custom_out=. --plugin=protoc-gen-custom=ms-plugin.py ./protocol.proto