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.
requirements.txt
python example.py -u username -p password
This example is working only with Python3.7+.
Also, you need to have an account from 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.
requerements.txt
sudo apt install protobuf-compiler
It was tested on Ubuntu.
liqi.json
file from MS (find it in the network tab of your browser) and put it to ms/liqi.json
python generate_proto_file.py
protoc --python_out=. 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
liqi_admin.json
file from MS tournament manager panelpython ms_tournament/generate_proto_file.py
protoc --python_out=. protocol_admin.proto
chmod +x ms-admin-plugin.py
sudo cp ms-admin-plugin.py /usr/bin/ms-admin-plugin.py
protoc --custom_out=. --plugin=protoc-gen-custom=ms-admin-plugin.py ./protocol_admin.proto
pip install twine
python setup.py sdist
twine upload dist/*