This is a small example project for the osu.py python package. It allows you to automatically record and save replay files for any player that is currently online, by spectating them.
Please note that this project was not properly tested and that bugs can occur. I am also not responsible for anything that can happen to your account.
You can find an example replay here.
Please make sure that you have python and pip installed!
Install the osu
package with pip:
pip install osu
Then execute the program like this:
python main.py <id> <username> <password>
id
: Id of the player you want to spectateusername
: Your bancho usernamepassword
: Your bancho password
Optional arguments:
--tourney
: Allow for multiple clients at once (supporter only)--out <path>
: Specify the folder where replays get stored (replays)--server <url>
: Specify a custom server to use (ppy.sh)