I'm making an osu discord bot that can show a specific osu user, but I really don't know how to get this graph as a picture, with a specified user for sure.
Please help <3
Please help <3
Got it brosineplusx wrote:
You could use the osu!api for that.
The documentation is here:
docs/index.html#get-user
https://osu.ppy.sh/docs/index.html#user
This API call returns information for a specific user. You will need the monthly_playcounts object which contains the playcounts for each month. From that you can render/draw a graph image yourself.
You could also extract the svg image with the corresponding css from the profile sites, but thats kind of a hacky solution.