Skip to content

Instantly share code, notes, and snippets.

View BlauFx's full-sized avatar

BlauFx BlauFx

View GitHub Profile
@BlauFx
BlauFx / download_osu_maps.py
Last active August 17, 2023 21:04
Download osu beatmaps via the chumu.moe api
import requests, time
def downloadMap(id):
urlSetInfo = f'https://api.chimu.moe/v1/set/{id}'
url = f'https://api.chimu.moe/v1/download/{id}'
r1 = requests.get(urlSetInfo)
raw = r1.content
text = raw.decode(r1.encoding)