I highly recommend you do not do so. Developing cheats goes against the spirit of competitive gameplay and using them will lead to restriction. I don't even recommend you use them offline.
If you still want to do something hacky you can look up
osu overlay and the libraries it uses. It uses memory scraping to retrieve various information within osu. I've also seen memory scrapers get song select info to make new song rates with a click of a button. Maybe you can figure out how to make something useful with that.
tl;dr - Use your skills for good not bad